CC = fl32
CFLAGS = /nologo /I.. 
LFLAGS = ../japi.lib /link /nologo
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) $< $(LFLAGS)

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