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 / idfedit / makefile < prev    next >
Makefile  |  1996-04-25  |  1KB  |  53 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. APPVER=4.0
  4.  
  5. !include <win32.mak>
  6.  
  7. !if "$(CPU)" == "i386" # .syms are useful for Win95
  8. SYM = idfedt32.sym
  9. !endif
  10.  
  11. all: idfedt32.exe $(SYM)
  12.  
  13. LIBS=msacm32.lib vfw32.lib winmm.lib shell32.lib
  14.  
  15. OTHERCLOPTS=-nologo -I. -I..\include
  16. OTHERRCOPTS=-I. -I..\include -I..\..\include
  17.  
  18.  
  19. # Update the resource if necessary
  20.  
  21. idfedit.res: idfedit.rc idfedit.rcv
  22.     $(rc) $(rcflags) $(rcvars) $(OTHERRCOPTS) idfedit.rc
  23.  
  24.  
  25. # Update the object file if necessary
  26.  
  27. .c.obj:
  28.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) $<
  29.  
  30. # Update the executable file if necessary, and if so, add the resource back in.
  31.  
  32. idfedt32.exe idfedt32.map:   drawstr.obj \
  33.                 head.obj    \
  34.                 idf.obj \
  35.                 main.obj \
  36.                 tridee.obj \
  37.                 idfedit.res
  38.     $(link) $(linkdebug) $(guiflags) -out:idfedt32.exe $** $(guilibs) \
  39.         $(LIBS) -map:$*.map
  40.     
  41. idfedt32.sym:    $*.map
  42.     mapsym $*.map
  43.  
  44. clean:
  45.     @if exist idfedt32.exe del idfedt32.exe
  46.     @if exist *.obj del *.obj
  47.     @if exist *.map del *.map
  48.     @if exist *.sym del *.sym
  49.     @if exist *.res del *.res
  50.     @if exist *.pdb del *.pdb
  51.     @if exist *.exp del *.exp
  52.     @if exist *.lib del *.lib
  53.