--- mstools/samples/mandel/makefile 2018/08/09 18:20:41 1.1 +++ mstools/samples/mandel/makefile 2018/08/09 18:21:38 1.1.1.2 @@ -5,36 +5,33 @@ cvars=-DNT -DWIN -DWIN32 -# This line allows NMAKE to work as well - all: julia.exe # Update the object file if necessary julia.obj: julia.c julia.h jtypes.h bndscan.h dibmp.h - $(cc) $(cflags) $(cvars) julia.c + $(cc) $(cdebug) $(cflags) $(cvars) julia.c savebmp.obj: savebmp.c jtypes.h - $(cc) $(cflags) $(cvars) savebmp.c + $(cc) $(cdebug) $(cflags) $(cvars) savebmp.c loadbmp.obj: loadbmp.c jtypes.h - $(cc) $(cflags) $(cvars) loadbmp.c + $(cc) $(cdebug) $(cflags) $(cvars) loadbmp.c dibmp.obj: dibmp.c jtypes.h dibmp.h - $(cc) $(cflags) $(cvars) dibmp.c + $(cc) $(cdebug) $(cflags) $(cvars) dibmp.c bndscan.obj: bndscan.c bndscan.h jtypes.h - $(cc) $(cflags) $(cvars) bndscan.c + $(cc) $(cdebug) $(cflags) $(cvars) bndscan.c printer.obj: printer.c printer.h - $(cc) $(cflags) $(cvars) printer.c + $(cc) $(cdebug) $(cflags) $(cvars) printer.c # Update the resources if necessary -res.res: res.rc julia.h jtypes.h bndscan.h dibmp.h - rc -r -fo julia.tmp res.rc - cvtres -$(CPU) julia.tmp -o res.res - del julia.tmp +julia.rbj: julia.rc julia.h jtypes.h bndscan.h dibmp.h + rc -r -fo julia.res julia.rc + cvtres -$(CPU) julia.res -o julia.rbj # Update the executable file if necessary, and if so, add the resource back in. @@ -45,13 +42,13 @@ julia.exe: julia.obj \ dibmp.obj \ bndscan.obj \ printer.obj \ - res.res + julia.rbj $(cvtobj) $(cvtdebug) *.obj - $(link) $(guiflags) -out:julia.exe \ + $(link) $(linkdebug) $(guiflags) -out:julia.exe \ julia.obj \ savebmp.obj \ loadbmp.obj \ dibmp.obj \ bndscan.obj \ printer.obj \ - res.res $(guilibs) + julia.rbj $(guilibs) shell32.lib