--- mstools/samples/filer/makefile 2018/08/09 18:20:59 1.1 +++ mstools/samples/filer/makefile 2018/08/09 18:22:14 1.1.1.2 @@ -4,33 +4,31 @@ cflags=$(cflags) -DDEVL=1 -# This line allows NMAKE to work as well - all: filer.exe # Update the resource if necessary -res.res: res.rc filer.h globals.h *.bmp filer.ico - rc -r -fo res.tmp res.rc - cvtres -$(CPU) res.tmp -o res.res - del res.tmp +filer.rbj: filer.rc filer.h globals.h *.bmp filer.ico + rc -r filer.rc + cvtres -$(CPU) filer.res -o filer.rbj # Update the object files if necessary enumdrv.obj: enumdrv.c enumdrv.h globals.h - $(cc) $(cflags) $(cvars) enumdrv.c + $(cc) $(cdebug) $(cflags) $(cvars) enumdrv.c walk.obj: walk.c walk.h globals.h - $(cc) $(cflags) $(cvars) walk.c + $(cc) $(cdebug) $(cflags) $(cvars) walk.c drvproc.obj: drvproc.c globals.h - $(cc) $(cflags) $(cvars) drvproc.c + $(cc) $(cdebug) $(cflags) $(cvars) drvproc.c filer.obj: filer.c filer.h enumdrv.h globals.h - $(cc) $(cflags) $(cvars) filer.c + $(cc) $(cdebug) $(cflags) $(cvars) filer.c # Update the executable file if necessary, and if so, add the resource back in. -filer.exe: filer.obj enumdrv.obj walk.obj drvproc.obj res.res +filer.exe: filer.obj enumdrv.obj walk.obj drvproc.obj filer.rbj $(cvtobj) $(cvtdebug) *.obj - $(link) $(guiflags) -out:filer.exe filer.obj enumdrv.obj walk.obj drvproc.obj res.res $(guilibs) + $(link) $(linkdebug) $(guiflags) -out:filer.exe\ + filer.obj enumdrv.obj walk.obj drvproc.obj filer.rbj $(guilibsmt)