source: foam/trunk/eigentools/Makefile @ 93

Revision 93, 754 bytes checked in by dave, 10 years ago (diff)

more moving around things

Line 
1TARGET  := eigentool
2
3SRCS    := src/main.cpp
4
5# for the minute, go out and up to link to the vision lib
6CCFLAGS = -I../vision/src `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL
7LDFLAGS = -L../vision/
8LIBS    = `pkg-config --libs opencv` -lvision
9
10CC = g++
11OBJS    := ${SRCS:.cpp=.o}
12DEPS    := ${SRCS:.cpp=.dep}
13XDEPS   := $(wildcard ${DEPS})
14
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.