Merge branch 'mat-devel'
[ProjetInfo.git] / math / Makefile
blobb46103e61e93d8ed329a93a52d152132b7756236
1 # math/Makefile
2 # prjinfo2010 - Damien Nguyen and Etienne Wodey
4 # use sh shell
5 SHELL = /bin/sh
7 .PHONY: clean mrproper
8 .SUFFIXES:
10 CXX = g++
11 CXXFLAGS = -ansi -pedantic -Wall -Wextra -fPIC
12 CXXFLAGS += -g
14 OBJECTS = sqmatrix3.o vector3.o vector.o
15 INCDIR = inc
16 SRCDIR = src
17 TARGET = libmath.so
19 vpath %.h $(INCDIR)
20 vpath %.cc $(SRCDIR)
22 all: $(OBJECTS)
23 $(CXX) --shared $^ -o $(TARGET) $(CXXFLAGS)
25 sqmatrix3.o: vector3.h
27 %.o: %.cc %.h
28 $(CXX) -I $(INCDIR) -c $< -o $@ $(CXXFLAGS)
30 clean:
31 rm -rf *.o
33 mrproper: clean
34 rm -f $(TARGET)