CC = gcc -O2 
INC = -I /usr/local/include/gsl -I /usr/include/gsl -I ../Base
LIB = -L/usr/lib -L/usr/local/lib -L../../Lib
ROT = ../../Maple

.c.o:
	$(CC) -c  $(INC) $<


all: sincos test_matj test_rotation test_rotation2

sincos: sincos.c 
	$(CC) -o sincos  sincos.c  -lm
	mv sincos $(ROT)

test_matj: test_matj.c 
	$(CC) -o test_matj $(INC) $(LIB) test_matj.c -letop -lgsl -lgslcblas -lm
	mv test_matj $(ROT)

test_rotation: test_rotation.c 
	$(CC) -o test_rotation $(INC) $(LIB)  test_rotation.c -letop -lgsl  -lgslcblas -lm
	mv test_rotation $(ROT)

test_rotation2: test_rotation2.c 
	$(CC) -o test_rotation2 $(INC) $(LIB)  test_rotation2.c -letop -lgsl  -lgslcblas -lm
	mv test_rotation2 $(ROT)


clean:
	rm -f *.o *~
