home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / io / filer / makefile < prev    next >
Makefile  |  1995-02-03  |  1KB  |  44 lines

  1. # Nmake macros for building FILER
  2. # Define NODEBUG to build FILER without debugging information.
  3. # Define UNICODE to build FILER with UNICODE characters.
  4.  
  5. TARGETOS=WINNT
  6.  
  7. !include <ntwin32.mak>
  8.  
  9. !ifdef UNICODE
  10. unicode = -DUNICODE
  11. !else
  12. unicode =
  13. !endif
  14.  
  15. #cflags=$(cflags) -DDEVL=1
  16.  
  17. all: filer.exe
  18.  
  19. # Update the resource if necessary
  20.  
  21. filer.res: filer.rc filer.dlg filer.h globals.h *.bmp filer.ico
  22.     $(rc) $(rcvars) -r filer.rc
  23.  
  24. # Update the object files if necessary
  25.  
  26. enumdrv.obj: enumdrv.c enumdrv.h globals.h
  27.     $(cc) $(cdebug) $(cflags) $(cvars) $(unicode) enumdrv.c
  28.  
  29. drvproc.obj: drvproc.c drvproc.h globals.h expdir.h filer.h
  30.     $(cc) $(cdebug) $(cflags) $(cvars) $(unicode) drvproc.c
  31.  
  32. expdir.obj: expdir.c expdir.h filer.h drvproc.h globals.h
  33.     $(cc) $(cdebug) $(cflags) $(cvars) $(unicode) expdir.c
  34.  
  35. filer.obj: filer.c filer.h enumdrv.h globals.h
  36.     $(cc) $(cdebug) $(cflags) $(cvars) $(unicode) filer.c
  37.  
  38. # Update the executable file if necessary, and if so, add the resource back in.
  39.  
  40. filer.exe: filer.obj enumdrv.obj drvproc.obj expdir.obj filer.res makefile
  41.     $(link) $(linkdebug)  $(guiflags) -out:filer.exe\
  42.     filer.obj enumdrv.obj drvproc.obj expdir.obj filer.res\
  43.     version.lib $(guilibsmt)
  44.