makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # Makefile for Drones.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=Drones
  25. MAINTARGEXT=lib
  26. INCLUDELOCAL=$(FEDEXT)\vc\mfc\inc;$(FEDSRC)\ZLib;$(FEDSRC)\_Utility;$(FEDSRC)\Igc;$(DESTDIR)\..\igc;$(FEDSRC)\jpeg;$(FEDSRC)\clintlib
  27. PCHINC=$(FEDSRC)\ZLib\*.h $(FEDSRC)\_Utility\*.h $(FEDSRC)\Igc\*.h
  28. PCHROOT=pch
  29. !include "..\makefile.inc"
  30. OBJS= $(DESTDIR)\drones.obj \
  31. $(DESTDIR)\drone.obj \
  32. $(DESTDIR)\mining.obj \
  33. $(DESTDIR)\turret.obj \
  34. $(DESTDIR)\goal.obj \
  35. $(DESTDIR)\actionlib.obj
  36. #
  37. # Dependecies start here
  38. #
  39. $(MAINTARGFULLPATH): $(DESTDIR) $(OBJS)
  40. lib $(LIBARGS) $(OBJS)
  41. $(DESTDIR)\drones.obj: $(PCHFILE)
  42. $(DESTDIR)\drone.obj: $(PCHFILE)
  43. $(DESTDIR)\mining.obj: $(PCHFILE)
  44. $(DESTDIR)\turret.obj: $(PCHFILE)
  45. $(DESTDIR)\goal.obj: $(PCHFILE)
  46. $(DESTDIR)\actionlib.obj: $(PCHFILE)