2 # prjinfo2010 Damien Nguyen and Etienne Wodey
8 CXXFLAGS
= -ansi
-pedantic
-Wall
-Wextra
11 MATH_INCDIR
= ..
/math
/inc
12 MATH_LDFLAGS
= -L..
/math
-lmath
16 INCDIRS
= $(MATH_INCDIR
)
18 vpath
%.h
$(MATH_INCDIR
)
19 vpath
%.
cc $(TMATH_SRCDIR
)
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
28 $(CXX
) $^
-o
$@
$(CXXFLAGS
) $(MATH_LDFLAGS
)
31 math-vector3
: testVector3.o
33 $(CXX
) $^
-o
$@
$(CXXFLAGS
) $(MATH_LDFLAGS
)
36 math-vector
: testVector.o
38 $(CXX
) $^
-o
$@
$(CXXFLAGS
) $(MATH_LDFLAGS
)
40 testSqMatrix3.o
: vector3.h
43 $(CXX
) -c
$< -o
$@
-I
$(INCDIRS
) $(CXXFLAGS
)