source: libs/magicsquares/applications/harvest/Makefile @ 998

Revision 998, 874 bytes checked in by dave, 10 years ago (diff)

select spirit, opencv updated to fix camera

Line 
1TARGET  := harvest
2
3SRCS    := src/main.cpp\
4        src/App.cpp\
5        src/Blob.cpp\
6        src/BlobResult.cpp\
7        src/BlobContour.cpp\
8        src/BlobOperators.cpp\
9        src/ComponentLabeling.cpp
10
11# for the minute, go out and up to link to the vision lib
12CCFLAGS = -I../../src `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL
13LDFLAGS = -L../../
14LIBS    = `pkg-config --libs opencv` -lmagicsquares
15
16CC = g++
17OBJS    := ${SRCS:.cpp=.o}
18DEPS    := ${SRCS:.cpp=.dep}
19XDEPS   := $(wildcard ${DEPS})
20.PHONY: all clean distclean
21all:: ${TARGET}
22
23ifneq (${XDEPS},)
24include ${XDEPS}
25endif
26
27${TARGET}: ${OBJS}
28        ${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
29
30${OBJS}: %.o: %.cpp %.dep
31        ${CC} ${CCFLAGS} -o $@ -c $<
32
33${DEPS}: %.dep: %.cpp Makefile
34        ${CC} ${CCFLAGS} -MM $< > $@
35
36clean::
37        -rm -f *~ src/*.o ${TARGET}
38
39cleandeps:: clean
40        -rm -f src/*.dep
41
42distclean:: clean
Note: See TracBrowser for help on using the repository browser.