makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #
  2. # Makefile for Engine.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=fedperf
  25. MAINTARGEXT=dll
  26. INCLUDELOCAL=
  27. PCHINC=
  28. !include "..\makefile.inc"
  29. OBJS= $(DESTDIR)\cntrmap.obj \
  30. $(DESTDIR)\collect.obj \
  31. $(DESTDIR)\perfdll.obj \
  32. $(DESTDIR)\perfutil.obj \
  33. $(DESTDIR)\pch.obj
  34. LIBS= \
  35. $(LIBSFLAVOR) \
  36. advapi32.lib \
  37. kernel32.lib \
  38. user32.lib
  39. USERLIBS= \
  40. $(DESTDIR)\..\sharemem\sharemem.lib
  41. DLLFLAGS=/DLL /DEF:$(MAINTARGROOT).def
  42. LOCALARGS= $(NOLOGO) /pdb:$(PDB) /machine:I386 /nodefaultlib \
  43. /LIBPATH:$(FEDEXT)\Vc\Lib \
  44. /out:$(DESTDIR)\$(MAINTARGROOT).dll \
  45. LARGS=$(LARGSFLAVOR) $(LOCALARGS) $(DLLFLAGS)
  46. #
  47. # Dependecies start here
  48. #
  49. $(MAINTARGFULLPATH): $(DESTDIR) $(OBJS)
  50. $(LINK) $(LARGS) $(LIBS) $(USERLIBS) $(OBJS)
  51. $(DESTDIR)\cntrmap.obj: $(PCHFILE)
  52. $(DESTDIR)\collect.obj: $(PCHFILE)
  53. $(DESTDIR)\perfdll.obj: $(PCHFILE)
  54. $(DESTDIR)\perfutil.obj: $(PCHFILE)