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.

140 lines
2.9 KiB

  1. ##########################################################################
  2. #
  3. # Microsoft Confidential
  4. # Copyright (C) Microsoft Corporation 1991-96
  5. # All Rights Reserved.
  6. #
  7. ##########################################################################
  8. #
  9. # Common include file 'sources' files in the getconn project.
  10. #
  11. #
  12. # Required definitions:
  13. #
  14. # GETCONN_DIR
  15. # Path to root containing this inc file.
  16. #
  17. # FREEBUILD
  18. # Set by makefile.def file. One of the following:
  19. # 0 - build debug
  20. # 1 - build retail
  21. #
  22. #
  23. # Definitions used if defined:
  24. #
  25. # USE_LEGO
  26. # Define lego macros
  27. #
  28. # TARGET_WIN95
  29. # Build component explicitly for the Win95 platform. If this is
  30. # not defined, default is NT.
  31. #
  32. # TARGET_BOTH
  33. # Build component so it will run in both environments.
  34. #
  35. !if !defined(GETCONN_DIR)
  36. !error GETCONN_DIR must be defined in sources file
  37. !endif
  38. # Set the IE version
  39. #WIN32_IE_VERSION=0x0500
  40. #
  41. # In case you have an old makefile.def
  42. #
  43. !if "$(_OBJ_DIR)" == ""
  44. _OBJ_DIR = obj
  45. !endif
  46. !if "$(O)" == ""
  47. O = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
  48. !endif
  49. #
  50. # Set private paths
  51. #
  52. INCLUDES = .;$(GETCONN_DIR)\inc;$(GETCONN_DIR)\mapi\inc;$(SDK_INC_PATH);$(INCLUDES)
  53. #
  54. # Set common options
  55. #
  56. # Defining this allows windows.h to include other headers
  57. NOT_LEAN_AND_MEAN= 1
  58. # Don't link to NT libs
  59. # USE_NOLIBS = 1
  60. NO_NTDLL =1
  61. !if !defined(SXS_MANIFEST)
  62. #!if defined(TARGET_WIN95)
  63. # Don't define WINNT
  64. CHICAGO_PRODUCT = 0
  65. # Since CHICAGO_PRODUCT is defined, we need to define WIN32_DEFINE correctly
  66. #WIN32_DEFINE = -DWIN32=100 -D_WIN32_WINNT=0x0400
  67. !endif
  68. #CBSTRING = -cbstring
  69. # RegisB, 05/30/97: BryanT strongly recommends to remove the CBSTRING entry
  70. UMTYPE = windows
  71. #
  72. # Lego options
  73. #
  74. !if defined(USE_LEGO)
  75. NTBBT = 1
  76. NTPROFILEINPUT = 1
  77. !endif
  78. #
  79. # Additional compiler flags
  80. #
  81. C_DEFINES = $(C_DEFINES) -DWIN32 -D_WIN32
  82. !if !defined(TARGET_WIN95)
  83. C_DEFINES = $(C_DEFINES) -DNT
  84. ! if !defined(NOT_UNICODE)
  85. C_DEFINES = $(C_DEFINES) -DUNICODE -D_UNICODE
  86. ! endif
  87. !endif
  88. # Backwards compatibility with some personal command files
  89. !if "$(SHELLDBG)" == "1"
  90. C_DEFINES = $(C_DEFINES) -DDEBUG -DFULL_DEBUG
  91. !elseif "$(FREEBUILD)" == "0"
  92. C_DEFINES = $(C_DEFINES) -DDEBUG
  93. !endif
  94. # Assume we're building for Nashville only right now
  95. C_DEFINES = $(C_DEFINES) -DNASHVILLE
  96. # This define helps us distinguish our development environment
  97. C_DEFINES = $(C_DEFINES) -DWINNT_ENV
  98. # IE40-only features
  99. !ifdef FEATURE_IE40
  100. C_DEFINES = $(C_DEFINES) -DFEATURE_IE40 -DNASH
  101. !endif
  102. # Make warnings equivalent to errors
  103. !if !defined(MSC_WARNING_LEVEL)
  104. MSC_WARNING_LEVEL= /W3
  105. !endif
  106. MSC_WARNING_LEVEL= $(MSC_WARNING_LEVEL) /WX
  107. #
  108. # Additional linker flags
  109. #
  110. #Not Needed
  111. LINKER_FLAGS = $(LINKER_FLAGS) -map
  112. !if !$(IA64)
  113. 386_STDCALL = 2
  114. !endif
  115. DEFBASEADDR = 0x60000000