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.

110 lines
2.0 KiB

  1. #
  2. # sources.all
  3. #
  4. # Common definitions, etc, for ISBU components
  5. #
  6. # History
  7. # davidsan 08-24-95 created from the ashes of makefile.mos
  8. # and mospaths.mak
  9. # jeffmcd 06-19-96 changes to build for SUR
  10. # jeffmcd 11-27-96 renamed from sources.msn and cleanup
  11. #
  12. #
  13. # global defaults
  14. #
  15. #
  16. # We are defaulting to ATL30
  17. #
  18. ATL_VER=30
  19. #
  20. # set debug if checked build
  21. #
  22. !if "$(FREEBUILD)"=="1"
  23. !undef DEBUG
  24. !else
  25. DEBUG=1
  26. !endif
  27. !ifdef TRACE_ENABLED
  28. C_DEFINES=$(C_DEFINES) /DTRACE_ENABLED
  29. !endif
  30. #
  31. # all components need versioning and maybe global headers in \core\include
  32. #
  33. INCLUDES=$(INCLUDES);$(COREINC);$(CORETARGET);$(TERMSRV_INC_PATH); $(TERMSRV_LIB_DEST)
  34. #
  35. # use our placement file
  36. #
  37. BINPLACE_PLACEFILE=$(INETROOT)\build\placefile
  38. #
  39. # warnings are errors on all platforms
  40. #
  41. MSC_WARNING_LEVEL=/W3 /WX
  42. #
  43. # want runtime type info
  44. #
  45. USE_RTTI=1
  46. #
  47. # random default, everything gets rebased
  48. #
  49. DEFBASEADDR=0x60000000
  50. #
  51. # set the default target path
  52. #
  53. !if "$(TARGETPATH)"==""
  54. TARGETPATH=$(INETROOT)\$(MAJORCOMP)\target\$(_OBJ_DIR)
  55. !endif
  56. #
  57. # route message file headers to TARGET dirs
  58. #
  59. PASS0_HEADERDIR=$(TARGETPATH)\$(TARGET_DIRECTORY)
  60. #
  61. # set defines for debug builds
  62. #
  63. !ifdef DEBUG
  64. C_DEFINES=$(C_DEFINES) -DDEBUG=1
  65. MSC_OPTIMIZATION=$(MSC_OPTIMIZATION) /Od
  66. !endif
  67. #
  68. # set the CRT type.
  69. #
  70. # when building with NT 5.0, we want USE_MSVCRT=1, which links with MSVCRT.LIB
  71. # and requires MSVCRT.DLL as the runtime
  72. #
  73. # see \NTPUBLIC\50\OAK\BIN\MAKEFILE.DEF to see how each of these directives
  74. # causes the CRT linking to change.
  75. #
  76. !if !defined(USE_MSVCRT20) && !defined(USE_MSVCRT40) && !defined(USE_LIBCMT) && !defined(USE_NOLIBS) && !defined(USE_CRTDLL)
  77. USE_MSVCRT=1
  78. !endif
  79. #
  80. # tracing
  81. #
  82. !if defined(USE_TRACING)
  83. TARGETLIBS = $(TARGETLIBS) $(CORELIBPATH)\atrace_stub.lib
  84. !endif
  85. #
  86. # UNICODE support
  87. #
  88. !if defined(USE_UNICODE)
  89. C_DEFINES=$(C_DEFINES) -DUNICODE -D_UNICODE
  90. !endif
  91. #
  92. # always want default libs, see .\paths.all for the list
  93. #
  94. TARGETLIBS = $(TARGETLIBS) $(DEFAULTLIBS)