
#make for sample use of lsoda() stiff ode solver

#CFLAGS= -g -I$(HOME)/libs/
#CFLAGS=  -pg
CFLAGS=  -Wall -ggdb -O
LFLAGS=  $(CFLAGS)

#LIB=-L$(HOME)/libs
LIB=-L./ 

FILES= daxpy.o ddot.o dgefa.o dgesl.o dscal.o idamax.o lsoda.o

SAMPL= example.o

example: $(SAMPL) libq.so libq.a
	cc $(LFLAGS) -o example $(SAMPL) $(FILES) $(LIB) -lq -lm   #-fswitch

libq.a: $(FILES) makefile
	ar cr libq.a $(FILES)
	ranlib libq.a

libq.so: $(FILES) makefile
	ar cr libq.so $(FILES)

clean:
	rm *.o libq.so
