Mercurial Hosting > traffic-intelligence
comparison c/Makefile @ 8:59b7e3954178
renaming and added make clean
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Sat, 07 Nov 2009 23:33:51 -0500 |
parents | 6509f5b1d795 |
children | eb38637f338d |
comparison
equal
deleted
inserted
replaced
7:ffddccfab7f9 | 8:59b7e3954178 |
---|---|
14 CFLAGS += -DUSE_OPENCV | 14 CFLAGS += -DUSE_OPENCV |
15 LDFLAGS += -lhighgui -lcxcore -lcv -lml | 15 LDFLAGS += -lhighgui -lcxcore -lcv -lml |
16 endif | 16 endif |
17 | 17 |
18 ifeq ($(UNAME), Linux) | 18 ifeq ($(UNAME), Linux) |
19 LINUX_BOOST_PREFIX = /usr/local | 19 LINUX_BOOST_PREFIX = /usr/local |
20 CFLAGS += -DLINUX | 20 CFLAGS += -DLINUX |
21 EXE_EXTENSION='' | 21 EXE_EXTENSION='' |
22 else # windows | 22 else # windows |
23 MINGW_HOME = 'C:\MinGW' | 23 MINGW_HOME = 'C:\MinGW' |
24 LDFLAGS += -mconsole -mwindows -lole32 -lwsock32 -luuid | 24 LDFLAGS += -mconsole -mwindows -lole32 -lwsock32 -luuid |
36 CFLAGS += -pg | 36 CFLAGS += -pg |
37 endif | 37 endif |
38 | 38 |
39 CXXFLAGS = $(INCLUDE) $(CFLAGS) | 39 CXXFLAGS = $(INCLUDE) $(CFLAGS) |
40 | 40 |
41 default: all builddir | |
41 | 42 |
42 default: main.o | 43 all: test-pixels |
43 # @echo "default" | 44 |
45 builddir: | |
44 @createdirectory.sh $(BUILD_DIR) | 46 @createdirectory.sh $(BUILD_DIR) |
47 | |
48 test-pixels: test-pixels.o | |
45 $(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/test-pixels $(LDFLAGS) | 49 $(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/test-pixels $(LDFLAGS) |
50 # $(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/$@ $(LDFLAGS) | |
46 | 51 |
47 # $(CXX) $(CFLAGS) $(LIBS) $^ -o $(BUILD_DIR)/$@ $(LDFLAGS) | 52 clean: |
53 rm -f *.gch */*.o *.o *.a $(BUILD_DIR)/* | |
54 # $(DISTFILE_OUTPUT) |