source: level2/competencies/FaceIdent/Makefile @ 1706

Revision 207, 974 bytes checked in by dave, 10 years ago (diff)

link to new lib

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