--- q_a/samples/threads/makefile 2018/08/09 18:29:19 1.1.1.1 +++ q_a/samples/threads/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: threads.exe # Update the resource if necessary -res.res: res.rc threads.h - rc -r -fo res.tmp res.rc - cvtres -$(CPU) res.tmp -o res.res - del res.tmp +threads.res: threads.rc threads.h + rc -r -fo threads.tmp threads.rc + cvtres -$(CPU) threads.tmp -o threads.res + del threads.tmp # Update the object file if necessary threads.obj: threads.c threads.h - $(cc) $(cflags) $(cvars) threads.c + $(cc) $(cdebug) $(cflags) $(cvars) threads.c # Update the executable file if necessary, and if so, add the resource back in. -threads.exe: threads.obj res.res - $(link) $(guiflags) -out:threads.exe threads.obj res.res $(guilibs) +threads.exe: threads.obj threads.res + $(cvtobj) $(cvtdebug) *.obj + $(link) $(linkdebug) $(guiflags) -out:threads.exe threads.obj threads.res $(guilibs)