home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / lowpass / makefile < prev    next >
Makefile  |  1995-11-16  |  1KB  |  46 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 = lowpass.sym
  7. !endif
  8.  
  9. all: lowpass.exe $(SYM)
  10.  
  11. OBJS=        lowpass.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. lowpass.res: lowpass.rc lowpass.h strings.rc strings.h lowpass.rcv lowpass.ico
  20.     $(rc) -r -DWIN32 $(OTHERRCOPTS) lowpass.rc
  21.  
  22.  
  23. # Update the object file if necessary
  24.  
  25. lowpass.obj: lowpass.c lowpass.h strings.h
  26.     $(cc) $(cdebug)  $(cflags) $(cvars) $(OTHERCLOPTS) lowpass.c
  27.  
  28. # Update the executable file if necessary, and if so, add the resource back in.
  29.  
  30. lowpass.exe lowpass.map:  $(OBJS) lowpass.res
  31.     $(link) $(linkdebug) $(guiflags) -out:lowpass.exe $(OBJS) lowpass.res $(guilibs) \
  32.     winmm.lib -map:$*.map
  33.     
  34. lowpass.sym:    $*.map
  35.     mapsym $*.map
  36.  
  37. clean:
  38.     @if exist lowpass.exe del lowpass.exe
  39.     @if exist *.obj del *.obj
  40.     @if exist *.map del *.map
  41.     @if exist *.sym del *.sym
  42.     @if exist *.res del *.res
  43.     @if exist *.pdb del *.pdb
  44.     @if exist *.exp del *.exp
  45.     @if exist *.lib del *.lib
  46.