MAKEFILE 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Makefile for Utility.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. SRCROOT=_utility
  25. MAINTARGROOT=Utility
  26. MAINTARGEXT=lib
  27. INCLUDELOCAL=$(FEDSRC)\_Utility;$(FEDSRC)\WinTrek;$(FEDSRC)\ZLib
  28. PCHROOT=pch
  29. PCHINC=$(FEDSRC)\ZLib\*.h $(FEDSRC)\_utility\*.h $(FEDSRC)\zone\zauth.h
  30. !include "..\makefile.inc"
  31. OBJS= $(DESTDIR)\Utility.obj \
  32. $(DESTDIR)\KDroot.obj \
  33. $(DESTDIR)\KDnode.obj \
  34. $(DESTDIR)\HitTest.obj \
  35. $(DESTDIR)\CRC.obj \
  36. $(DESTDIR)\CollisionEntry.obj \
  37. $(DESTDIR)\CollisionQueue.obj \
  38. !IFNDEF DREAMCAST
  39. $(DESTDIR)\Messages.obj \
  40. !ENDIF
  41. $(DESTDIR)\Endpoint.obj \
  42. $(DESTDIR)\ZAuth.obj \
  43. $(DESTDIR)\allegdb.obj
  44. LIBARGS= $(NOLOGO) /out:$(MAINTARGFULLPATH)
  45. #
  46. # Dependecies start here
  47. #
  48. $(MAINTARGFULLPATH): $(DESTDIR) $(OBJS)
  49. lib $(LIBARGS) $(OBJS) $(DESTDIR)\pch.obj
  50. $(DESTDIR)\Utility.obj: $(PCHFILE)
  51. $(DESTDIR)\messages.obj: $(PCHFILE)
  52. $(DESTDIR)\KDroot.obj: $(PCHFILE)
  53. $(DESTDIR)\KDnode.obj: $(PCHFILE)
  54. $(DESTDIR)\HitTest.obj: $(PCHFILE)
  55. $(DESTDIR)\CRC.obj: $(PCHFILE)
  56. $(DESTDIR)\CollisionEntry.obj: $(PCHFILE)
  57. $(DESTDIR)\CollisionQueue.obj: $(PCHFILE)
  58. $(DESTDIR)\Endpoint.obj: $(PCHFILE)
  59. $(DESTDIR)\ZAuth.obj: $(PCHFILE)
  60. $(DESTDIR)\AllegDB.obj: $(PCHFILE)