CC = cl
CFLAGS = /I.. /O2 /G5 /nologo
LFLAGS = ../japi.lib  /link
SOURCEPATH = ../../../../../examples


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


ALL : $(TARGETS) images

images: ../../../../../../images
	cp -r ../../../../../../images .
japi.dll: ../japi.dll
	cp ../japi.dll .

$(TARGETS) : %.exe: $(SOURCEPATH)/%.c japi.dll 
	$(CC) $< $(CFLAGS) $(LFLAGS)

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