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