SHELL = /bin/sh

#*****************************************************
#***     Makefile pour la gneration 
#***     d'un executable pour SYRTHES
#*****************************************************

include $(SYRTHES4_HOME)/share/syrthes/Makefile.in

OBJ= *.o   mylibmat_src/*.o


exe : $(OBJ)
	ar xv $(LIB_SYRTHES) mainsyrthes.o
	$(CC) -o syrthes   $(COPTIM) $(CFLAG) -D_FILE_OFFSET_BITS=64 \
	-I mylibmat_include  $(INC_SYRTHES)  $(INC) $(LDFLAG) $(OBJ) \
	$(LIB_SYRTHES) -lm  $(LIB) $(LIB_PLE) 
	rm $(OBJ)

%.o : %.c
	$(CC)  -c  $(COPTIM) $(CFLAG) -D_FILE_OFFSET_BITS=64 -I mylibmat_include $(INC_SYRTHES)  $(INC) $?


mylibmat_src/%.o :
	make -C mylibmat_src
