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 / aviview / makefile < prev    next >
Encoding:
Makefile  |  1996-01-11  |  1.7 KB  |  63 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 = aviview.sym
  7. !endif
  8.  
  9. all: aviview.exe $(SYM)
  10.  
  11. OBJS=aviview.obj audplay.obj aviball.obj cdib.obj guid.obj regobjs.obj
  12.  
  13. LIBS=vfw32.lib winmm.lib msacm32.lib uuid.lib
  14.  
  15. OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo -I..\include
  16. OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN -I..\include
  17.  
  18.  
  19. # Update the resource if necessary
  20.  
  21. aviview.res: aviview.rc aviview.h aviview.rcv aviview.ico
  22.     $(rc) -r -DWIN32 $(OTHERRCOPTS) aviview.rc
  23.  
  24.  
  25. # Update the object file if necessary
  26.  
  27. audplay.obj: audplay.c audplay.h muldiv32.h
  28.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) audplay.c
  29.  
  30. aviball.obj: aviball.c aviball.h
  31.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) aviball.c
  32.  
  33. guid.obj: guid.c
  34.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) guid.c
  35.  
  36. regobjs.obj: regobjs.cpp
  37.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) regobjs.cpp
  38.  
  39. cdib.obj: cdib.c
  40.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) cdib.c
  41.  
  42. aviview.obj: aviview.c aviview.h muldiv32.h audplay.h aviball.h
  43.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) aviview.c
  44.  
  45. # Update the executable file if necessary, and if so, add the resource back in.
  46.  
  47. aviview.exe aviview.map:  $(OBJS) aviview.res
  48.     $(link) $(linkdebug) $(guiflags) -out:aviview.exe $(OBJS) aviview.res $(guilibs) \
  49.     $(LIBS) -map:$*.map
  50.     
  51. aviview.sym:    $*.map
  52.     mapsym $*.map
  53.  
  54. clean:
  55.     @if exist aviview.exe del aviview.exe
  56.     @if exist *.obj del *.obj
  57.     @if exist *.map del *.map
  58.     @if exist *.sym del *.sym
  59.     @if exist *.res del *.res
  60.     @if exist *.pdb del *.pdb
  61.     @if exist *.exp del *.exp
  62.     @if exist *.lib del *.lib
  63.