--- q_a/samples/ntsd/makefile 2018/08/09 18:29:19 1.1 +++ q_a/samples/ntsd/makefile 2018/08/09 18:29:35 1.1.1.2 @@ -9,32 +9,33 @@ all: mdi.exe debug.dll # Update the object files if necessary mdi.obj: mdi.c - $(cc) $(cflags) $(cvars) mdi.c + $(cc) $(cdebug) $(cflags) $(cvars) mdi.c debug.obj: debug.c mdi.h mditypes.h - $(cc) $(cflags) $(cvars) debug.c + $(cc) $(cdebug) $(cflags) $(cvars) debug.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 import library debug.lib: debug.obj debug.def - lib -machine:$(CPU) \ + $(cvtobj) $(cvtdebug) debug.obj + coff -lib -machine:$(CPU) \ -def:debug.def \ + debug.obj \ -out:debug.lib # Update the dynamic link library debug.dll: debug.obj debug.def - $(link) \ + $(link) $(linkdebug) \ -base:0x1C000000 \ -dll \ - -entry:LibMain \ + -entry:LibMain$(DLLENTRY) \ -out:debug.dll \ debug.exp debug.obj $(guilibs) @@ -42,5 +43,7 @@ debug.dll: debug.obj debug.def # Update the executable file if necessary. # If so, add the resource back in. -mdi.exe: mdi.obj debug.lib res.res - $(link) $(guiflags) -out:mdi.exe mdi.obj debug.lib res.res $(guilibs) +mdi.exe: mdi.obj debug.lib mdi.rbj + $(cvtobj) $(cvtdebug) mdi.obj + $(link) $(linkdebug) $(guiflags) \ + -out:mdi.exe mdi.obj debug.lib mdi.rbj $(guilibs) shell32.lib