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.

158 lines
3.5 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. INCLUDES=$(INCLUDES);..\redist\h;..\..\redist\h;..\..\..\redist\h
  64. CONDITIONAL_INCLUDES= \
  65. $(CONDITIONAL_INCLUDES) \
  66. ntos.h disptype.h varnt.h macocidl.h rpcerr.h rpcmac.h \
  67. macname1.h macpub.h macapi.h macname2.h winwlm.h new
  68. #
  69. # Turn on CI_USE_JET if Jet should be used for CI PathStore
  70. #
  71. !if "$(CI_USE_JET)" == ""
  72. CI_USE_JET=0
  73. !endif
  74. !if "$(CI_USE_JET)" == "1"
  75. C_DEFINES=$(C_DEFINES) -DCI_USE_JET
  76. !endif
  77. TARGETLIBS = \
  78. $(BASEDIR)\public\sdk\lib\*\uuid.lib \
  79. $(BASEDIR)\public\sdk\lib\*\kernel32.lib \
  80. $(BASEDIR)\public\sdk\lib\*\advapi32.lib \
  81. $(BASEDIR)\public\sdk\lib\*\ole32.lib
  82. #
  83. # Support for IceCap profiling.
  84. #
  85. !if "$(PERFFLAGS)" == "TRUE"
  86. BUILD_ALT_DIR=p
  87. TARGETPATH=objp
  88. ! if exist ($(BASEDIR)\public\sdk\lib\$(TARGET_DIRECTORY)\icap.lib)
  89. ! if !defined(MSC_Optimiztion)
  90. MSC_OPTIMIZATION=-Oxs -Gh -MD
  91. ! elseif "$(MSC_OPTIMIZATION)" == "-GX"
  92. MSC_OPTIMIZATION=-Oxs -GX -Gh -MD
  93. ! else
  94. MSC_OPTIMIZATION=$(MSC_OPTIMIZATION) -Gh -MD
  95. ! endif
  96. USE_PDB=1
  97. ! if "$(USE_PENTER)" == "TRUE"
  98. LINKLIBS=$(LINKLIBS) $(BASEDIR)\public\sdk\lib\*\penter.lib
  99. UMLIBS=$(UMLIBS) $(BASEDIR)\public\sdk\lib\*\penter.lib
  100. ! else
  101. LINKLIBS=$(LINKLIBS) $(BASEDIR)\public\sdk\lib\*\ICAP.lib
  102. UMLIBS=$(UMLIBS) $(BASEDIR)\public\sdk\lib\*\ICAP.lib
  103. ! endif
  104. ! if "$(CIDBG)" == "1"
  105. ! message Warning: Profiling with CIDBG on!
  106. ! endif
  107. ! if "$(DBG)" == "1"
  108. ! message Warning: Profiling with DBG on!
  109. ! endif
  110. ! else
  111. ! error Cannot build for IceCap profiling without ICAP.LIB
  112. ! endif
  113. !else
  114. #
  115. # If not profiling and not a debug build, bump up optimizations
  116. # and enable BBT support.
  117. #
  118. ! if "$(CIDBG)" != "1"
  119. USER_C_FLAGS= -Ob2
  120. NTBBT=1
  121. ! endif
  122. !endif