--- q_a/samples/cmndlg/makefile 2018/08/09 18:29:19 1.1 +++ q_a/samples/cmndlg/makefile 2018/08/09 18:30:00 1.1.1.3 @@ -2,23 +2,21 @@ !include -# This line allows NMAKE to work as well - all: cmndlg.exe # Update the resource if necessary -res.res: res.rc cmndlg.h - rc -r -fo res.tmp res.rc - cvtres -$(CPU) res.tmp -o res.res - del res.tmp +cmndlg.res: cmndlg.rc cmndlg.h + $(rc) -r -fo cmndlg.tmp cmndlg.rc + $(cvtres) -$(CPU) cmndlg.tmp -o cmndlg.res + del cmndlg.tmp # Update the object file if necessary cmndlg.obj: cmndlg.c cmndlg.h - $(cc) $(cflags) $(cvars) cmndlg.c + $(cc) $(cdebug) $(cflags) $(cvars) cmndlg.c # Update the executable file if necessary, and if so, add the resource back in. -cmndlg.exe: cmndlg.obj res.res - $(link) $(guiflags) -out:cmndlg.exe cmndlg.obj res.res $(guilibs) +cmndlg.exe: cmndlg.obj cmndlg.res + $(link) $(linkdebug) $(guiflags) -out:cmndlg.exe cmndlg.obj cmndlg.res $(guilibs)