diff c/Makefile @ 10:068cf45c3f1b

added optical flow skeleton (test to reach a frame with cvqueryframe (fast for small resolutions)
author Nicolas Saunier <nico@confins.net>
date Mon, 09 Nov 2009 01:56:25 -0500
parents eb38637f338d
children 30559b2cf7a9
line wrap: on
line diff
--- a/c/Makefile	Sun Nov 08 10:33:41 2009 -0500
+++ b/c/Makefile	Mon Nov 09 01:56:25 2009 -0500
@@ -40,16 +40,24 @@
 
 CXXFLAGS = $(INCLUDE) $(CFLAGS)
 
+#GUI_OBJS = 
+CV_OBJS = cvutils.o
+#COMMON_OBJS = 
+OBJS = $(COMMON_OBJS) $(CV_OBJS)
+#TESTS_OBJS = 
+
 default: all builddir
 
-all: test-pixels
+all: test-pixels optical-flow
 
 builddir:
 	@createdirectory.sh $(BUILD_DIR)
 
-test-pixels: test-pixels.o cvutils.o
-	$(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/test-pixels $(LDFLAGS)
-#	$(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/$@ $(LDFLAGS)
+optical-flow: optical-flow.o $(OBJS)
+	$(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/$@ $(LDFLAGS)
+
+test-pixels: test-pixels.o $(OBJS)
+	$(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/$@ $(LDFLAGS)
 
 clean:
 	rm -f *.gch */*.o *.o *.a  $(BUILD_DIR)/*