CC = lf95
CFLAGS = -i .. -o1 -nco -ninfo
LFLAGS = -ML LF95 ../japi.lib 
SOURCEPATH = ../../../../fortran


SOURCES = $(wildcard $(SOURCEPATH)/*.f)
TARGETS = $(patsubst $(SOURCEPATH)/%.f, %.exe, $(SOURCES))


ALL : $(TARGETS) images
images: ../../../../../images
	cp -r ../../../../../images .
japi.dll: ../japi.dll
	cp ../japi.dll .

$(TARGETS) : %.exe: $(SOURCEPATH)/%.f japi.dll 
	$(CC) $< $(CFLAGS) -out $@ $(LFLAGS)


clean :
	rm -rf  $(TARGETS) $(DEST) japi.lib japi.dll *.jar *.map *.obj images
