--- mstools/samples/getsys/makefile 2018/08/09 18:20:48 1.1 +++ mstools/samples/getsys/makefile 2018/08/09 18:21:47 1.1.1.2 @@ -2,24 +2,21 @@ !include -# This line allows NMAKE to work as well - all: getsys.exe # Update the resource if necessary -getsys.res: getsys.rc getsys.h - rc -r -fo getsys.tmp getsys.rc - cvtres -$(CPU) getsys.tmp -o getsys.res - del getsys.tmp +getsys.rbj: getsys.rc getsys.h + rc -r -fo getsys.res getsys.rc + cvtres -$(CPU) getsys.res -o getsys.rbj # Update the object file if necessary getsys.obj: getsys.c getsys.h - $(cc) $(cflags) $(cvars) getsys.c + $(cc) $(cdebug) $(cflags) $(cvars) getsys.c # Update the executable file if necessary, and if so, add the resource back in. -getsys.exe: getsys.obj getsys.res getsys.def +getsys.exe: getsys.obj getsys.rbj getsys.def $(cvtobj) $(cvtdebug) *.obj - $(link) $(guiflags) -out:getsys.exe getsys.obj getsys.res $(guilibs) + $(link) $(linkdebug) $(guiflags) -out:getsys.exe getsys.obj getsys.rbj $(guilibs)