source: level2/competencies/ExpressionRecog/Makefile @ 234

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

link to new lib

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