home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sysmgmt / setup / infinst / makefile < prev    next >
Encoding:
Makefile  |  1996-07-28  |  952 b   |  32 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2. !include <win32.mak>
  3.  
  4. all: infinst.exe
  5.  
  6. # Update the resource if necessary
  7.  
  8. instwiz.res: instwiz.rc infinst.h resource.h instwiz.h 
  9.     $(rc) $(rcflags) $(rcvars) instwiz.rc
  10.  
  11. # Update the object file if necessary
  12.  
  13. instwiz.obj: instwiz.c infinst.h infdesc.h instwiz.h 
  14.     $(cc) $(cflags) $(cvars) $(cdebug) instwiz.c
  15.  
  16. doinst.obj: doinst.c instwiz.h infinst.h infdesc.h
  17.     $(cc) $(cflags) $(cvars) $(cdebug) doinst.c
  18.  
  19. infinst.obj: infinst.c infinst.h infdesc.h instwiz.h
  20.     $(cc) $(cflags) $(cvars) $(cdebug) infinst.c
  21.  
  22. # Update the executable file if necessary, and if so, add the resource back in.
  23.  
  24. infinst.exe: infinst.obj instwiz.res doinst.obj instwiz.obj 
  25.     $(link) $(linkdebug) $(guiflags) -out:infinst.exe \
  26.      infinst.obj instwiz.res doinst.obj instwiz.obj \
  27.      $(guilibs) comctl32.lib shell32.lib setupapi.lib
  28.  
  29. clean:
  30.    del *.obj
  31.    del *.res
  32.    del *.exe