--- q_a/samples/mdi/makefile 2018/08/09 18:29:19 1.1.1.1 +++ q_a/samples/mdi/makefile 2018/08/09 18:29:54 1.1.1.3 @@ -2,25 +2,23 @@ !include -# This line allows NMAKE to work as well - all: mdi.exe # Update the object files if necessary mdi.obj: mdi.c - $(cc) $(cflags) $(cvars) mdi.c - $(cvtobj) + $(cc) $(cdebug) $(cflags) $(cvars) mdi.c # Update the resources if necessary -res.res: res.rc mdi.h - rc -r -fo mdi.tmp res.rc - cvtres -$(CPU) mdi.tmp -o res.res - del mdi.tmp +mdi.rbj: mdi.rc mdi.h + rc -r -fo mdi.res mdi.rc + cvtres -$(CPU) mdi.res -o mdi.rbj + # Update the executable file if necessary. # If so, add the resource back in. -mdi.exe: mdi.obj res.res - $(link) $(guiflags) -out:mdi.exe mdi.obj res.res $(guilibs) +mdi.exe: mdi.obj mdi.rbj + $(link) $(linkdebug) $(guiflags) \ + -out:mdi.exe mdi.obj mdi.rbj $(guilibs) shell32.lib