# Makefile for spmodel library

include ../../Config.mk

SPMFRT=$(DEST_BIN)/spmfrt

all: clean

test:	wt_module_base_test.out \
	wt_module_derivative_test1.out wt_module_derivative_test2.out \
	wt_module_integral_test.out \
	wt_module_interpolate_test.out \
	wt_module_spectrum_test.out \
	wt_module_polvelbc_test.out wt_module_torvelbc_test.out \
	wt_module_polmagbc_test.out wt_module_tormagbc_test.out
	./wt_module_base_test.out
	./wt_module_derivative_test1.out
	./wt_module_derivative_test2.out
	./wt_module_integral_test.out
	./wt_module_interpolate_test.out
	./wt_module_spectrum_test.out
	./wt_module_polvelbc_test.out
	./wt_module_torvelbc_test.out
	./wt_module_polmagbc_test.out
	./wt_module_tormagbc_test.out

clean:
	-rm -f $(MODS) *.o work.pc* *~ *.bak *.out *.nc

.SUFFIXES: .f90 .out

.f90.out:
	$(FC) -I../../src  $(SYSFFLAGS) -o $@ $< -L../../src -l$(LIBNAME) $(SYSLDFLAGS) $(SYSLDLIBS)

