source: foam/trunk/vision/Makefile @ 81

Revision 81, 691 bytes checked in by dave, 11 years ago (diff)

renamed experiments to vision

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