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 / writeavi / makefile next >
Encoding:
Makefile  |  1995-11-17  |  1.2 KB  |  47 lines

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