--- q_a/samples/resdll/makefile 2018/08/09 18:29:19 1.1.1.1 +++ q_a/samples/resdll/makefile 2018/08/09 18:29:28 1.1.1.2 @@ -2,32 +2,30 @@ !include -# This line allows NMAKE to work as well - all: main.exe the_dll.dll # Update the object files if necessary main.obj: main.c - $(cc) $(cflags) $(cvars) main.c + $(cc) $(cdebug) $(cflags) $(cvars) main.c -the_dll.res: the_dll.rc the_dll.bmp the_dll.cur the_dll.ico - rc -r -fo the_dll.tmp the_dll.rc - cvtres -$(CPU) the_dll.tmp -o the_dll.res - del the_dll.tmp +the_dll.rbj: the_dll.rc the_dll.bmp the_dll.cur the_dll.ico + rc -r -fo the_dll.res the_dll.rc + cvtres -$(CPU) the_dll.res -o the_dll.rbj # Update the dynamic link library -the_dll.dll: the_dll.def the_dll.res - $(link) \ +the_dll.dll: the_dll.def the_dll.rbj + $(link) $(linkdebug) \ -base:0x1C000000 \ -dll \ -out:the_dll.dll \ - the_dll.res $(guilibs) + the_dll.rbj $(guilibs) # Update the executable file if necessary. # If so, add the resource back in. main.exe: main.obj main.def - $(link) $(guiflags) -out:main.exe main.obj $(guilibs) + $(cvtobj) $(cvtdebug) *.obj + $(link) $(linkdebug) $(guiflags) -out:main.exe main.obj $(guilibs)