RC = rc -r


.SUFFIXES: .rc .res

.rc.res:
	$(RC) $<
	ren $*.RES $*.res


default: mfwindow.exe mfdebug.exe

mfwindow.exe: mfwindow.c mfwindow.res
	gcc -Zomf -Zcrtdll -Zmt \
	  -I../../web2c/mf/MFwindow -O2 -fomit-frame-pointer \
	  -s -o mfwindow.exe mfwindow.c mfwindow.def mfwindow.res

mfdebug.exe: mfdebug.c
	gcc -Zomf -Zcrtdll \
	  -I../../web2c/mf/MFwindow -O2 -fomit-frame-pointer \
	  -s -o mfdebug.exe mfdebug.c


clean:
	-del *.o >nul 2>&1
	-del *.obj >nul 2>&1
	-del *.exe >nul 2>&1
	-del *~ >nul 2>&1
	-del *.log >nul 2>&1
	-del *gf >nul 2>&1
	-del *.res >nul 2>&1


mfwindow.res: mfwindow.rc
mfwindow.rc: resources.h
mfwindow.c: resources.h

# local variables:
# compile-command: "nmake /nologo "
# end:
