Merging vector-Rn dans master : resolution des conflits
[ProjetInfo.git] / testing / Makefile
blob27d1d65199cb328774d1bb4524486840b93f415c
1 # testing/Makefile
2 # prjinfo2010 Damien Nguyen and Etienne Wodey
4 .PHONY: clean
5 .SUFFIXES:
7 CXX = g++
8 CXXFLAGS = -ansi -pedantic -Wall -Wextra
9 CXXFLAGS += -g
11 MATH_INCDIR = ../math/inc
12 MATH_LDFLAGS = -L../math -lmath
14 TMATH_SRCDIR = math
16 INCDIRS = $(MATH_INCDIR)
18 vpath %.h $(MATH_INCDIR)
19 vpath %.cc $(TMATH_SRCDIR)
21 all:
22 @echo "prjinfo2010 - Testing"
23 @echo "You need to specify which module you want to make"
25 .PHONY: math-sqmatrix3
26 math-sqmatrix3: testSqMatrix3.o
27 make -C ../math
28 $(CXX) $^ -o $@ $(CXXFLAGS) $(MATH_LDFLAGS)
30 .PHONY: math-vector3
31 math-vector3: testVector3.o
32 make -C ../math
33 $(CXX) $^ -o $@ $(CXXFLAGS) $(MATH_LDFLAGS)
35 .PHONY: math-vector
36 math-vector: testVector.o
37 make -C ../math
38 $(CXX) $^ -o $@ $(CXXFLAGS) $(MATH_LDFLAGS)
40 testSqMatrix3.o: vector3.h
42 %.o: %.cc
43 $(CXX) -c $< -o $@ -I $(INCDIRS) $(CXXFLAGS)
45 clean:
46 rm -rf *.o
47 rm -f math-*