# Makefile for spmodel library

include ../../Config.mk

SPMFRT=$(DEST_BIN)/spmfrt

all: clean

test:	wtq_test_polmagbctau.out wtq_test_tormagbctau.out \
	wtq_test_polmagbcgrid.out wtq_test_tormagbcgrid.out
	./wtq_test_polmagbctau.out
	./wtq_test_tormagbctau.out
	./wtq_test_polmagbcgrid.out
	./wtq_test_tormagbcgrid.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)
