home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / cmddlg / cdtest / makefile < prev    next >
Encoding:
Makefile  |  1994-01-18  |  1.4 KB  |  56 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. all: cdtest.exe
  6.  
  7. OBJS=cdtest.obj open.obj save.obj print.obj font.obj colors.obj find.obj replace.obj title.obj
  8.  
  9. OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo
  10. OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN
  11.  
  12.  
  13.  
  14. # Update the resource if necessary
  15.  
  16. cdtest.res: res.rc cdtest.h
  17.     $(rc) -r $(OTHERRCOPTS) -fo cdtest.res res.rc
  18.  
  19.  
  20.  
  21. # Update the object file if necessary
  22.  
  23. cdtest.obj: cdtest.c cdtest.h
  24.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) cdtest.c
  25.  
  26. open.obj: open.c open.h
  27.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) open.c
  28.  
  29. save.obj: save.c save.h
  30.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) save.c
  31.  
  32. print.obj: print.c print.h
  33.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) print.c
  34.  
  35. font.obj: font.c font.h
  36.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) font.c
  37.  
  38. colors.obj: colors.c colors.h
  39.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) colors.c
  40.  
  41. find.obj: find.c find.h
  42.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) find.c
  43.  
  44. replace.obj: replace.c replace.h
  45.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) replace.c
  46.  
  47. title.obj: title.c title.h
  48.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) title.c
  49.  
  50.  
  51.  
  52. # Update the executable file if necessary, and if so, add the resource back in.
  53.  
  54. cdtest.exe:  $(OBJS) cdtest.res
  55.     $(link) $(linkdebug) $(guiflags) -out:cdtest.exe $(OBJS) cdtest.res $(guilibs)
  56.