# The name of the binary executable to generate BIN=opencv_test # Listing of all your object files OBJS= main.o # Comment the following line out to # not compile symbols into object files. DEBUG=-g ########################################################### ### Don't touch below unless you know what you're doin. ### ########################################################### OPENCV=/usr/local/OpenCV-0.9.5 INCLUDE=/usr/local/include LIB=/usr/local/lib CFLAGS= $(DEBUG) -I$(INCLUDE)/opencv LDFLAGS= $(DEBUG) -g -L$(LIB) -lopencv -lhighgui -Wl,-rpath=$(LIB) .c.o: g++ $(CFLAGS) -c $< all: $(OBJS) g++ $(LDFLAGS) $(OBJS) -o $(BIN) clean: rm -rf $(OBJS) $(BIN)