source: level2/competencies/FaceIdent/Makefile @ 207

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

link to new lib

RevLine 
[76]1TARGET  := faceident
[1]2
[76]3SRCS    := src/main.cpp\
4        src/FaceBank.cpp\
5        src/Face.cpp\
6        src/ImageUtils.cpp\
[94]7        src/SceneState.cpp\
8        src/tinyxml.cpp\
9        src/tinyxmlerror.cpp\
10        src/tinyxmlparser.cpp
[1]11
[91]12# for the minute, go out and up to link to the vision lib
[207]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
[1]16
[76]17CC = g++
18OBJS    := ${SRCS:.cpp=.o}
19DEPS    := ${SRCS:.cpp=.dep}
20XDEPS   := $(wildcard ${DEPS})
[1]21
[76]22.PHONY: all clean distclean
23all:: ${TARGET}
[1]24
[76]25ifneq (${XDEPS},)
26include ${XDEPS}
27endif
[1]28
[76]29${TARGET}: ${OBJS}
30        ${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
[32]31
[76]32${OBJS}: %.o: %.cpp %.dep
33        ${CC} ${CCFLAGS} -o $@ -c $<
[1]34
[76]35${DEPS}: %.dep: %.cpp Makefile
36        ${CC} ${CCFLAGS} -MM $< > $@
[1]37
[76]38clean::
39        -rm -f *~ src/*.o ${TARGET}
40
[88]41cleandeps:: clean
42        -rm -f src/*.dep
43
[76]44distclean:: clean
Note: See TracBrowser for help on using the repository browser.