Leaked source code of windows server 2003
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.

156 lines
3.6 KiB

  1. !IF 0
  2. Copyright (C) Microsoft Corporation, 1989 - 1999
  3. Module Name:
  4. sources.
  5. Abstract:
  6. This file specifies the target component being built and the list of
  7. sources files needed to build that component. Also specifies optional
  8. compiler switches and libraries that are unique for the component being
  9. built.
  10. !ENDIF
  11. BUFFER_OVERFLOW_CHECKS=1
  12. NOT_LEAN_AND_MEAN=1
  13. C_DEFINES=$(C_DEFINES) \
  14. -DINC_OLE2 \
  15. -DUNICODE \
  16. -D_NTSYSTEM_ \
  17. -DCI_SHTOLE \
  18. -DCI_INETSRV \
  19. -DOLEDBVER=0x0250 \
  20. -DBUILD_USERNAME="$(USERNAME)"
  21. !if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
  22. CI_USE_NATIVE_EH=0
  23. !endif
  24. !if "$(CI_USE_NATIVE_EH)" != "0"
  25. USE_NATIVE_EH=1
  26. C_DEFINES=$(C_DEFINES) -DNATIVE_EH
  27. !endif
  28. !ifndef CIDBG
  29. !IF "$(NTDEBUG)" == "retail"
  30. CIDBG=0
  31. !ELSEIF "$(NTDEBUG)" == ""
  32. CIDBG=0
  33. !ELSEIF "$(NTDEBUG)" == "ntsdnodbg"
  34. CIDBG=0
  35. !ELSEIF "$(NTDEBUG)" == "ntsd"
  36. CIDBG=1
  37. !ELSEIF "$(NTDEBUG)" == "cvp" || "$(NTDEBUG)" == "sym"
  38. CIDBG=1
  39. !ELSE
  40. !ERROR NTDEBUG macro can be either "retail", "", "ntsd", "cvp" or "sym" or "ntsdnodbg"
  41. !ENDIF
  42. !endif
  43. MAJORCOMP=IndexSrv
  44. USE_CRTDLL=1
  45. CHECKED_ALT_DIR=1
  46. TARGETPATH=obj
  47. SUBSYSTEM_VERSION=5.00
  48. C_DEFINES=$(C_DEFINES) -DCIDBG=$(CIDBG)
  49. !if "$(NTDEBUG)" == "retail" || "$(NTDEBUG)" == ""
  50. C_DEFINES= $(C_DEFINES) -DDEF_INFOLEVEL=0
  51. !else
  52. # Turn these 3 on to track CoTaskMem through the CI allocator.
  53. # Only apps built in the query tree can be used with these
  54. # binaries (nlhtml, ado, etc. won't work). Srch, qryperf,
  55. # and other all-local apps will work.
  56. #C_DEFINES= $(C_DEFINES) -DUseCICoTaskMem
  57. #C_DEFINES= $(C_DEFINES) -DCoTaskMemAlloc=CICoTaskMemAlloc
  58. #C_DEFINES= $(C_DEFINES) -DCoTaskMemFree=CICoTaskMemFree
  59. !endif
  60. !if "$(NO_ERROR_ON_WARNING)" == ""
  61. MSC_WARNING_LEVEL=/W3 /WX
  62. !endif
  63. CONDITIONAL_INCLUDES= \
  64. $(CONDITIONAL_INCLUDES) \
  65. ntos.h disptype.h varnt.h macocidl.h rpcerr.h rpcmac.h \
  66. macname1.h macpub.h macapi.h macname2.h winwlm.h new
  67. #
  68. # Turn on CI_USE_JET if Jet should be used for CI PathStore
  69. #
  70. !if "$(CI_USE_JET)" == ""
  71. CI_USE_JET=0
  72. !endif
  73. !if "$(CI_USE_JET)" == "1"
  74. C_DEFINES=$(C_DEFINES) -DCI_USE_JET
  75. !endif
  76. TARGETLIBS = \
  77. $(BASEDIR)\public\sdk\lib\*\uuid.lib \
  78. $(BASEDIR)\public\sdk\lib\*\kernel32.lib \
  79. $(BASEDIR)\public\sdk\lib\*\advapi32.lib \
  80. $(BASEDIR)\public\sdk\lib\*\ole32.lib
  81. #
  82. # Support for IceCap profiling.
  83. #
  84. !if "$(PERFFLAGS)" == "TRUE"
  85. BUILD_ALT_DIR=p
  86. TARGETPATH=objp
  87. ! if exist ($(BASEDIR)\public\sdk\lib\$(TARGET_DIRECTORY)\icap.lib)
  88. ! if !defined(MSC_Optimiztion)
  89. MSC_OPTIMIZATION=-Oxs -Gh -MD
  90. ! elseif "$(MSC_OPTIMIZATION)" == "-GX"
  91. MSC_OPTIMIZATION=-Oxs -GX -Gh -MD
  92. ! else
  93. MSC_OPTIMIZATION=$(MSC_OPTIMIZATION) -Gh -MD
  94. ! endif
  95. USE_PDB=1
  96. ! if "$(USE_PENTER)" == "TRUE"
  97. LINKLIBS=$(LINKLIBS) $(BASEDIR)\public\sdk\lib\*\penter.lib
  98. UMLIBS=$(UMLIBS) $(BASEDIR)\public\sdk\lib\*\penter.lib
  99. ! else
  100. LINKLIBS=$(LINKLIBS) $(BASEDIR)\public\sdk\lib\*\ICAP.lib
  101. UMLIBS=$(UMLIBS) $(BASEDIR)\public\sdk\lib\*\ICAP.lib
  102. ! endif
  103. ! if "$(CIDBG)" == "1"
  104. ! message Warning: Profiling with CIDBG on!
  105. ! endif
  106. ! if "$(DBG)" == "1"
  107. ! message Warning: Profiling with DBG on!
  108. ! endif
  109. ! else
  110. ! error Cannot build for IceCap profiling without ICAP.LIB
  111. ! endif
  112. !else
  113. #
  114. # If not profiling and not a debug build, bump up optimizations
  115. # and enable BBT support.
  116. #
  117. ! if "$(CIDBG)" != "1"
  118. USER_C_FLAGS= -Ob2
  119. NTBBT=1
  120. ! endif
  121. !endif