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