home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / video / captest / makefile < prev    next >
Encoding:
Makefile  |  1995-11-17  |  1.3 KB  |  49 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. !if "$(CPU)" == "i386" # .syms are useful for Win95
  6. SYM = captest.sym
  7. !endif
  8.  
  9. all: captest.exe $(SYM)
  10.  
  11. OBJS=        captest.obj dialogs.obj
  12.  
  13. OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo -I. -I..\include
  14. OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN -I. -I..\include
  15.  
  16.  
  17. # Update the resource if necessary
  18.  
  19. captest.res: captest.rc captest.h captest.dlg captest.rcv captest.ico
  20.     $(rc) -r -DWIN32 $(OTHERRCOPTS) captest.rc
  21.  
  22.  
  23. # Update the object file if necessary
  24.  
  25. dialogs.obj: dialogs.c captest.h
  26.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) dialogs.c
  27.  
  28. captest.obj: captest.c captest.h
  29.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) captest.c
  30.  
  31. # Update the executable file if necessary, and if so, add the resource back in.
  32.  
  33. captest.exe captest.map:  $(OBJS) captest.res
  34.     $(link) $(linkdebug) $(guiflags) -out:captest.exe $(OBJS) captest.res $(guilibs) \
  35.     vfw32.lib winmm.lib -map:$*.map
  36.     
  37. captest.sym:    $*.map
  38.     mapsym $*.map
  39.  
  40. clean:
  41.     @if exist captest.exe del captest.exe
  42.     @if exist *.obj del *.obj
  43.     @if exist *.map del *.map
  44.     @if exist *.sym del *.sym
  45.     @if exist *.res del *.res
  46.     @if exist *.pdb del *.pdb
  47.     @if exist *.exp del *.exp
  48.     @if exist *.lib del *.lib
  49.