Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.3 KiB

  1. all_hack: all
  2. RELATIVE_DEPTH=..\$(RELATIVE_DEPTH)
  3. TARGETPATH=obj
  4. # This goes along with the binplace alternative formerly used.
  5. #TARGETPATH=$(RELATIVE_DEPTH)obj
  6. USE_MSVCRT=1
  7. USE_NATIVE_EH=1
  8. MSC_WARNING_LEVEL=-W4 -WX
  9. ATL_VER=30
  10. USE_STATIC_ATL=1
  11. FUSION_PATH=$(BASEDIR)\base\win32\fusion
  12. SXAPW_PATH=$(FUSION_PATH)\appweek
  13. SXAPW_LIB_PATH=$(SXAPW_PATH)\$(O)
  14. SXAPW_LIB_LIB=$(SXAPW_PATH)\common\$(O)\sxapwlib.lib
  15. SXAPW_STDINC_LIB=$(SXAPW_PATH)\stdinc\$(O)\sxapwstdinc.lib
  16. SXAPW_GUIDS_LIB=$(SXAPW_PATH)\idl\$(O)\sxapwguids.lib
  17. #
  18. # This would put all binaries in the same directory, which has its good points.
  19. #
  20. #SXAPW_LIB_PATH_DEST=$(SXAPW_PATH)\obj
  21. #SXAPW_LIB_LIB=$(SXAPW_LIB_PATH_DEST)\sxapwlib.lib
  22. #SXAPW_STDINC_LIB=$(SXAPW_LIB_PATH_DEST)\sxapwstdinc.lib
  23. #SXAPW_GUIDS_LIB=$(SXAPW_LIB_PATH_DEST)\sxapwguids.lib
  24. #
  25. # Use binplace to "union" the files into the same directories, because
  26. # that way we can do "category binds" based on subdirectories off the .exe,
  27. # but then we do a little funky so that the symbols are next to the next binaries.
  28. #
  29. BINPLACE_PLACEFILE=$(SXAPW_PATH)\placefil.txt
  30. _NTTREE=$(SXAPW_PATH).ignore
  31. _NTTREE_NO_SPLIT=$(SXAPW_PATH)
  32. DLLENTRY=SxApwDllMain
  33. PROJECT_COMPILER_WARNINGS = -FI$(FUSION_PATH)\fusionwarnings.h -FI$(SXAPW_PATH)\warning.h
  34. #
  35. # Avoid ever putting generated files next to sources.
  36. # Always put generated sources in processor specific obj directories.
  37. # Don't put them in processor independent directories, so you can to concurrent builds.
  38. #
  39. MIDL_TLBDIR=$(O)
  40. PASS0_HEADERDIR=$(O)
  41. PASS0_SOURCEDIR=$(O)
  42. INCLUDES=\
  43. $(SXAPW_PATH)\inc;\
  44. $(SXAPW_PATH)\idl;\
  45. $(SXAPW_PATH)\idl\$(O);\
  46. $(O); \
  47. PRECOMPILED_OPTION=/Yustdinc.h /Fp$(SXAPW_PATH)\stdinc\$(O)\stdinc.pch
  48. PRECOMPILED_TARGET=$(SXAPW_PATH)\stdinc\$(O)\stdinc.pch
  49. PRECOMPILED_CXX=1
  50. SXS_NO_BINPLACE=1
  51. #
  52. # Jon found that clean builds were deleting the shared .pch but not
  53. # recreating them. This addresses that, and other build.exe shortcomings..
  54. # (building from below the root doesn't build dependencies).
  55. #
  56. !if "$(TARGETNAME)"!="sxapwstdinc"
  57. $(SXAPW_PATH)\stdinc\$(O)\stdinc.pch $(SXAPW_STDINC_LIB):
  58. cd $(SXAPW_PATH)\stdinc && build -Z
  59. !endif
  60. !if "$(TARGETNAME)"!="sxapwguids"
  61. $(SXAPW_GUIDS_LIB) :
  62. cd $(SXAPW_PATH)\idl && build -Z
  63. !endif
  64. !if "$(TARGETNAME)"!="sxapwlib"
  65. $(SXAPW_LIB_LIB):
  66. cd $(SXAPW_PATH)\common && build -Z
  67. !endif