source: level2/competencies/FaceTracking/Makefile @ 193

Revision 193, 836 bytes checked in by dave, 10 years ago (diff)

added a makefile for linux (although requires src/Camshift wrapper to be renamed to src/Camshift_wrapper)

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