--- q_a/samples/resdll/makefile 2018/08/09 18:29:19 1.1 +++ q_a/samples/resdll/makefile 2018/08/09 18:29:51 1.1.1.3 @@ -1,33 +1,20 @@ -# Nmake macros for building Windows 32-Bit apps - !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 +the_dll.dll: the_dll.def the_dll.rbj $(link) \ - -base:0x1C000000 \ -dll \ -out:the_dll.dll \ - the_dll.res $(guilibs) - - -# Update the executable file if necessary. -# If so, add the resource back in. + -subsystem:windows \ + the_dll.rbj main.exe: main.obj main.def - $(link) $(guiflags) -out:main.exe main.obj $(guilibs) + $(link) $(linkdebug) $(guiflags) -out:main.exe main.obj $(guilibsdll)