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 / dseqfile / makefile < prev    next >
Encoding:
Makefile  |  1995-11-17  |  1.4 KB  |  54 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <win32.mak>
  4.  
  5. TARGETNAME =    dseqf32
  6.  
  7. !if "$(CPU)" == "i386" # .syms are useful for Win95
  8. SYM = $(TARGETNAME).sym
  9. !endif
  10.  
  11. all: $(TARGETNAME).dll $(SYM)
  12.  
  13. OBJS=           dseqf.obj factory.obj
  14.  
  15. OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo -I. -I..\include
  16. OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN -I. -I..\include
  17.  
  18.  
  19. # Update the resource if necessary
  20.  
  21. handler.res: handler.rc handler.rcv
  22.     $(rc) -r -DWIN32 $(OTHERRCOPTS) handler.rc
  23.  
  24.  
  25. # Update the object file if necessary
  26.  
  27. factory.obj: factory.cpp handler.h
  28.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $(OTHERCLOPTS) factory.cpp
  29.  
  30. dseqf.obj: dseqf.cpp handler.h handler.rc
  31.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $(OTHERCLOPTS) dseqf.cpp
  32.  
  33. # Update the dll file if necessary, and if so, add the resource back in.
  34.  
  35. $(TARGETNAME).dll $(TARGETNAME).map:  $(OBJS) handler.res
  36.     lib -out:$(@B).lib -def:$(TARGETNAME).def $(OBJS)
  37.      $(link) $(linkdebug) -out:$*.dll $(dllflags)  \
  38.         $(@B).exp $(OBJS) handler.res $(olelibsdll) \
  39.         vfw32.lib winmm.lib msacm32.lib -map:$*.map
  40.     
  41. $(TARGETNAME).sym:    $*.map
  42.     mapsym $*.map
  43.  
  44. clean:
  45.     @if exist $(TARGETNAME).dll del $(TARGETNAME).dll
  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.  
  54.