CC = $(DVFPATH)/DF.exe
CFLAGS = /nologo /I.. 
LFLAGS = ..\\japi.lib /link /nologo
SOURCEPATH = ../../../../fortran


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


ALL : progs $(TARGETS) images

images: ../../../../../images
	cp -r ../../../../../images .
japi.dll: ../japi.dll
	cp ../japi.dll .
progs:  
	cp $(SOURCES) .
	


$(TARGETS) : %.exe: %.f japi.dll
	$(CC) $(CFLAGS) $< $(LFLAGS)


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