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