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