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.

334 lines
6.8 KiB

  1. #
  2. SOURCES_USED=$(ROOT)\common.inc
  3. TREE_SYNC=1
  4. NDHACKS=1
  5. ACCURATEZOOM=1
  6. #IE6_WYSIWYG_OM=1
  7. #DLOAD1=1
  8. NO_DEBUG_HOOK=1
  9. ADORNERS=1
  10. FOCUS_ADORNER=1
  11. #FOCUS_BEHAVIOR=1
  12. #EDIT_BEHAVIOR=1
  13. #VIEW_SERVICES=1
  14. #MULTI_FORMAT=1
  15. MULTI_LAYOUT=1
  16. #HTML_LAYOUT=1
  17. #VSTUDIO7EDIT=1
  18. #ND_ASSERT=1
  19. #CICERO=1
  20. FORMSMODE=0
  21. #SLOWALLOC=1
  22. #MARKCODE=1
  23. CONDITIONAL_INCLUDES= \
  24. winwlm.h \
  25. rpcerr.h \
  26. rpcmac.h \
  27. macname1.h \
  28. macpub.h \
  29. macapi.h \
  30. macname2.h \
  31. macocidl.h \
  32. maccontrols.h \
  33. mainwin.h \
  34. w16toff.hxx \
  35. print.h \
  36. regmsg16.h \
  37. urlmki.h \
  38. help.h \
  39. pgstup16.hxx \
  40. page.h \
  41. icapexp.h \
  42. ccolorsync.h \
  43. folders.h \
  44. pixmap.h \
  45. pngfilt.ic \
  46. COREINCLUDES=\
  47. $(ROOT)\src\f3\include; \
  48. $(ROOT)\src\core\include; \
  49. $(ROOT)\src\core\cdutil; \
  50. $(ROOT)\src\site\display; \
  51. $(ROOT)\src\intl\include; \
  52. $(ROOT)\external\inc; \
  53. $(ROOT)\types\$(O); \
  54. $(SHELL_INC_PATH);
  55. SITEINCLUDES=\
  56. $(ROOT)\src\f3\include; \
  57. $(ROOT)\src\site\include; \
  58. $(ROOT)\src\site\base; \
  59. $(ROOT)\src\site\builtin; \
  60. $(ROOT)\src\site\dbind; \
  61. $(ROOT)\src\site\display; \
  62. $(ROOT)\src\site\download; \
  63. $(ROOT)\src\site\layout; \
  64. $(ROOT)\src\site\miscelem; \
  65. $(ROOT)\src\site\miscsite; \
  66. $(ROOT)\src\site\ole; \
  67. $(ROOT)\src\site\print; \
  68. $(ROOT)\src\site\style; \
  69. $(ROOT)\src\site\table; \
  70. $(ROOT)\src\site\text; \
  71. $(ROOT)\src\site\util; \
  72. $(ROOT)\src\site\view; \
  73. $(ROOT)\src\site\acc; \
  74. $(ROOT)\src\other\include; \
  75. $(ROOT)\src\other\htmldlg; \
  76. $(ROOT)\src\other\htmlapp; \
  77. $(ROOT)\src\dlay\dl; \
  78. $(ROOT)\src\core\include; \
  79. $(ROOT)\src\core\cdutil; \
  80. $(ROOT)\src\intl\include; \
  81. $(ROOT)\src\intl\idl\$(O); \
  82. $(ROOT)\external\inc; \
  83. $(ROOT)\external\inc\msls; \
  84. $(ROOT)\types\$(O); \
  85. $(ROOT)\imgfilt; \
  86. $(SHELL_INC_PATH);
  87. !if !defined(WARNING_LEVEL)
  88. WARNING_LEVEL=W4
  89. !endif
  90. MSC_WARNING_LEVEL=-$(WARNING_LEVEL) -WX
  91. IA64_WARNING_LEVEL=-$(WARNING_LEVEL:W4=W3) -WX
  92. AMD64_WARNING_LEVEL=-$(WARNING_LEVEL:W4=W3) -WX -D_M_AMD64
  93. C_DEFINES = $(C_DEFINES) \
  94. /D_WCTYPE_INLINE_DEFINED \
  95. /DNASHVILLE \
  96. /DSTRICT \
  97. /DUNICODE \
  98. /D_UNICODE \
  99. /DOLEDBVER=0x0200 \
  100. !if !$(FREEBUILD)
  101. USE_RTTI=1
  102. MSC_OPTIMIZATION=/Od
  103. #USER_CPP_FLAGS=/zmf
  104. WATCOM_OPTS=/ei /zt16 /zm /zff /zgf
  105. LINKER_NOICF=1 # ICF is s-l-o-w
  106. USE_DEBUGLIB=1
  107. !if $(386) && !defined(UNIX)
  108. USE_STACK_SPEW=1
  109. !endif
  110. !else
  111. MSC_OPTIMIZATION=/Oxs
  112. #USER_CPP_FLAGS=/zmf
  113. WATCOM_OPTS=/ei /zt16 /ox /oe /zm /zff /zgf
  114. !endif
  115. !if defined(MSHTML_COD_FILES)
  116. USER_C_FLAGS=$(USER_C_FLAGS) /Fc
  117. !endif
  118. !if !$(FREEBUILD) && defined(MSHTML_NO_INLINE)
  119. MSC_OPTIMIZATION=$(MSC_OPTIMIZATION) /Ob0 /Oi
  120. !else
  121. MSC_OPTIMIZATION=$(MSC_OPTIMIZATION) /Ob1 /Oi
  122. !endif
  123. NOT_LEAN_AND_MEAN=1
  124. UMTYPE=windows
  125. USE_NOLIBS=1
  126. USE_MSVCRT=1
  127. # Use NT 4.0/Win95 functionality only
  128. WIN32_IE_VERSION=0x0400
  129. WIN32_WINNT_VERSION=0x0400
  130. WIN32_WIN95_VERSION=0x0400
  131. SUBSYSTEM_VERSION=4.00
  132. !if $(386)
  133. NO_NTDLL=1
  134. !else
  135. # USE_NTDLL=1
  136. !endif
  137. # By default, don't generate a .bsc file
  138. NO_BROWSER_FILE=1
  139. !ifdef MSHTML_BROWSER_INFO
  140. USER_ENV_BROWSER_INFO=1
  141. BROWSER_INFO = 1;
  142. !endif
  143. !ifdef HTML_LAYOUT
  144. C_DEFINES = $(C_DEFINES) /DHTML_LAYOUT
  145. !endif
  146. !ifdef NDHACKS
  147. C_DEFINES = $(C_DEFINES) /DNDHACKS
  148. !endif
  149. !ifdef ND_ASSERT
  150. C_DEFINES = $(C_DEFINES) /DND_ASSERT
  151. !endif
  152. !ifdef TREE_SYNC
  153. C_DEFINES = $(C_DEFINES) /DTREE_SYNC
  154. !endif
  155. !ifdef IE6_WYSIWYG_OM
  156. C_DEFINES = $(C_DEFINES) /DIE6_WYSIWYG_OM
  157. !endif
  158. !ifdef DLOAD1
  159. C_DEFINES = $(C_DEFINES) /DDLOAD1
  160. !endif
  161. !ifdef ACCURATEZOOM
  162. C_DEFINES = $(C_DEFINES) /DACCURATEZOOM
  163. !endif
  164. !ifdef MULTI_FORMAT
  165. C_DEFINES = $(C_DEFINES) /DMULTI_FORMAT
  166. !endif
  167. !ifdef MULTI_LAYOUT
  168. C_DEFINES = $(C_DEFINES) /DMULTI_LAYOUT
  169. !endif
  170. !ifdef VIEW_SERVICES
  171. C_DEFINES = $(C_DEFINES) /DVIEW_SERVICES
  172. !endif
  173. !ifdef DISABLE_MEASURING
  174. C_DEFINES = $(C_DEFINES) /DDISABLE_MEASURING
  175. !endif
  176. !ifdef NEW_FILTERS
  177. C_DEFINES = $(C_DEFINES) /DNEW_FILTERS
  178. !endif
  179. !ifdef ADORNERS
  180. C_DEFINES = $(C_DEFINES) /DADORNERS
  181. !endif
  182. !ifdef FOCUS_ADORNER
  183. C_DEFINES = $(C_DEFINES) /DFOCUS_ADORNER
  184. !endif
  185. !ifdef FOCUS_BEHAVIOR
  186. C_DEFINES = $(C_DEFINES) /DFOCUS_BEHAVIOR
  187. !endif
  188. !ifdef EDIT_BEHAVIOR
  189. C_DEFINES = $(C_DEFINES) /DEDIT_BEHAVIOR
  190. !endif
  191. !ifdef SLOWALLOC
  192. !message SLOWALLOC was defined
  193. C_DEFINES = $(C_DEFINES) /DSLOWALLOC
  194. !endif
  195. !ifdef MARKCODE
  196. !message MARKCODE was defined
  197. C_DEFINES = $(C_DEFINES) /DMARKCODE
  198. !endif
  199. !if defined(USE_ICECAP) || defined(USING_ICECAP4_ICEPICK)
  200. C_DEFINES = $(C_DEFINES) /DPRODUCT_PROF
  201. !if defined(USING_ICECAP4_ICEPICK)
  202. C_DEFINES = $(C_DEFINES) /DICECAP4
  203. PERFLIBS=$(ROOT)\external\lib\icecap.lib
  204. !endif
  205. !endif
  206. !ifdef USE_PERFTAGS
  207. !if $(FREEBUILD)
  208. C_DEFINES = $(C_DEFINES) /DPERFTAGS
  209. !message PERFTAGS was defined
  210. USE_DEBUGLIB=1
  211. !endif
  212. !endif
  213. !if !$(FREEBUILD) && !defined(UNIX)
  214. C_DEFINES = $(C_DEFINES) /DPERFMETER
  215. !message PERFMETER was defined
  216. USE_DEBUGLIB=1
  217. !endif
  218. !ifdef USE_STACK_SPEW
  219. C_DEFINES = $(C_DEFINES) /DUSE_STACK_SPEW
  220. !message USE_STACK_SPEW was defined
  221. !endif
  222. !if "$(BUILD_ALT_DIR)"=="m" && "$(USE_PERFTAGS_IN_METER_BUILD)"=="1"
  223. C_DEFINES = $(C_DEFINES:PERFMETER=PERFMETER /DPERFTAGS)
  224. !message PERFTAGS was defined in METER build
  225. USE_DEBUGLIB=1
  226. !endif
  227. !if "$(BUILD_ALT_DIR)"=="m"
  228. USE_DEBUGLIB=1
  229. !endif
  230. !if $(FREEBUILD) && "$(BUILD_ALT_DIR)"!="m" && "$(USE_SWITCHES_IN_RETAIL_BUILD)"=="1"
  231. C_DEFINES = $(C_DEFINES) /DUSESWITCHES
  232. !message USESWITCHES was defined in RETAIL build
  233. !endif
  234. !if !$(FREEBUILD) || "$(OBJCNTCHK)"=="1"
  235. C_DEFINES = $(C_DEFINES) /DOBJCNTCHK
  236. !message OBJCNTCHK was defined
  237. !endif
  238. TRIRTMAIN=_DllMainStartup
  239. !if defined(USE_STACK_SPEW) && defined(USE_DEBUGLIB)
  240. TRIRTMAIN=_DllMainStartupDebugChkStk
  241. !endif
  242. !if defined(USE_STACK_SPEW) && !defined(USE_DEBUGLIB)
  243. TRIRTMAIN=_DllMainStartupChkStk
  244. !endif
  245. !if !defined(USE_STACK_SPEW) && defined(USE_DEBUGLIB)
  246. TRIRTMAIN=_DllMainStartupDebug
  247. !endif
  248. !ifdef USE_MSHTML_INCREMENTAL_LINKING
  249. !if !$(FREEBUILD) && $(USE_MSHTML_INCREMENTAL_LINKING)
  250. NTDEBUG=ntsd
  251. NTDEBUGTYPE=windbg
  252. NTDBGFILES=1
  253. !undef USE_MAPSYM
  254. USE_INCREMENTAL_LINKING=1
  255. LINKER_FLAGS=$(LINKER_FLAGS) -INCREMENTAL:YES
  256. USE_PDB_TO_COMPILE=1
  257. TARGETPDB=MSHTML
  258. !message USE_MSHTML_INCREMENTAL_LINKING was defined
  259. !message $(TARGETPDB) was defined
  260. !endif
  261. !else
  262. # Compatibility with existing usage before use_mshtml_incremental_linking
  263. !ifdef USE_INCREMENTAL_LINKING
  264. !message DOING IT THE OLD WAY
  265. LINKER_FLAGS = -INCREMENTAL:YES
  266. USE_PDB_TO_COMPILE=1
  267. !else
  268. USE_MAPSYM=1
  269. !endif
  270. !endif
  271. #
  272. # Linker flags
  273. #
  274. !if "$(BUILD_PRODUCT)" == "IE"
  275. USE_WIN98OPT=1
  276. !endif
  277. # Emit LTCG codegen
  278. !if $(IA64)
  279. LTCG_WKS=1
  280. !endif