makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Makefile for sound.lib
  3. #
  4. # Environment variable Requirements:
  5. #
  6. # INCLUDE=foo // can be set to anything, must be set
  7. # PATH= // must have proper nmake on path
  8. # FEDROOT=<path> // MUST point to base of fed src enlistment
  9. #
  10. # nmake args:
  11. #
  12. # Clean // will delete all files in destination dir
  13. # Full // will Clean, then build all derived files
  14. # Shell // opens os-specific cmd/command shell (helps to debug build)
  15. # RETAIL= // builds a retail build (default is DEBUG)
  16. # // no argument is used for debug builds
  17. #
  18. #
  19. # All derived files (temp files, .res, output of midl, *.obj, *.exe/.dll...
  20. # are placed directly into the appropriate tree under $(FEDROOT)\Objs.
  21. # The $(FEDROOT)\Objs tree is created on demand.
  22. # Since no derived files are placed in the source tree, multiple builds
  23. # can be run SIMULTANEOUSLY.
  24. MAINTARGROOT=soundengine
  25. MAINTARGEXT=lib
  26. INCLUDELOCAL=$(FEDSRC)\ZLib
  27. PCHROOT=pch
  28. PCHINC=$(FEDSRC)\ZLib\*.h
  29. !include "..\makefile.inc"
  30. OBJS= $(DESTDIR)\ds3dutil.obj \
  31. $(DESTDIR)\ds3dbuffer.obj \
  32. $(DESTDIR)\ds3dvirtualbuffer.obj \
  33. $(DESTDIR)\ds3dengine.obj \
  34. $(DESTDIR)\soundbase.obj \
  35. $(DESTDIR)\soundutil.obj \
  36. $(DESTDIR)\soundtemplates.obj \
  37. $(DESTDIR)\dummysound.obj \
  38. $(DESTDIR)\redbooksound.obj \
  39. $(DESTDIR)\pch.obj
  40. #
  41. # Dependecies start here
  42. #
  43. $(MAINTARGFULLPATH): $(DESTDIR) $(OBJS)
  44. lib $(LIBARGS) $(OBJS)
  45. $(DESTDIR)\ds3dutil.obj: $(PCHFILE) soundbase.h ds3dutil.h
  46. $(DESTDIR)\ds3dbuffer.obj: $(PCHFILE) soundbase.h ds3dutil.h ds3dbuffer.h
  47. $(DESTDIR)\ds3dvirtualbuffer.obj: $(PCHFILE) soundbase.h ds3dutil.h ds3dbuffer.h ds3dvirtualbuffer.h
  48. $(DESTDIR)\ds3dengine.obj: $(PCHFILE) soundbase.h ds3dutil.h ds3dbuffer.h ds3dvirtualbuffer.h ds3dengine.h
  49. $(DESTDIR)\soundbase.obj: $(PCHFILE) soundbase.h ds3dutil.h ds3dbuffer.h ds3dvirtualbuffer.h ds3dengine.h
  50. $(DESTDIR)\soundutil.obj: $(PCHFILE) soundbase.h soundutil.h
  51. $(DESTDIR)\soundtemplates.obj: $(PCHFILE) soundbase.h soundutil.h soundtemplates.h
  52. $(DESTDIR)\redbooksound.obj: $(PCHFILE) soundbase.h redbooksound.h
  53. $(DESTDIR)\dummysound.obj: $(PCHFILE) soundbase.h