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 / soundapp / makefile next >
Makefile  |  1995-11-16  |  933b  |  42 lines

  1. APPVER=4.0
  2.  
  3. !include <win32.mak>
  4.  
  5. PROJ = soundapp
  6.  
  7. !if "$(CPU)" == "i386" # .syms are useful for Win95
  8. SYM = $(PROJ).sym
  9. !endif
  10.  
  11. all: $(PROJ).exe $(SYM)
  12.  
  13.  
  14. # Inference rule for updating the object files
  15. .c.obj:
  16.   $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  17.  
  18.  
  19. # Build rule for resource file
  20. $(PROJ).res: $(PROJ).rc resource.h
  21.     $(rc) $(rcflags) $(rcvars) /fo $*.res $*.rc
  22.  
  23.  
  24. # Build rule for EXE
  25. $(PROJ).EXE (PROJ).map:  $(PROJ).obj $(PROJ).res
  26.     $(link) $(linkdebug) $(guilflags) \
  27.     $(PROJ).obj $(PROJ).res $(guilibs) version.lib winmm.lib -map:$*.map
  28.  
  29. $(PROJ).SYM: $*.map
  30.     mapsym $*.map
  31.  
  32. # Rules for cleaning out those old files
  33. clean:
  34.     @if exist soundapp.exe del soundapp.exe
  35.     @if exist *.obj del *.obj
  36.     @if exist *.map del *.map
  37.     @if exist *.sym del *.sym
  38.     @if exist *.res del *.res
  39.     @if exist *.pdb del *.pdb
  40.     @if exist *.exp del *.exp
  41.     @if exist *.lib del *.lib
  42.