--- q_a/samples/platform/makefile 2018/08/09 18:29:31 1.1.1.1 +++ q_a/samples/platform/makefile 2018/08/09 18:29:54 1.1.1.2 @@ -3,21 +3,20 @@ !include -all: generic.exe +all: Platform.exe # Update the resource if necessary -generic.res: generic.rc generic.h - rc -r -fo generic.tmp generic.rc - cvtres -$(CPU) generic.tmp -o generic.res - del generic.tmp +Platform.res: Platform.rc Platform.h + rc -r -fo Platform.tmp Platform.rc + cvtres -$(CPU) Platform.tmp -o Platform.res + del Platform.tmp # Update the object file if necessary -generic.obj: generic.c generic.h - $(cc) $(cdebug) $(cflags) $(cvars) generic.c +Platform.obj: Platform.c Platform.h + $(cc) $(cdebug) $(cflags) $(cvars) Platform.c # Update the executable file if necessary, and if so, add the resource back in. -generic.exe: generic.obj generic.res generic.def - $(cvtobj) $(cvtdebug) *.obj - $(link) $(linkdebug) $(guiflags) -out:generic.exe generic.obj generic.res $(guilibs) +Platform.exe: Platform.obj Platform.res Platform.def + $(link) $(linkdebug) $(guiflags) -out:Platform.exe Platform.obj Platform.res $(guilibs)