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.

4134 lines
123 KiB

  1. # ******** STRIPLIN=0 ********
  2. # This comment line is used by an automatic cleansing program to
  3. # remove all Microsoft-proprietary information from this makefile.
  4. # ********
  5. !ifdef NTMAKEENV
  6. all:
  7. clean:
  8. !else # NTMAKEENV
  9. !if "$(LLP64)"=="0"
  10. ! if "$(BLD_SYSCRT)"!="1"
  11. DLL_VERSION=70 # Win32 VC CRT
  12. ! else
  13. DLL_VERSION=70 # Win32 System CRT
  14. ! endif
  15. !else
  16. ! if "$(BLD_SYSCRT)"=="0"
  17. DLL_VERSION=70 # Win64 VC CRT
  18. ! else
  19. DLL_VERSION=60 # Win64 System CRT
  20. BLD_SYSCRT=1 # ... default to system CRT for now
  21. ! endif
  22. !endif
  23. !if "$(BLD_TESTCRT)"=="1"
  24. RETAIL_DLL_NAME=testcrt
  25. RETAIL_DLL_NAME_UC=TESTCRT
  26. RETAIL_LIB_NAME=msvcrt
  27. DEBUG_DLL_NAME=testcrtd
  28. DEBUG_DLL_NAME_UC=TESTCRTD
  29. DEBUG_LIB_NAME=msvcrtd
  30. !elseif "$(BLD_SYSCRT)"=="1"
  31. RETAIL_DLL_NAME=msvcrt
  32. RETAIL_DLL_NAME_UC=MSVCRT
  33. DEBUG_DLL_NAME=msvcrtd
  34. DEBUG_DLL_NAME_UC=MSVCRTD
  35. ! if "$(LLP64)"=="0"
  36. RETAIL_LIB_NAME=msvcrt
  37. DEBUG_LIB_NAME=msvcrtd
  38. ! else
  39. RETAIL_LIB_NAME=msvcrt
  40. DEBUG_LIB_NAME=msvcrtd
  41. ! endif
  42. !else
  43. RETAIL_DLL_NAME=msvcr$(DLL_VERSION)
  44. RETAIL_DLL_NAME_UC=MSVCR$(DLL_VERSION)
  45. RETAIL_LIB_NAME=msvcrt
  46. DEBUG_DLL_NAME=msvcr$(DLL_VERSION)d
  47. DEBUG_DLL_NAME_UC=MSVCR$(DLL_VERSION)D
  48. DEBUG_LIB_NAME=msvcrtd
  49. !endif
  50. !if "$(BLD_TESTCRT)"=="1"
  51. RETAIL_DLLCPP_NAME=testprt
  52. RETAIL_DLLCPP_NAME_UC=TESTPRT
  53. RETAIL_LIBCPP_NAME=msvcprt
  54. DEBUG_DLLCPP_NAME=testprtd
  55. DEBUG_DLLCPP_NAME_UC=TESTPRTD
  56. DEBUG_LIBCPP_NAME=msvcprtd
  57. !elseif "$(BLD_SYSCRT)"=="1"
  58. ! if "$(LLP64)"=="0"
  59. RETAIL_DLLCPP_NAME=syspr$(DLL_VERSION)
  60. RETAIL_DLLCPP_NAME_UC=SYSPR$(DLL_VERSION)
  61. RETAIL_LIBCPP_NAME=msvcprt
  62. DEBUG_DLLCPP_NAME=syspr$(DLL_VERSION)d
  63. DEBUG_DLLCPP_NAME_UC=SYSPR$(DLL_VERSION)D
  64. DEBUG_LIBCPP_NAME=msvcprtd
  65. ! else
  66. RETAIL_DLLCPP_NAME=msvcp$(DLL_VERSION)
  67. RETAIL_DLLCPP_NAME_UC=MSVCP$(DLL_VERSION)
  68. RETAIL_LIBCPP_NAME=msvcprt
  69. DEBUG_DLLCPP_NAME=msvcp$(DLL_VERSION)d
  70. DEBUG_DLLCPP_NAME_UC=MSVCP$(DLL_VERSION)D
  71. DEBUG_LIBCPP_NAME=msvcprtd
  72. ! endif
  73. !else
  74. RETAIL_DLLCPP_NAME=msvcp$(DLL_VERSION)
  75. RETAIL_DLLCPP_NAME_UC=MSVCP$(DLL_VERSION)
  76. RETAIL_LIBCPP_NAME=msvcprt
  77. DEBUG_DLLCPP_NAME=msvcp$(DLL_VERSION)d
  78. DEBUG_DLLCPP_NAME_UC=MSVCP$(DLL_VERSION)D
  79. DEBUG_LIBCPP_NAME=msvcprtd
  80. !endif
  81. !if "$(BLD_TESTCRT)"=="1"
  82. RETAIL_DLLIOS_NAME=testirt
  83. RETAIL_DLLIOS_NAME_UC=TESTIRT
  84. RETAIL_LIBIOS_NAME=msvcirt
  85. DEBUG_DLLIOS_NAME=testirtd
  86. DEBUG_DLLIOS_NAME_UC=TESTIRTD
  87. DEBUG_LIBIOS_NAME=msvcirtd
  88. !elseif "$(BLD_SYSCRT)"=="1"
  89. RETAIL_DLLIOS_NAME=msvcirt
  90. RETAIL_DLLIOS_NAME_UC=MSVCIRT
  91. DEBUG_DLLIOS_NAME=msvcirtd
  92. DEBUG_DLLIOS_NAME_UC=MSVCIRTD
  93. ! if "$(LLP64)"=="0"
  94. RETAIL_LIBIOS_NAME=msvcirt
  95. DEBUG_LIBIOS_NAME=msvcirtd
  96. ! else
  97. RETAIL_LIBIOS_NAME=msvcirt
  98. DEBUG_LIBIOS_NAME=msvcirtd
  99. ! endif
  100. !else
  101. RETAIL_DLLIOS_NAME=msvci$(DLL_VERSION)
  102. RETAIL_DLLIOS_NAME_UC=MSVCI$(DLL_VERSION)
  103. RETAIL_LIBIOS_NAME=msvcirt
  104. DEBUG_DLLIOS_NAME=msvci$(DLL_VERSION)d
  105. DEBUG_DLLIOS_NAME_UC=MSVCI$(DLL_VERSION)D
  106. DEBUG_LIBIOS_NAME=msvcirtd
  107. !endif
  108. !if "$(BLD_SYSCRT)"!="1"
  109. RC_NAME=msvcrt
  110. RCCPP_NAME=msvcprt
  111. RCIOS_NAME=msvcirt
  112. !else
  113. ! if "$(LLP64)"=="0"
  114. RC_NAME=syscrt
  115. RCCPP_NAME=sysprt
  116. RCIOS_NAME=sysirt
  117. ! else
  118. RC_NAME=syscrt64
  119. RCCPP_NAME=sysprt64
  120. RCIOS_NAME=sysirt64
  121. ! endif
  122. !endif
  123. RETAIL_FWDRDLL_NAME=msvcrt40
  124. DEBUG_FWDRDLL_NAME=msvcr40d
  125. # ******** STRIPLIN=1 ********
  126. ####
  127. # makefile - Makefile for Microsoft Visual C++ Run-Time Libraries
  128. #
  129. # Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved.
  130. #
  131. # Purpose:
  132. # This makefile builds the Visual C++ run-time release libraries.
  133. # Just type NMAKE in the \MSDEV\CRT\SRC directory to build all target
  134. # libraries.
  135. #
  136. ###############################################################################
  137. # ******** STRIPLIN=2 ********
  138. ##
  139. ## The name of the user-generated C/C++ Run-Time Library DLL and
  140. ## imports library can be set here. Names beginning with MSVC*
  141. ## may not be used as these are reserved for use by Microsoft.
  142. ## The names shown here are samples and are for information only.
  143. ##
  144. #RETAIL_DLL_NAME=_sample_
  145. #RETAIL_LIB_NAME=_sample_
  146. #RETAIL_DLLCPP_NAME=sample_p
  147. #RETAIL_LIBCPP_NAME=sample_p
  148. #RETAIL_DLLIOS_NAME=sample_i
  149. #RETAIL_LIBIOS_NAME=sample_i
  150. #DEBUG_DLL_NAME=_sampld_
  151. #DEBUG_LIB_NAME=_sampld_
  152. #DEBUG_DLLCPP_NAME=sampld_p
  153. #DEBUG_LIBCPP_NAME=sampld_p
  154. #DEBUG_DLLIOS_NAME=sampld_i
  155. #DEBUG_LIBIOS_NAME=sampld_i
  156. #RC_NAME=_sample_
  157. #RCCPP_NAME=sample_p
  158. #RCIOS_NAME=sample_i
  159. ##
  160. #POST_BLD=1
  161. #
  162. ## If your MSVC++ 7.0 installation is not in the default installation path
  163. ## of "\Program Files\Microsoft Visual Studio .NET\Vc7" on the current drive,
  164. ## set the environment variable VCTOOLS to point to the main directory
  165. ## of your installation. (For example, "set VCTOOLS=C:\VS.NET\VC7".)
  166. #
  167. #!if "$(VCTOOLS)"==""
  168. #VCTOOLS=\Program Files\Microsoft Visual Studio .NET\Vc7
  169. #!endif
  170. #
  171. #!if "$(VCTOOLSINC)"==""
  172. #VCTOOLSINC=$(VCTOOLS)\PlatformSDK\include
  173. #!endif
  174. #
  175. ## Uncomment the following assignment if you do not want the release CRTs
  176. ## to be re-built with debug information.
  177. #
  178. ##BLD_REL_NO_DBINFO=1
  179. # ******** STRIPLIN=0 ********
  180. # We need a definition of VCTOOLSINC, primarily to find $(VCTOOLSINC)\winver.h.
  181. # Look for it in the following order:
  182. #
  183. # $(VCTOOLSINC)
  184. # $(VCTOOLS)\include, then ...\inc
  185. # $(DEVTOOLS)\common\win32sdk\include, then ...\inc
  186. !if !defined(VCTOOLSINC)
  187. ! if !defined(VCTOOLS)
  188. ! if defined(DEVTOOLS)
  189. VCTOOLS=$(DEVTOOLS)\common\win32sdk
  190. ! endif
  191. ! endif
  192. ! if defined(VCTOOLS)
  193. ! if exist("$(VCTOOLS)\include")
  194. VCTOOLSINC=$(VCTOOLS)\include
  195. ! elseif exist("$(VCTOOLS)\inc")
  196. VCTOOLSINC=$(VCTOOLS)\inc
  197. ! else
  198. # For better error reporting below:
  199. VCTOOLSINC=$(VCTOOLS)\include
  200. ! endif
  201. ! endif
  202. !endif
  203. !if !defined(VCTOOLSINC) || !exist("$(VCTOOLSINC)\winver.h")
  204. ! message
  205. ! message ************************************************************
  206. ! message Unable to find include directory containing winver.h that is
  207. ! message required to build the C Runtimes.
  208. ! message
  209. ! if defined(VCTOOLSINC)
  210. ! message Could not find "$(VCTOOLSINC)\winver.h".
  211. ! message
  212. ! message Searching using:
  213. ! message DEVTOOLS: $(DEVTOOLS)
  214. ! message VCTOOLS: $(VCTOOLS)
  215. ! message VCTOOLSINC: $(VCTOOLSINC)
  216. ! message
  217. ! endif
  218. ! message Set at least one of the environment variables DEVTOOLS,
  219. ! message VCTOOLS, or VCTOOLSINC, and the include directory will be
  220. ! message searched for in the order:
  221. ! message
  222. ! message $$(VCTOOLSINC)
  223. ! message $$(VCTOOLS)\include, then ...\inc
  224. ! message $$(DEVTOOLS)\common\win32sdk\include, then ...\inc
  225. ! message ************************************************************
  226. ! message
  227. ! error Define environment variable and rebuild.
  228. !endif
  229. !if !defined(LANGAPI)
  230. ! message
  231. ! message ************************************************************
  232. ! message The environment variable LANGAPI must be set to point to a
  233. ! message copy of the LANGAPI project for the C Runtime build to work.
  234. ! message ************************************************************
  235. ! message
  236. ! error Define environment variable LANGAPI and rebuild.
  237. !endif
  238. # ******** STRIPLIN=1 ********
  239. #
  240. # Directories, Tools and Misc Definitions:
  241. #
  242. ###############################################################################
  243. #
  244. # Determine target CPU, defaulting to same as host CPU.
  245. #
  246. ###############################################################################
  247. !if "$(PROCESSOR_ARCHITECTURE)"=="x86"
  248. HOST_CPU = i386
  249. !if "$(LLP64)"=="1"
  250. TARGET_CPU = IA64
  251. CPUDIR = ia64
  252. PREFIX=.
  253. IMP_PREFIX=
  254. !elseif "$(LLP64)"=="2"
  255. TARGET_CPU = AMD64
  256. CPUDIR = amd64
  257. PREFIX=
  258. IMP_PREFIX=
  259. !else
  260. TARGET_CPU = i386
  261. CPUDIR = intel
  262. PREFIX=_
  263. IMP_PREFIX=_
  264. !endif
  265. # ******** STRIPLIN=0 ********
  266. !elseif "$(PROCESSOR_ARCHITECTURE)"=="IA64"
  267. HOST_CPU = IA64
  268. TARGET_CPU = IA64
  269. CPUDIR = ia64
  270. PREFIX=.
  271. IMP_PREFIX=
  272. # ******** STRIPLIN=1 ********
  273. !else
  274. !error makefile: unknown host CPU
  275. !endif
  276. # ******** STRIPLIN=0 ********
  277. !message
  278. !message CRT Makefile is using:
  279. !message TARGET: $(TARGET_CPU)
  280. !message VCTOOLS: $(VCTOOLS)
  281. !message VCTOOLSINC: $(VCTOOLSINC)
  282. !message LANGAPI: $(LANGAPI)
  283. !message LLP64: $(LLP64)
  284. !message BLD_SYSCRT: $(BLD_SYSCRT)
  285. !message
  286. # ******** STRIPLIN=1 ********
  287. # Build WINHEAP version of heap manager
  288. WINHEAP = YES
  289. # ******** STRIPLIN=2 ********
  290. ## Include RunTimeCheck support
  291. #
  292. #RTC = YES
  293. #
  294. #STDCPP_SRC = stdcpp
  295. # ******** STRIPLIN=0 ********
  296. # Build RunTimeCheck version for Win32 VC CRT only
  297. !if "$(BLD_SYSCRT)" != "1" && "$(LLP64)" == "0"
  298. RTC = YES
  299. !else
  300. RTC = NO
  301. !endif
  302. # Win64 system CRT builds the STL component from stdcpp64/stdhpp64.
  303. !if "$(BLD_SYSCRT)" == "0" || "$(LLP64)" == "0"
  304. STDCPP_SRC = stdcpp
  305. !else
  306. STDCPP_SRC = stdcpp64
  307. !endif
  308. # ******** STRIPLIN=1 ********
  309. SOURCE_OBJS = $(SOURCE_OBJS_RAW:*=*_obj)
  310. CPPSRC_OBJS = $(CPPSRC_OBJS_RAW:*=*_obj)
  311. IOSSRC_OBJS = $(IOSSRC_OBJS_RAW:*=*_obj)
  312. SOURCE_OBJS_DLL = $(SOURCE_OBJS_RAW_DLL:*=*_obj)
  313. CPPSRC_OBJS_DLL = $(CPPSRC_OBJS_RAW_DLL:*=*_obj)
  314. IOSSRC_OBJS_DLL = $(IOSSRC_OBJS_RAW_DLL:*=*_obj)
  315. BSKU_OBJS = $(BSKU_OBJS_RAW:*=*_obj)
  316. # Source directories:
  317. #
  318. # These are the directories in which to run NMAKE to update the source
  319. # objects and libraries they provide. Note that there are slight
  320. # differences between the ST/MT models and the DLL model.
  321. #
  322. # The dependencies directory list DEP_DIRS is the union of the MAKE_DIRS
  323. # and MAKE_DIRS_DLL lists.
  324. #
  325. # In order to allow for auto source library calculation, each directory
  326. # name must be preceded by a tilde (~) and followed by an asterisk (*).
  327. !if "$(BLD_LIB)"==""
  328. BLD_LIB=0
  329. !endif
  330. !if "$(BLD_OBJ)"==""
  331. BLD_OBJ=0
  332. !endif
  333. # ******** STRIPLIN=0 ********
  334. !if "$(POST_BLD)"==""
  335. POST_BLD=0
  336. !endif
  337. !if "$(PRE_BLD)"==""
  338. # ******** STRIPLIN=1 ********
  339. PRE_BLD=0
  340. # ******** STRIPLIN=0 ********
  341. !endif
  342. !if "$(POST_BLD)"=="1"
  343. # ******** STRIPLIN=1 ********
  344. MAKE_DIRS = .
  345. MAKE_DIRSP = .
  346. MAKE_DIRSI = .
  347. MAKE_DIRS_BSKU = .
  348. MAKE_DIRS_DLL = .
  349. MAKE_DIRSP_DLL = .
  350. MAKE_DIRSI_DLL = .
  351. DEP_DIRS = .
  352. ALMAPLIB_DIR = $(CPUDIR)
  353. TCMAPLIB_DIR = $(CPUDIR)
  354. TCMAPDLLLIB_DIR = $(CPUDIR)
  355. SDKNAMESLIB_DIR = $(CPUDIR)
  356. # ******** STRIPLIN=0 ********
  357. !else
  358. ALMAPLIB_DIR = $(OBJDIR_ST)
  359. TCMAPLIB_DIR = $(OBJDIR_ST)
  360. TCMAPDLLLIB_DIR = $(OBJDIR_DLL)
  361. SDKNAMESLIB_DIR = $(OBJDIR_DLL)
  362. !if "$(PRE_BLD)"=="1"
  363. MAKE_DIRS = \
  364. crtw32\eh \
  365. crtw32\linkopts \
  366. crtw32\misc \
  367. !if "$(RTC)"=="YES"
  368. crtw32\rtc \
  369. !endif
  370. crtw32\startup \
  371. !if "$(TARGET_CPU)"=="IA64"
  372. crtw32\string \
  373. !endif
  374. fpw32\conv \
  375. fpw32\tran
  376. MAKE_DIRS_DLL = \
  377. crtw32\eh \
  378. crtw32\misc \
  379. crtw32\startup \
  380. !if "$(TARGET_CPU)"=="IA64"
  381. crtw32\string \
  382. !endif
  383. !if "$(RTC)"=="YES"
  384. crtw32\rtc \
  385. !endif
  386. fpw32\conv \
  387. fpw32\tran
  388. MAKE_DIRS_BSKU = \
  389. crtw32\bsku
  390. DEP_DIRS = $(MAKE_DIRS)
  391. !else
  392. MAKE_DIRS = \
  393. crtw32\convert \
  394. crtw32\direct \
  395. crtw32\dos \
  396. crtw32\eh \
  397. crtw32\exec \
  398. crtw32\heap \
  399. !if "$(TARGET_CPU)"!="IA64"
  400. crtw32\helper \
  401. !endif
  402. crtw32\linkopts \
  403. crtw32\lowio \
  404. crtw32\mbstring \
  405. crtw32\misc \
  406. !if "$(RTC)"=="YES"
  407. crtw32\rtc \
  408. !endif
  409. crtw32\startup \
  410. crtw32\stdio \
  411. crtw32\string \
  412. crtw32\time \
  413. fpw32\conv \
  414. fpw32\tran
  415. MAKE_DIRSP = crtw32\$(STDCPP_SRC)
  416. MAKE_DIRSI = crtw32\iostream
  417. MAKE_DIRS_DLL = \
  418. crtw32\convert \
  419. crtw32\direct \
  420. crtw32\dllstuff \
  421. crtw32\dos \
  422. crtw32\eh \
  423. crtw32\exec \
  424. crtw32\heap \
  425. !if "$(TARGET_CPU)"!="IA64"
  426. crtw32\helper \
  427. !endif
  428. crtw32\lowio \
  429. crtw32\mbstring \
  430. crtw32\misc \
  431. !if "$(RTC)"=="YES"
  432. crtw32\rtc \
  433. !endif
  434. crtw32\startup \
  435. crtw32\stdio \
  436. crtw32\string \
  437. crtw32\time \
  438. fpw32\conv \
  439. fpw32\tran
  440. MAKE_DIRSP_DLL = crtw32\$(STDCPP_SRC)
  441. MAKE_DIRSI_DLL = crtw32\iostream
  442. DEP_DIRS = \
  443. crtw32\convert \
  444. crtw32\direct \
  445. crtw32\dllstuff \
  446. crtw32\dos \
  447. crtw32\eh \
  448. crtw32\exec \
  449. crtw32\heap \
  450. !if "$(TARGET_CPU)"!="IA64"
  451. crtw32\helper \
  452. !endif
  453. crtw32\iostream \
  454. crtw32\linkopts \
  455. crtw32\lowio \
  456. crtw32\mbstring \
  457. crtw32\misc \
  458. !if "$(RTC)"=="YES"
  459. crtw32\rtc \
  460. !endif
  461. crtw32\startup \
  462. crtw32\$(STDCPP_SRC) \
  463. crtw32\stdio \
  464. crtw32\string \
  465. crtw32\time \
  466. fpw32\conv \
  467. fpw32\tran
  468. !endif
  469. !endif
  470. # ******** STRIPLIN=1 ********
  471. # Source Objects: These are the objects and/or libraries which constitute
  472. # the statically linked library flavors (LIBC.LIB and LIBCMT.LIB).
  473. SOURCE_OBJS_RAW = \
  474. build\$(CPUDIR)\*\convert.lib \
  475. build\$(CPUDIR)\*\direct.lib \
  476. build\$(CPUDIR)\*\dos.lib \
  477. build\$(CPUDIR)\*\eh.lib \
  478. build\$(CPUDIR)\*\exec.lib \
  479. build\$(CPUDIR)\*\heap.lib \
  480. !if "$(TARGET_CPU)"!="AMD64"
  481. build\$(CPUDIR)\*\helper.lib \
  482. !endif
  483. build\$(CPUDIR)\*\lowio.lib \
  484. build\$(CPUDIR)\*\mbstring.lib \
  485. build\$(CPUDIR)\*\misc.lib \
  486. !if "$(RTC)"=="YES"
  487. build\$(CPUDIR)\*\rtc.lib \
  488. !endif
  489. build\$(CPUDIR)\*\startup.lib \
  490. build\$(CPUDIR)\*\stdio.lib \
  491. build\$(CPUDIR)\*\string.lib \
  492. $(TCMAPLIB_DIR)\tcmap.lib \
  493. $(ALMAPLIB_DIR)\almap.lib \
  494. build\$(CPUDIR)\*\time.lib \
  495. build\$(CPUDIR)\*\conv.lib \
  496. build\$(CPUDIR)\*\tran.lib
  497. CPPSRC_OBJS_RAW = build\$(CPUDIR)\*\$(STDCPP_SRC).lib
  498. IOSSRC_OBJS_RAW = build\$(CPUDIR)\*\iostream.lib
  499. BSKU_OBJS_RAW = build\$(CPUDIR)\*\bsku.obj
  500. # Source Objects: These are the objects and/or libraries which constitute
  501. # the dynamically linked library flavor (MSVCRTx0.DLL).
  502. SOURCE_OBJS_RAW_DLL = \
  503. build\$(CPUDIR)\*\_setargv.obj \
  504. build\$(CPUDIR)\*\_wstargv.obj \
  505. build\$(CPUDIR)\*\chkstk.obj \
  506. build\$(CPUDIR)\*\crt0dat.obj \
  507. build\$(CPUDIR)\*\crt0fp.obj \
  508. build\$(CPUDIR)\*\crt0init.obj \
  509. build\$(CPUDIR)\*\crt0msg.obj \
  510. build\$(CPUDIR)\*\crtlib.obj \
  511. build\$(CPUDIR)\*\mlock.obj \
  512. build\$(CPUDIR)\*\stdargv.obj \
  513. build\$(CPUDIR)\*\stdenvp.obj \
  514. build\$(CPUDIR)\*\thread.obj \
  515. build\$(CPUDIR)\*\threadex.obj \
  516. build\$(CPUDIR)\*\tidtable.obj \
  517. build\$(CPUDIR)\*\wild.obj \
  518. build\$(CPUDIR)\*\wstdargv.obj \
  519. build\$(CPUDIR)\*\wstdenvp.obj \
  520. build\$(CPUDIR)\*\wwild.obj \
  521. !if "$(TARGET_CPU)"=="i386"
  522. build\$(CPUDIR)\*\fp8.obj \
  523. !endif
  524. build\$(CPUDIR)\*\convert.lib \
  525. build\$(CPUDIR)\*\direct.lib \
  526. build\$(CPUDIR)\*\dos.lib \
  527. build\$(CPUDIR)\*\eh.lib \
  528. build\$(CPUDIR)\*\exec.lib \
  529. build\$(CPUDIR)\*\heap.lib \
  530. !if "$(TARGET_CPU)"!="AMD64"
  531. build\$(CPUDIR)\*\helper.lib \
  532. !endif
  533. build\$(CPUDIR)\*\lowio.lib \
  534. build\$(CPUDIR)\*\mbstring.lib \
  535. build\$(CPUDIR)\*\misc.lib \
  536. !if "$(RTC)"=="YES"
  537. build\$(CPUDIR)\*\rtc.lib \
  538. !endif
  539. build\$(CPUDIR)\*\stdio.lib \
  540. build\$(CPUDIR)\*\string.lib \
  541. build\$(CPUDIR)\*\time.lib \
  542. build\$(CPUDIR)\*\conv.lib \
  543. build\$(CPUDIR)\*\tran.lib
  544. CPPSRC_OBJS_RAW_DLL = build\$(CPUDIR)\*\$(STDCPP_SRC).lib
  545. IOSSRC_OBJS_RAW_DLL = build\$(CPUDIR)\*\iostream.lib
  546. UPDATE_MSG = *** Updating Component Objects ***
  547. #
  548. # Define names for the primary targets of this makefile.
  549. #
  550. ###############################################################################
  551. !if "$(IFLAG)"==""
  552. IFLAG=-i
  553. !else
  554. IFLAG=
  555. !endif
  556. !if "$(CRT_RELDIR)"==""
  557. CRT_RELDIR = build
  558. !endif
  559. RELDIR_CPU=$(CRT_RELDIR)\$(CPUDIR)
  560. # ******** STRIPLIN=0 ********
  561. RELDIR_CPU_BSKU=$(CRT_RELDIR)\$(CPUDIR)\book
  562. !if "$(POST_BLD)"=="1"
  563. # ******** STRIPLIN=1 ********
  564. DEFFILE_DIR=$(CPUDIR)
  565. DEFFILE2_DIR=.
  566. # ******** STRIPLIN=0 ********
  567. !elseif "$(PRE_BLD)"=="1"
  568. DEFFILE_DIR=libw32\lib\$(TARGET_CPU)
  569. DEFFILE2_DIR=libw32\lib
  570. !else
  571. DEFFILE_DIR=$(RELDIR_CPU)
  572. DEFFILE2_DIR=$(RELDIR_CPU)
  573. !endif
  574. # ******** STRIPLIN=1 ********
  575. #
  576. # Tools:
  577. #
  578. !if "$(VERBOSE)"!="1"
  579. LINKER=link -nologo
  580. LINKLIB=link -lib -nologo
  581. LINKIMPLIB=link -lib -nologo
  582. BSCMAKE=bscmake -nologo
  583. !else
  584. LINKER=link
  585. LINKLIB=link -lib
  586. LINKIMPLIB=link -lib
  587. BSCMAKE=bscmake
  588. !endif
  589. # ******** STRIPLIN=0 ********
  590. !if "$(TARGET_CPU)"=="i386"
  591. LINKER=$(LINKER) -ignore:4006,4102,4197
  592. !else
  593. LINKER=$(LINKER) -ignore:4006,4197
  594. !endif
  595. LINKLIB=$(LINKLIB) -ignore:4006
  596. LINKIMPLIB=$(LINKIMPLIB) -WX
  597. # ******** STRIPLIN=1 ********
  598. !if "$(TARGET_CPU)"=="IA64"
  599. LINKER=$(LINKER) -machine:IA64
  600. LINKLIB=$(LINKLIB) -machine:IA64
  601. LINKIMPLIB=$(LINKIMPLIB) -machine:IA64
  602. !endif
  603. COMMON_DEFS=-D_MBCS -D_MB_MAP_DIRECT -D_CRTBLD
  604. !if "$(WINHEAP)" == "YES"
  605. COMMON_DEFS=$(COMMON_DEFS) -DWINHEAP
  606. !endif
  607. !if "$(RTC)" == "YES"
  608. COMMON_DEFS=$(COMMON_DEFS) -D_RTC
  609. !endif
  610. !if "$(STDCPP_NOEH)" == "YES"
  611. COMMON_DEFS=$(COMMON_DEFS) -D_HAS_EXCEPTIONS=0
  612. !endif
  613. # ******** STRIPLIN=0 ********
  614. !if "$(BLD_SYSCRT)" == "1"
  615. COMMON_DEFS=$(COMMON_DEFS) -D_SYSCRT
  616. !endif
  617. # ******** STRIPLIN=1 ********
  618. WINDOWS_H_DEFS=-DWIN32_LEAN_AND_MEAN -DNOSERVICE
  619. CC_OPTS_BASE=-c -nologo -Zelp8 -W3 -WX -GFy -DWIN32
  620. !if "$(TARGET_CPU)"=="i386"
  621. CC_OPTS_BASE=$(CC_OPTS_BASE) -GB -Gi- -GS
  622. AS_OPTS=-c -nologo -coff -Cx -Zm -DQUIET -D?QUIET -Di386 -D_WIN32 -DWIN32
  623. !elseif "$(TARGET_CPU)"=="IA64"
  624. # CC_OPTS_BASE=$(CC_OPTS_BASE) -Ap32
  625. # ******** STRIPLIN=0 ********
  626. !elseif "$(TARGET_CPU)"=="AMD64"
  627. CC_OPTS_BASE=$(CC_OPTS_BASE)
  628. AS_OPTS=-nologo -D_WIN32 -DWIN32 -D_WIN64
  629. # ******** STRIPLIN=1 ********
  630. ZDEBUGTYPE=cv
  631. XDEBUGTYPE=cv
  632. !else
  633. CC_OPTS_BASE=$(CC_OPTS_BASE) -Gi-
  634. AS_OPTS=-c -nologo -D_WIN32 -DWIN32
  635. !endif
  636. # ******** STRIPLIN=0 ********
  637. !if ("$(TARGET_CPU)" == "IA64" || "$(TARGET_CPU)" == "AMD64") && "$(BLD_SYSCRT)"=="1"
  638. !else
  639. # ******** STRIPLIN=1 ********
  640. CC_OPTS_BASE=$(CC_OPTS_BASE) -Zc:wchar_t -Zc:forScope
  641. !endif # STRIPLIN!
  642. CC_OPTS=$(CC_OPTS_BASE) $(WINDOWS_H_DEFS)
  643. # ******** STRIPLIN=0 ********
  644. !if "$(BLD_CRT_LTCG)"=="1"
  645. LINKER=$(LINKER) -ltcg:nostatus
  646. LINKLIB=$(LINKLIB) -ltcg:nostatus
  647. LINKIMPLIB=$(LINKIMPLIB) -ltcg:nostatus
  648. !endif
  649. # ******** STRIPLIN=1 ********
  650. ST_DEFINES=$(COMMON_DEFS)
  651. STIOS_DEFINES=$(ST_DEFINES) -D_OLD_IOSTREAMS
  652. MT_DEFINES=$(ST_DEFINES) -D_MT
  653. MTIOS_DEFINES=$(MT_DEFINES) -D_OLD_IOSTREAMS
  654. DLL_DEFINES=$(MT_DEFINES) -DCRTDLL
  655. DLLCPP_DEFINES=$(MT_DEFINES) -D_DLL -DCRTDLL2
  656. DLLIOS_DEFINES=$(MTIOS_DEFINES) -D_DLL -DCRTDLL1
  657. RC_OPTS=-l 409 -r
  658. RC_DEFS=$(COMMON_DEFS) $(WINDOWS_H_DEFS)
  659. # ******** STRIPLIN=2 ********
  660. #RC_INCS=-I"$(VCTOOLSINC)"
  661. # ******** STRIPLIN=0 ********
  662. RC_INCS=-I$(LANGAPI)\include -I"$(VCTOOLSINC)"
  663. !if "$(PRE_BLD)"=="1"
  664. PDBDIR_PREFIX = ..\..\..\src\ #
  665. !else
  666. # ******** STRIPLIN=1 ********
  667. PDBDIR_PREFIX = ..\..\ #
  668. # ******** STRIPLIN=0 ********
  669. !endif
  670. # ******** STRIPLIN=1 ********
  671. PDBDIR_CPU = $(RELDIR_CPU)
  672. # ******** STRIPLIN=0 ********
  673. PDBDIR_CPU_BSKU = $(RELDIR_CPU_BSKU)
  674. !if ("$(PRE_BLD)"=="1" || "$(POST_BLD)"=="1") && "$(BLD_SYSCRT)"=="1"
  675. PDBDIR_CPU_DLL = $(PDBDIR_CPU)\dll_pdb
  676. !else
  677. # ******** STRIPLIN=1 ********
  678. PDBDIR_CPU_DLL = $(PDBDIR_CPU)
  679. # ******** STRIPLIN=0 ********
  680. !endif
  681. # ******** STRIPLIN=1 ********
  682. RELEASE_CHELPER = $(RELDIR_CPU)\chelper.lib
  683. RELEASE_LIBCST = $(RELDIR_CPU)\libc.lib
  684. RELEASE_LIBCPPST = $(RELDIR_CPU)\libcp.lib
  685. RELEASE_LIBIOSST = $(RELDIR_CPU)\libci.lib
  686. RELEASE_LIBCMT = $(RELDIR_CPU)\libcmt.lib
  687. RELEASE_LIBCPPMT = $(RELDIR_CPU)\libcpmt.lib
  688. RELEASE_LIBIOSMT = $(RELDIR_CPU)\libcimt.lib
  689. RELEASE_DLL = $(RELDIR_CPU)\$(RETAIL_DLL_NAME).dll
  690. RELEASE_DLLCPP = $(RELDIR_CPU)\$(RETAIL_DLLCPP_NAME).dll
  691. RELEASE_DLLIOS = $(RELDIR_CPU)\$(RETAIL_DLLIOS_NAME).dll
  692. RELEASE_IMPLIB_DLL = $(RELDIR_CPU)\$(RETAIL_LIB_NAME).lib
  693. RELEASE_IMPLIB_DLLCPP = $(RELDIR_CPU)\$(RETAIL_LIBCPP_NAME).lib
  694. RELEASE_IMPLIB_DLLIOS = $(RELDIR_CPU)\$(RETAIL_LIBIOS_NAME).lib
  695. RELEASE_OLDNAMES = $(RELDIR_CPU)\oldnames.lib
  696. RELEASE_LIBCST_PDB = $(PDBDIR_CPU)\libc.pdb
  697. RELEASE_LIBCPPST_PDB = $(PDBDIR_CPU)\libcp.pdb
  698. RELEASE_LIBIOSST_PDB = $(PDBDIR_CPU)\libci.pdb
  699. RELEASE_LIBCMT_PDB = $(PDBDIR_CPU)\libcmt.pdb
  700. RELEASE_LIBCPPMT_PDB = $(PDBDIR_CPU)\libcpmt.pdb
  701. RELEASE_LIBIOSMT_PDB = $(PDBDIR_CPU)\libcimt.pdb
  702. RELEASE_IMPLIB_PDB = $(PDBDIR_CPU)\$(RETAIL_LIB_NAME).pdb
  703. RELEASE_IMPLIBCPP_PDB = $(PDBDIR_CPU)\$(RETAIL_LIBCPP_NAME).pdb
  704. RELEASE_IMPLIBIOS_PDB = $(PDBDIR_CPU)\$(RETAIL_LIBIOS_NAME).pdb
  705. RELEASE_DLL_PDB = $(PDBDIR_CPU_DLL)\$(RETAIL_DLL_NAME).pdb
  706. RELEASE_DLLCPP_PDB = $(PDBDIR_CPU_DLL)\$(RETAIL_DLLCPP_NAME).pdb
  707. RELEASE_DLLIOS_PDB = $(PDBDIR_CPU_DLL)\$(RETAIL_DLLIOS_NAME).pdb
  708. # ******** STRIPLIN=0 ********
  709. RELEASE_CHELPER_BSKU = $(RELDIR_CPU_BSKU)\chelper.lib
  710. RELEASE_LIBCST_BSKU = $(RELDIR_CPU_BSKU)\libc.lib
  711. RELEASE_LIBCPPST_BSKU = $(RELDIR_CPU_BSKU)\libcp.lib
  712. RELEASE_LIBIOSST_BSKU = $(RELDIR_CPU_BSKU)\libci.lib
  713. RELEASE_LIBCMT_BSKU = $(RELDIR_CPU_BSKU)\libcmt.lib
  714. RELEASE_LIBCPPMT_BSKU = $(RELDIR_CPU_BSKU)\libcpmt.lib
  715. RELEASE_LIBIOSMT_BSKU = $(RELDIR_CPU_BSKU)\libcimt.lib
  716. RELEASE_LIBCST_BSKU_PDB = $(PDBDIR_CPU_BSKU)\libc.pdb
  717. RELEASE_LIBCPPST_BSKU_PDB = $(PDBDIR_CPU_BSKU)\libcp.pdb
  718. RELEASE_LIBIOSST_BSKU_PDB = $(PDBDIR_CPU_BSKU)\libci.pdb
  719. RELEASE_LIBCMT_BSKU_PDB = $(PDBDIR_CPU_BSKU)\libcmt.pdb
  720. RELEASE_LIBCPPMT_BSKU_PDB = $(PDBDIR_CPU_BSKU)\libcpmt.pdb
  721. RELEASE_LIBIOSMT_BSKU_PDB = $(PDBDIR_CPU_BSKU)\libcimt.pdb
  722. RELEASE_FWDRDLL = $(RELDIR_CPU)\$(RETAIL_FWDRDLL_NAME).dll
  723. RELEASE_FWDRDLL_DBG = $(RELDIR_CPU)\$(DEBUG_FWDRDLL_NAME).dll
  724. # ******** STRIPLIN=1 ********
  725. RELEASE_LIBCST_DBG = $(RELDIR_CPU)\libcd.lib
  726. RELEASE_LIBCPPST_DBG = $(RELDIR_CPU)\libcpd.lib
  727. RELEASE_LIBIOSST_DBG = $(RELDIR_CPU)\libcid.lib
  728. RELEASE_LIBCMT_DBG = $(RELDIR_CPU)\libcmtd.lib
  729. RELEASE_LIBCPPMT_DBG = $(RELDIR_CPU)\libcpmtd.lib
  730. RELEASE_LIBIOSMT_DBG = $(RELDIR_CPU)\libcimtd.lib
  731. RELEASE_DLL_DBG = $(RELDIR_CPU)\$(DEBUG_DLL_NAME).dll
  732. RELEASE_DLLCPP_DBG = $(RELDIR_CPU)\$(DEBUG_DLLCPP_NAME).dll
  733. RELEASE_DLLIOS_DBG = $(RELDIR_CPU)\$(DEBUG_DLLIOS_NAME).dll
  734. RELEASE_IMPLIB_DLL_DBG = $(RELDIR_CPU)\$(DEBUG_LIB_NAME).lib
  735. RELEASE_IMPLIB_DLLCPP_DBG = $(RELDIR_CPU)\$(DEBUG_LIBCPP_NAME).lib
  736. RELEASE_IMPLIB_DLLIOS_DBG = $(RELDIR_CPU)\$(DEBUG_LIBIOS_NAME).lib
  737. RELEASE_LIBCST_DBG_PDB = $(PDBDIR_CPU)\libcd.pdb
  738. RELEASE_LIBCPPST_DBG_PDB = $(PDBDIR_CPU)\libcpd.pdb
  739. RELEASE_LIBIOSST_DBG_PDB = $(PDBDIR_CPU)\libcid.pdb
  740. RELEASE_LIBCMT_DBG_PDB = $(PDBDIR_CPU)\libcmtd.pdb
  741. RELEASE_LIBCPPMT_DBG_PDB = $(PDBDIR_CPU)\libcpmtd.pdb
  742. RELEASE_LIBIOSMT_DBG_PDB = $(PDBDIR_CPU)\libcimtd.pdb
  743. RELEASE_IMPLIB_DBG_PDB = $(PDBDIR_CPU)\$(DEBUG_LIB_NAME).pdb
  744. RELEASE_IMPLIBCPP_DBG_PDB = $(PDBDIR_CPU)\$(DEBUG_LIBCPP_NAME).pdb
  745. RELEASE_IMPLIBIOS_DBG_PDB = $(PDBDIR_CPU)\$(DEBUG_LIBIOS_NAME).pdb
  746. RELEASE_DLL_DBG_PDB = $(PDBDIR_CPU_DLL)\$(DEBUG_DLL_NAME).pdb
  747. RELEASE_DLLCPP_DBG_PDB = $(PDBDIR_CPU_DLL)\$(DEBUG_DLLCPP_NAME).pdb
  748. RELEASE_DLLIOS_DBG_PDB = $(PDBDIR_CPU_DLL)\$(DEBUG_DLLIOS_NAME).pdb
  749. # ******** STRIPLIN=0 ********
  750. RELEASE_LIBCST_BSKU_DBG = $(RELDIR_CPU_BSKU)\libcd.lib
  751. RELEASE_LIBCPPST_BSKU_DBG = $(RELDIR_CPU_BSKU)\libcpd.lib
  752. RELEASE_LIBIOSST_BSKU_DBG = $(RELDIR_CPU_BSKU)\libcid.lib
  753. RELEASE_LIBCMT_BSKU_DBG = $(RELDIR_CPU_BSKU)\libcmtd.lib
  754. RELEASE_LIBCPPMT_BSKU_DBG = $(RELDIR_CPU_BSKU)\libcpmtd.lib
  755. RELEASE_LIBIOSMT_BSKU_DBG = $(RELDIR_CPU_BSKU)\libcimtd.lib
  756. RELEASE_LIBCST_BSKU_DBG_PDB = $(PDBDIR_CPU_BSKU)\libcd.pdb
  757. RELEASE_LIBCPPST_BSKU_DBG_PDB = $(PDBDIR_CPU_BSKU)\libcpd.pdb
  758. RELEASE_LIBIOSST_BSKU_DBG_PDB = $(PDBDIR_CPU_BSKU)\libcid.pdb
  759. RELEASE_LIBCMT_BSKU_DBG_PDB = $(PDBDIR_CPU_BSKU)\libcmtd.pdb
  760. RELEASE_LIBCPPMT_BSKU_DBG_PDB = $(PDBDIR_CPU_BSKU)\libcpmtd.pdb
  761. RELEASE_LIBIOSMT_BSKU_DBG_PDB = $(PDBDIR_CPU_BSKU)\libcimtd.pdb
  762. # ******** STRIPLIN=1 ********
  763. FD_REL_ST=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCST_PDB)
  764. FD_REL_STP=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPST_PDB)
  765. FD_REL_STI=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSST_PDB)
  766. FD_REL_MT=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCMT_PDB)
  767. FD_REL_MTP=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPMT_PDB)
  768. FD_REL_MTI=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSMT_PDB)
  769. FD_REL_DLL=-Fd$(PDBDIR_PREFIX)$(RELEASE_IMPLIB_PDB)
  770. FD_REL_DLLP=-Fd$(PDBDIR_PREFIX)$(RELEASE_IMPLIBCPP_PDB)
  771. FD_REL_DLLI=-Fd$(PDBDIR_PREFIX)$(RELEASE_IMPLIBIOS_PDB)
  772. # ******** STRIPLIN=0 ********
  773. FD_REL_ST_BSKU=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCST_BSKU_PDB)
  774. FD_REL_STP_BSKU=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPST_BSKU_PDB)
  775. FD_REL_STI_BSKU=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSST_BSKU_PDB)
  776. FD_REL_MT_BSKU=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCMT_BSKU_PDB)
  777. FD_REL_MTP_BSKU=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPMT_BSKU_PDB)
  778. FD_REL_MTI_BSKU=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSMT_BSKU_PDB)
  779. # ******** STRIPLIN=1 ********
  780. FD_REL_ST_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCST_DBG_PDB)
  781. FD_REL_STP_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPST_DBG_PDB)
  782. FD_REL_STI_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSST_DBG_PDB)
  783. FD_REL_MT_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCMT_DBG_PDB)
  784. FD_REL_MTP_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPMT_DBG_PDB)
  785. FD_REL_MTI_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSMT_DBG_PDB)
  786. FD_REL_DLL_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_IMPLIB_DBG_PDB)
  787. FD_REL_DLLP_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_IMPLIBCPP_DBG_PDB)
  788. FD_REL_DLLI_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_IMPLIBIOS_DBG_PDB)
  789. # ******** STRIPLIN=0 ********
  790. FD_REL_ST_BSKU_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCST_BSKU_DBG_PDB)
  791. FD_REL_STP_BSKU_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPST_BSKU_DBG_PDB)
  792. FD_REL_STI_BSKU_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSST_BSKU_DBG_PDB)
  793. FD_REL_MT_BSKU_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCMT_BSKU_DBG_PDB)
  794. FD_REL_MTP_BSKU_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBCPPMT_BSKU_DBG_PDB)
  795. FD_REL_MTI_BSKU_DBG=-Fd$(PDBDIR_PREFIX)$(RELEASE_LIBIOSMT_BSKU_DBG_PDB)
  796. # ******** STRIPLIN=1 ********
  797. #
  798. # Locate the scratch location for object files of various flavors.
  799. #
  800. ###############################################################################
  801. OBJROOT = build
  802. OBJDIR_PREFIX = ..\..\ #
  803. OBJCPUDIR = $(OBJROOT)\$(CPUDIR)
  804. OBJDIR_ST = $(OBJCPUDIR)\st_obj
  805. OBJDIR_MT = $(OBJCPUDIR)\mt_obj
  806. OBJDIR_DLL = $(OBJCPUDIR)\dll_obj
  807. OBJDIR_OLDNAMES = $(OBJDIR_ST)\oldnames
  808. OBJDIR_ALMAP = $(OBJDIR_ST)\almap
  809. OBJDIR_TCMAP = $(OBJDIR_ST)\tcmap
  810. OBJDIR_TCMAPDLL = $(OBJDIR_DLL)\tcmap
  811. OBJDIR_SDKNAMES = $(OBJDIR_DLL)\sdknames
  812. OBJDIR_DLL_RAW = $(OBJCPUDIR)\*_obj
  813. # ******** STRIPLIN=0 ********
  814. OBJDIR_ST_BSKU = $(OBJCPUDIR)\bst_obj
  815. OBJDIR_MT_BSKU = $(OBJCPUDIR)\bmt_obj
  816. OBJDIR_ST_BSKU_DBG = $(OBJCPUDIR)\xbst_obj
  817. OBJDIR_MT_BSKU_DBG = $(OBJCPUDIR)\xbmt_obj
  818. # ******** STRIPLIN=1 ********
  819. OBJDIR_ST_DBG = $(OBJCPUDIR)\xst_obj
  820. OBJDIR_MT_DBG = $(OBJCPUDIR)\xmt_obj
  821. OBJDIR_DLL_DBG = $(OBJCPUDIR)\xdll_obj
  822. # ******** STRIPLIN=0 ********
  823. ####
  824. #
  825. # Here are the build targets
  826. #
  827. ####
  828. # ******** STRIPLIN=1 ********
  829. all : release debug
  830. release : st mt dll oldnames relobjs compiler_helper_lib
  831. debug : xst xmt xdll
  832. book : st mt dll xst xmt xdll bst bmt xbst xbmt # STRIPLIN!
  833. ####
  834. #
  835. # Directory Targets
  836. #
  837. ####
  838. $(OBJDIR_ST) $(OBJDIR_MT) $(OBJDIR_DLL) \
  839. $(OBJDIR_OLDNAMES) $(OBJDIR_SDKNAMES) $(OBJDIR_ALMAP) $(OBJDIR_TCMAP) $(OBJDIR_TCMAPDLL) \
  840. # ******** STRIPLIN=0 ********
  841. $(OBJDIR_ST_BSKU) $(OBJDIR_MT_BSKU) $(OBJDIR_ST_BSKU_DBG) $(OBJDIR_MT_BSKU_DBG) $(RELDIR_CPU_BSKU) \
  842. # ******** STRIPLIN=1 ********
  843. $(OBJDIR_ST_DBG) $(OBJDIR_MT_DBG) $(OBJDIR_DLL_DBG) \
  844. !if "$(PDBDIR_CPU_DLL)"!="$(RELDIR_CPU)" # STRIPLIN!
  845. $(PDBDIR_CPU_DLL) \
  846. !endif # STRIPLIN!
  847. $(CRT_RELDIR) $(RELDIR_CPU) :
  848. if not exist $@\* mkdir $@
  849. ####
  850. #
  851. # Define the path to return to the main directory where nmake is revoked
  852. #
  853. ####
  854. !if "$(POST_BLD)"=="1" # STRIPLIN!
  855. CD_ROOT=.
  856. # ******** STRIPLIN=0 ********
  857. !elseif "$(PRE_BLD)"=="1"
  858. CD_ROOT=..
  859. !else
  860. CD_ROOT=..\..
  861. !endif
  862. # ******** STRIPLIN=1 ********
  863. ####
  864. #
  865. # Pseudo-target user interface:
  866. #
  867. ####
  868. st_env :
  869. !if "$(BLD_LIB)"!="1"
  870. !@-echo. \
  871. & echo # *** These are the compiler switches for the ST model (LIBC.LIB): \
  872. & echo # \
  873. & echo # CL = $(CC_OPTS_BASE) \ \
  874. & echo # $(WINDOWS_H_DEFS) $(FD_REL_ST) \ \
  875. & echo # $(ST_DEFINES) \
  876. & echo # \
  877. & echo # ML = $(AS_OPTS) \ \
  878. & echo # $(ST_DEFINES) \
  879. & echo.
  880. !endif
  881. stp_env :
  882. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  883. !@-echo. \
  884. & echo # *** These are the compiler switches for the ST model (LIBCP.LIB): \
  885. & echo # \
  886. & echo # CL = $(CC_OPTS_BASE) \ \
  887. & echo # $(WINDOWS_H_DEFS) $(FD_REL_STP) \ \
  888. & echo # $(ST_DEFINES) \
  889. & echo # \
  890. & echo # ML = $(AS_OPTS) \ \
  891. & echo # $(ST_DEFINES) \
  892. & echo.
  893. !endif
  894. sti_env :
  895. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  896. !@-echo. \
  897. & echo # *** These are the compiler switches for the ST model (LIBCI.LIB): \
  898. & echo # \
  899. & echo # CL = $(CC_OPTS_BASE) \ \
  900. & echo # $(WINDOWS_H_DEFS) $(FD_REL_STI) \ \
  901. & echo # $(STIOS_DEFINES) \
  902. & echo # \
  903. & echo # ML = $(AS_OPTS) \ \
  904. & echo # $(STIOS_DEFINES) \
  905. & echo.
  906. !endif
  907. st : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST) $(RELDIR_CPU) \
  908. st_env st_ stp_env st_p sti_env st_i
  909. !if "$(BLD_BROWSE)"=="1" && "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  910. $(BSCMAKE) -o $(RELEASE_LIBCST:.lib=.bsc) $(OBJDIR_ST)\*.sbr
  911. !endif
  912. !if "$(BLD_LIB)"!="1"
  913. st_ :: $(MAKE_DIRS)
  914. !@-cd $** \
  915. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_ST) \
  916. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  917. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  918. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  919. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  920. BLD_SYSCRT=1 \
  921. !endif # STRIPLIN=1
  922. !if 0 # STRIPLIN!
  923. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  924. !endif # STRIPLIN!
  925. BLD_MODEL=st OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST) \
  926. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  927. VCTOOLSINC="$(VCTOOLSINC)" \
  928. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  929. & cd $(CD_ROOT)
  930. !if "$(PRE_BLD)"!="1"
  931. st_p :: $(MAKE_DIRSP)
  932. !@-cd $** \
  933. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_STP) \
  934. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  935. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  936. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  937. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  938. BLD_SYSCRT=1 \
  939. !endif # STRIPLIN=1
  940. !if 0 # STRIPLIN!
  941. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  942. !endif # STRIPLIN!
  943. BLD_MODEL=st OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST) \
  944. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  945. VCTOOLSINC="$(VCTOOLSINC)" \
  946. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  947. & cd $(CD_ROOT)
  948. st_i :: $(MAKE_DIRSI)
  949. !@-cd $** \
  950. & set CL=$(CC_OPTS) $(STIOS_DEFINES) $(FD_REL_STI) \
  951. & set ML=$(AS_OPTS) $(STIOS_DEFINES) \
  952. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  953. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  954. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  955. BLD_SYSCRT=1 \
  956. !endif # STRIPLIN=1
  957. !if 0 # STRIPLIN!
  958. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  959. !endif # STRIPLIN!
  960. BLD_MODEL=st OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST) \
  961. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  962. VCTOOLSINC="$(VCTOOLSINC)" \
  963. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  964. & cd $(CD_ROOT)
  965. !endif
  966. !endif # BLD_LIB != 1
  967. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  968. st_ :: $(RELEASE_LIBCST)
  969. st_p :: $(RELEASE_LIBCPPST)
  970. st_i :: $(RELEASE_LIBIOSST)
  971. !else
  972. st_ ::
  973. st_p ::
  974. st_i ::
  975. !endif
  976. mt_env :
  977. !if "$(BLD_LIB)"!="1"
  978. !@-echo. \
  979. & echo # *** These are the compiler switches for the MT model (LIBCMT.LIB): \
  980. & echo # \
  981. & echo # CL = $(CC_OPTS_BASE) \ \
  982. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MT) \ \
  983. & echo # $(MT_DEFINES) \
  984. & echo # \
  985. & echo # ML = $(AS_OPTS) \ \
  986. & echo # $(MT_DEFINES) \
  987. & echo.
  988. !endif
  989. mtp_env :
  990. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  991. !@-echo. \
  992. & echo # *** These are the compiler switches for the MT model (LIBCPMT.LIB): \
  993. & echo # \
  994. & echo # CL = $(CC_OPTS_BASE) \ \
  995. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTP) \ \
  996. & echo # $(MT_DEFINES) \
  997. & echo # \
  998. & echo # ML = $(AS_OPTS) \ \
  999. & echo # $(MT_DEFINES) \
  1000. & echo.
  1001. !endif
  1002. mti_env :
  1003. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1004. !@-echo. \
  1005. & echo # *** These are the compiler switches for the MT model (LIBCIMT.LIB): \
  1006. & echo # \
  1007. & echo # CL = $(CC_OPTS_BASE) \ \
  1008. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTI) \ \
  1009. & echo # $(MTIOS_DEFINES) \
  1010. & echo # \
  1011. & echo # ML = $(AS_OPTS) \ \
  1012. & echo # $(MTIOS_DEFINES) \
  1013. & echo.
  1014. !endif
  1015. mt : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_MT) $(RELDIR_CPU) \
  1016. mt_env mt_ mtp_env mt_p mti_env mt_i
  1017. !if "$(BLD_BROWSE)"=="1" && "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1018. $(BSCMAKE) -o $(RELEASE_LIBCMT:.lib=.bsc) $(OBJDIR_MT)\*.sbr
  1019. !endif
  1020. !if "$(BLD_LIB)"!="1"
  1021. mt_ :: $(MAKE_DIRS)
  1022. !@-cd $** \
  1023. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MT) \
  1024. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1025. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1026. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1027. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1028. BLD_SYSCRT=1 \
  1029. !endif # STRIPLIN=1
  1030. !if 0 # STRIPLIN!
  1031. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1032. !endif # STRIPLIN!
  1033. BLD_MODEL=mt OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT) \
  1034. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1035. VCTOOLSINC="$(VCTOOLSINC)" \
  1036. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1037. & cd $(CD_ROOT)
  1038. !if "$(PRE_BLD)"!="1"
  1039. mt_p :: $(MAKE_DIRSP)
  1040. !@-cd $** \
  1041. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MTP) \
  1042. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1043. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1044. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1045. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1046. BLD_SYSCRT=1 \
  1047. !endif # STRIPLIN=1
  1048. !if 0 # STRIPLIN!
  1049. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1050. !endif # STRIPLIN!
  1051. BLD_MODEL=mt OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT) \
  1052. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1053. VCTOOLSINC="$(VCTOOLSINC)" \
  1054. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1055. & cd $(CD_ROOT)
  1056. mt_i :: $(MAKE_DIRSI)
  1057. !@-cd $** \
  1058. & set CL=$(CC_OPTS) $(MTIOS_DEFINES) $(FD_REL_MTI) \
  1059. & set ML=$(AS_OPTS) $(MTIOS_DEFINES) \
  1060. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1061. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1062. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1063. BLD_SYSCRT=1 \
  1064. !endif # STRIPLIN=1
  1065. !if 0 # STRIPLIN!
  1066. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1067. !endif # STRIPLIN!
  1068. BLD_MODEL=mt OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT) \
  1069. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1070. VCTOOLSINC="$(VCTOOLSINC)" \
  1071. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1072. & cd $(CD_ROOT)
  1073. !endif
  1074. !endif # BLD_LIB != 1
  1075. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1076. mt_ :: $(RELEASE_LIBCMT)
  1077. mt_p :: $(RELEASE_LIBCPPMT)
  1078. mt_i :: $(RELEASE_LIBIOSMT)
  1079. !else
  1080. mt_ ::
  1081. mt_p ::
  1082. mt_i ::
  1083. !endif
  1084. dll_env :
  1085. !if "$(BLD_LIB)"!="1"
  1086. !@-echo. \
  1087. & echo # *** These are the compiler switches for the DLL model (MSVCRT.LIB): \
  1088. & echo # \
  1089. & echo # CL = $(CC_OPTS_BASE) \ \
  1090. & echo # $(WINDOWS_H_DEFS) $(FD_REL_DLL) \ \
  1091. & echo # $(DLL_DEFINES) \
  1092. & echo # \
  1093. & echo # ML = $(AS_OPTS) \ \
  1094. & echo # $(DLL_DEFINES) \
  1095. & echo.
  1096. !endif
  1097. dllp_env :
  1098. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1099. !@-echo. \
  1100. & echo # *** These are the compiler switches for the DLL model (MSVCPRT.LIB): \
  1101. & echo # \
  1102. & echo # CL = $(CC_OPTS_BASE) \ \
  1103. & echo # $(WINDOWS_H_DEFS) $(FD_REL_DLLP) \ \
  1104. & echo # $(DLLCPP_DEFINES) \
  1105. & echo # \
  1106. & echo # ML = $(AS_OPTS) \ \
  1107. & echo # $(DLLCPP_DEFINES) \
  1108. & echo.
  1109. !endif
  1110. dlli_env :
  1111. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1112. !@-echo. \
  1113. & echo # *** These are the compiler switches for the DLL model (MSVCIRT.LIB): \
  1114. & echo # \
  1115. & echo # CL = $(CC_OPTS_BASE) \ \
  1116. & echo # $(WINDOWS_H_DEFS) $(FD_REL_DLLI) \ \
  1117. & echo # $(DLLIOS_DEFINES) \
  1118. & echo # \
  1119. & echo # ML = $(AS_OPTS) \ \
  1120. & echo # $(DLLIOS_DEFINES) \
  1121. & echo.
  1122. !endif
  1123. dll : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_DLL) $(RELDIR_CPU) $(PDBDIR_CPU_DLL) \
  1124. others dll_env dll_ dllp_env dll_p dlli_env dll_i
  1125. !if "$(BLD_BROWSE)"=="1" && "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1126. $(BSCMAKE) -o $(RELEASE_IMPLIB_DLL:.lib=.bsc) $(OBJDIR_DLL)\*.sbr
  1127. !endif
  1128. !if "$(BLD_LIB)"!="1"
  1129. dll_ :: $(MAKE_DIRS_DLL)
  1130. !@-cd $** \
  1131. & set CL=$(CC_OPTS) $(DLL_DEFINES) $(FD_REL_DLL) \
  1132. & set ML=$(AS_OPTS) $(DLL_DEFINES) \
  1133. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1134. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1135. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1136. BLD_SYSCRT=1 \
  1137. !endif # STRIPLIN=1
  1138. !if 0 # STRIPLIN!
  1139. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1140. !endif # STRIPLIN!
  1141. BLD_MODEL=dll BLD_DLL=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_DLL) \
  1142. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1143. VCTOOLSINC="$(VCTOOLSINC)" \
  1144. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1145. & cd $(CD_ROOT)
  1146. !if "$(PRE_BLD)"!="1"
  1147. dll_p :: $(MAKE_DIRSP_DLL)
  1148. !@-cd $** \
  1149. & set CL=$(CC_OPTS) $(DLLCPP_DEFINES) $(FD_REL_DLLP) \
  1150. & set ML=$(AS_OPTS) $(DLLCPP_DEFINES) \
  1151. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1152. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1153. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1154. BLD_SYSCRT=1 \
  1155. !endif # STRIPLIN=1
  1156. !if 0 # STRIPLIN!
  1157. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1158. !endif # STRIPLIN!
  1159. BLD_MODEL=dll BLD_DLL=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_DLL) \
  1160. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1161. VCTOOLSINC="$(VCTOOLSINC)" \
  1162. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1163. & cd $(CD_ROOT)
  1164. dll_i :: $(MAKE_DIRSI_DLL)
  1165. !@-cd $** \
  1166. & set CL=$(CC_OPTS) $(DLLIOS_DEFINES) $(FD_REL_DLLI) \
  1167. & set ML=$(AS_OPTS) $(DLLIOS_DEFINES) \
  1168. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1169. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1170. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1171. BLD_SYSCRT=1 \
  1172. !endif # STRIPLIN=1
  1173. !if 0 # STRIPLIN!
  1174. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1175. !endif # STRIPLIN!
  1176. BLD_MODEL=dll BLD_DLL=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_DLL) \
  1177. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1178. VCTOOLSINC="$(VCTOOLSINC)" \
  1179. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1180. & cd $(CD_ROOT)
  1181. !endif
  1182. !endif # BLD_LIB != 1
  1183. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1184. dll_ :: $(RELEASE_DLL)
  1185. dll_p :: $(RELEASE_DLLCPP)
  1186. # ******** STRIPLIN=2 ********
  1187. #dll_i :: $(RELEASE_DLLIOS)
  1188. # ******** STRIPLIN=0 ********
  1189. !IF "$(BLD_FWDR)"=="1"
  1190. dll_i :: $(RELEASE_DLLIOS) $(RELEASE_FWDRDLL)
  1191. !ELSE
  1192. dll_i :: $(RELEASE_DLLIOS)
  1193. !ENDIF
  1194. # ******** STRIPLIN=1 ********
  1195. !else
  1196. dll_ ::
  1197. dll_p ::
  1198. dll_i ::
  1199. !endif
  1200. # ******** STRIPLIN=0 ********
  1201. bst_env :
  1202. !if "$(BLD_LIB)"!="1"
  1203. !@-echo. \
  1204. & echo # *** These are the compiler switches for the BST model (LIBC.LIB): \
  1205. & echo # \
  1206. & echo # CL = $(CC_OPTS_BASE) \ \
  1207. & echo # $(WINDOWS_H_DEFS) $(FD_REL_ST_BSKU) \ \
  1208. & echo # $(ST_DEFINES) \
  1209. & echo # \
  1210. & echo # ML = $(AS_OPTS) \ \
  1211. & echo # $(ST_DEFINES) \
  1212. & echo.
  1213. !endif
  1214. bstp_env :
  1215. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1216. !@-echo. \
  1217. & echo # *** These are the compiler switches for the BST model (LIBCP.LIB): \
  1218. & echo # \
  1219. & echo # CL = $(CC_OPTS_BASE) \ \
  1220. & echo # $(WINDOWS_H_DEFS) $(FD_REL_STP_BSKU) \ \
  1221. & echo # $(ST_DEFINES) \
  1222. & echo # \
  1223. & echo # ML = $(AS_OPTS) \ \
  1224. & echo # $(ST_DEFINES) \
  1225. & echo.
  1226. !endif
  1227. bsti_env :
  1228. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1229. !@-echo. \
  1230. & echo # *** These are the compiler switches for the BST model (LIBCI.LIB): \
  1231. & echo # \
  1232. & echo # CL = $(CC_OPTS_BASE) \ \
  1233. & echo # $(WINDOWS_H_DEFS) $(FD_REL_STI_BSKU) \ \
  1234. & echo # $(STIOS_DEFINES) \
  1235. & echo # \
  1236. & echo # ML = $(AS_OPTS) \ \
  1237. & echo # $(STIOS_DEFINES) \
  1238. & echo.
  1239. !endif
  1240. bst : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST_BSKU) $(RELDIR_CPU_BSKU) \
  1241. bst_env bst_ bstp_env bst_p bsti_env bst_i
  1242. !if "$(BLD_LIB)"!="1"
  1243. !if "$(PRE_BLD)"=="1"
  1244. bst_ :: $(MAKE_DIRS_BSKU)
  1245. !@-cd $** \
  1246. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_ST_BSKU) \
  1247. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  1248. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1249. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1250. BLD_MODEL=bst BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_BSKU) \
  1251. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1252. VCTOOLSINC="$(VCTOOLSINC)" \
  1253. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1254. & cd $(CD_ROOT)
  1255. !else
  1256. #bst_ :: $(MAKE_DIRS_BSKU)
  1257. bst_ ::
  1258. # !@-cd $** \
  1259. lib /OUT:$(RELEASE_LIBCST_BSKU) $(RELEASE_LIBCST) $(CPUDIR)\bst_lib\bsku.obj \
  1260. & cd $(CD_ROOT) \
  1261. & echo # Finished bst_ build
  1262. !endif
  1263. !if "$(PRE_BLD)"!="1"
  1264. bst_p :: $(MAKE_DIRS_BSKU)
  1265. !@-cd $** \
  1266. & lib /OUT:$(RELEASE_LIBCPPST_BSKU) $(RELEASE_LIBCPPST) $(CPUDIR)\bst_lib\bsku.obj \
  1267. # & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_STP_BSKU) \
  1268. # & set ML=$(AS_OPTS) $(ST_DEFINES) \
  1269. # & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1270. # WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1271. # BLD_MODEL=bst BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_BSKU) \
  1272. # TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1273. # VCTOOLSINC="$(VCTOOLSINC)" \
  1274. # PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1275. & cd $(CD_ROOT)
  1276. bst_i :: $(MAKE_DIRS_BSKU)
  1277. !@-cd $** \
  1278. & lib /OUT:$(RELEASE_LIBIOSST_BSKU) $(RELEASE_LIBIOSST) $(CPUDIR)\bst_lib\bsku.obj \
  1279. # & set CL=$(CC_OPTS) $(STIOS_DEFINES) $(FD_REL_STI_BSKU) \
  1280. # & set ML=$(AS_OPTS) $(STIOS_DEFINES) \
  1281. # & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1282. # WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1283. # BLD_MODEL=bst BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_BSKU) \
  1284. # TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1285. # VCTOOLSINC="$(VCTOOLSINC)" \
  1286. # PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1287. & cd $(CD_ROOT)
  1288. !endif
  1289. !endif # BLD_LIB != 1
  1290. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1291. bst_ :: $(RELEASE_LIBCST_BSKU)
  1292. bst_p :: $(RELEASE_LIBCPPST_BSKU)
  1293. bst_i :: $(RELEASE_LIBIOSST_BSKU)
  1294. !else
  1295. bst_ ::
  1296. bst_p ::
  1297. bst_i ::
  1298. !endif
  1299. bmt_env :
  1300. !if "$(BLD_LIB)"!="1"
  1301. !@-echo. \
  1302. & echo # *** These are the compiler switches for the BMT model (LIBCMT.LIB): \
  1303. & echo # \
  1304. & echo # CL = $(CC_OPTS_BASE) \ \
  1305. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MT_BSKU) \ \
  1306. & echo # $(MT_DEFINES) \
  1307. & echo # \
  1308. & echo # ML = $(AS_OPTS) \ \
  1309. & echo # $(MT_DEFINES) \
  1310. & echo.
  1311. !endif
  1312. bmtp_env :
  1313. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1314. !@-echo. \
  1315. & echo # *** These are the compiler switches for the BMT model (LIBCPMT.LIB): \
  1316. & echo # \
  1317. & echo # CL = $(CC_OPTS_BASE) \ \
  1318. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTP_BSKU) \ \
  1319. & echo # $(MT_DEFINES) \
  1320. & echo # \
  1321. & echo # ML = $(AS_OPTS) \ \
  1322. & echo # $(MT_DEFINES) \
  1323. & echo.
  1324. !endif
  1325. bmti_env :
  1326. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1327. !@-echo. \
  1328. & echo # *** These are the compiler switches for the BMT model (LIBCIMT.LIB): \
  1329. & echo # \
  1330. & echo # CL = $(CC_OPTS_BASE) \ \
  1331. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTI_BSKU) \ \
  1332. & echo # $(MTIOS_DEFINES) \
  1333. & echo # \
  1334. & echo # ML = $(AS_OPTS) \ \
  1335. & echo # $(MTIOS_DEFINES) \
  1336. & echo.
  1337. !endif
  1338. bmt : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_MT_BSKU) $(RELDIR_CPU_BSKU) \
  1339. bmt_env bmt_ bmtp_env bmt_p bmti_env bmt_i
  1340. !if "$(BLD_LIB)"!="1"
  1341. bmt_ :: $(MAKE_DIRS_BSKU)
  1342. !@-cd $** \
  1343. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MT_BSKU) \
  1344. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1345. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1346. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1347. BLD_MODEL=bmt BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_BSKU) \
  1348. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1349. VCTOOLSINC="$(VCTOOLSINC)" \
  1350. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1351. & cd $(CD_ROOT)
  1352. !if "$(PRE_BLD)"!="1"
  1353. bmt_p :: $(MAKE_DIRSP)
  1354. !@-cd $** \
  1355. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MTP_BSKU) \
  1356. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1357. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1358. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1359. BLD_MODEL=bmt BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_BSKU) \
  1360. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1361. VCTOOLSINC="$(VCTOOLSINC)" \
  1362. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1363. & cd $(CD_ROOT)
  1364. bmt_i :: $(MAKE_DIRSI)
  1365. !@-cd $** \
  1366. & set CL=$(CC_OPTS) $(MTIOS_DEFINES) $(FD_REL_MTI_BSKU) \
  1367. & set ML=$(AS_OPTS) $(MTIOS_DEFINES) \
  1368. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1369. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1370. BLD_MODEL=bmt BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_BSKU) \
  1371. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1372. VCTOOLSINC="$(VCTOOLSINC)" \
  1373. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1374. & cd $(CD_ROOT)
  1375. !endif
  1376. !endif # BLD_LIB != 1
  1377. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1378. bmt_ :: $(RELEASE_LIBCMT_BSKU)
  1379. bmt_p :: $(RELEASE_LIBCPPMT_BSKU)
  1380. bmt_i :: $(RELEASE_LIBIOSMT_BSKU)
  1381. !else
  1382. bmt_ ::
  1383. bmt_p ::
  1384. bmt_i ::
  1385. !endif
  1386. # ******** STRIPLIN=1 ********
  1387. xst_env :
  1388. !if "$(BLD_LIB)"!="1"
  1389. !@-echo. \
  1390. & echo # *** These are the compiler switches for the XST model (LIBCD.LIB): \
  1391. & echo # \
  1392. & echo # CL = $(CC_OPTS_BASE) \ \
  1393. & echo # $(WINDOWS_H_DEFS) $(FD_REL_ST_DBG) \ \
  1394. & echo # $(ST_DEFINES) \
  1395. & echo # \
  1396. & echo # ML = $(AS_OPTS) \ \
  1397. & echo # $(ST_DEFINES) \
  1398. & echo.
  1399. !endif
  1400. xstp_env :
  1401. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1402. !@-echo. \
  1403. & echo # *** These are the compiler switches for the XST model (LIBCPD.LIB): \
  1404. & echo # \
  1405. & echo # CL = $(CC_OPTS_BASE) \ \
  1406. & echo # $(WINDOWS_H_DEFS) $(FD_REL_STP_DBG) \ \
  1407. & echo # $(ST_DEFINES) \
  1408. & echo # \
  1409. & echo # ML = $(AS_OPTS) \ \
  1410. & echo # $(ST_DEFINES) \
  1411. & echo.
  1412. !endif
  1413. xsti_env :
  1414. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1415. !@-echo. \
  1416. & echo # *** These are the compiler switches for the XST model (LIBCID.LIB): \
  1417. & echo # \
  1418. & echo # CL = $(CC_OPTS_BASE) \ \
  1419. & echo # $(WINDOWS_H_DEFS) $(FD_REL_STI_DBG) \ \
  1420. & echo # $(STIOS_DEFINES) \
  1421. & echo # \
  1422. & echo # ML = $(AS_OPTS) \ \
  1423. & echo # $(STIOS_DEFINES) \
  1424. & echo.
  1425. !endif
  1426. xst : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST_DBG) $(RELDIR_CPU) \
  1427. xst_env xst_ xstp_env xst_p xsti_env xst_i
  1428. !if "$(BLD_BROWSE)"=="1" && "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1429. $(BSCMAKE) -o $(RELEASE_LIBCST_DBG:.lib=.bsc) $(OBJDIR_ST_DBG)\*.sbr
  1430. !endif
  1431. !if "$(BLD_LIB)"!="1"
  1432. xst_ :: $(MAKE_DIRS)
  1433. !@-cd $** \
  1434. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_ST_DBG) \
  1435. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  1436. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1437. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1438. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1439. BLD_SYSCRT=1 \
  1440. !endif # STRIPLIN=1
  1441. !if 0 # STRIPLIN!
  1442. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1443. !endif # STRIPLIN!
  1444. BLD_MODEL=xst BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_DBG) \
  1445. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1446. VCTOOLSINC="$(VCTOOLSINC)" \
  1447. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1448. & cd $(CD_ROOT)
  1449. !if "$(PRE_BLD)"!="1"
  1450. xst_p :: $(MAKE_DIRSP)
  1451. !@-cd $** \
  1452. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_STP_DBG) \
  1453. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  1454. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1455. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1456. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1457. BLD_SYSCRT=1 \
  1458. !endif # STRIPLIN=1
  1459. !if 0 # STRIPLIN!
  1460. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1461. !endif # STRIPLIN!
  1462. BLD_MODEL=xst BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_DBG) \
  1463. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1464. VCTOOLSINC="$(VCTOOLSINC)" \
  1465. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1466. & cd $(CD_ROOT)
  1467. xst_i :: $(MAKE_DIRSI)
  1468. !@-cd $** \
  1469. & set CL=$(CC_OPTS) $(STIOS_DEFINES) $(FD_REL_STI_DBG) \
  1470. & set ML=$(AS_OPTS) $(STIOS_DEFINES) \
  1471. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1472. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1473. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1474. BLD_SYSCRT=1 \
  1475. !endif # STRIPLIN=1
  1476. !if 0 # STRIPLIN!
  1477. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1478. !endif # STRIPLIN!
  1479. BLD_MODEL=xst BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_DBG) \
  1480. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1481. VCTOOLSINC="$(VCTOOLSINC)" \
  1482. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1483. & cd $(CD_ROOT)
  1484. !endif
  1485. !endif # BLD_LIB != 1
  1486. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1487. xst_ :: $(RELEASE_LIBCST_DBG)
  1488. xst_p :: $(RELEASE_LIBCPPST_DBG)
  1489. xst_i :: $(RELEASE_LIBIOSST_DBG)
  1490. !else
  1491. xst_ ::
  1492. xst_p ::
  1493. xst_i ::
  1494. !endif
  1495. xmt_env :
  1496. !if "$(BLD_LIB)"!="1"
  1497. !@-echo. \
  1498. & echo # *** These are the compiler switches for the XMT model (LIBCMTD.LIB): \
  1499. & echo # \
  1500. & echo # CL = $(CC_OPTS_BASE) \ \
  1501. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MT_DBG) \ \
  1502. & echo # $(MT_DEFINES) \
  1503. & echo # \
  1504. & echo # ML = $(AS_OPTS) \ \
  1505. & echo # $(MT_DEFINES) \
  1506. & echo.
  1507. !endif
  1508. xmtp_env :
  1509. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1510. !@-echo. \
  1511. & echo # *** These are the compiler switches for the XMT model (LIBCPMTD.LIB): \
  1512. & echo # \
  1513. & echo # CL = $(CC_OPTS_BASE) \ \
  1514. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTP_DBG) \ \
  1515. & echo # $(MT_DEFINES) \
  1516. & echo # \
  1517. & echo # ML = $(AS_OPTS) \ \
  1518. & echo # $(MT_DEFINES) \
  1519. & echo.
  1520. !endif
  1521. xmti_env :
  1522. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1523. !@-echo. \
  1524. & echo # *** These are the compiler switches for the XMT model (LIBCIMTD.LIB): \
  1525. & echo # \
  1526. & echo # CL = $(CC_OPTS_BASE) \ \
  1527. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTI_DBG) \ \
  1528. & echo # $(MTIOS_DEFINES) \
  1529. & echo # \
  1530. & echo # ML = $(AS_OPTS) \ \
  1531. & echo # $(MTIOS_DEFINES) \
  1532. & echo.
  1533. !endif
  1534. xmt : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_MT_DBG) $(RELDIR_CPU) \
  1535. xmt_env xmt_ xmtp_env xmt_p xmti_env xmt_i
  1536. !if "$(BLD_BROWSE)"=="1" && "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1537. $(BSCMAKE) -o $(RELEASE_LIBCMT_DBG:.lib=.bsc) $(OBJDIR_MT_DBG)\*.sbr
  1538. !endif
  1539. !if "$(BLD_LIB)"!="1"
  1540. xmt_ :: $(MAKE_DIRS)
  1541. !@-cd $** \
  1542. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MT_DBG) \
  1543. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1544. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1545. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1546. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1547. BLD_SYSCRT=1 \
  1548. !endif # STRIPLIN=1
  1549. !if 0 # STRIPLIN!
  1550. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1551. !endif # STRIPLIN!
  1552. BLD_MODEL=xmt BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_DBG) \
  1553. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1554. VCTOOLSINC="$(VCTOOLSINC)" \
  1555. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1556. & cd $(CD_ROOT)
  1557. !if "$(PRE_BLD)"!="1"
  1558. xmt_p :: $(MAKE_DIRSP)
  1559. !@-cd $** \
  1560. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MTP_DBG) \
  1561. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1562. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1563. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1564. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1565. BLD_SYSCRT=1 \
  1566. !endif # STRIPLIN=1
  1567. !if 0 # STRIPLIN!
  1568. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1569. !endif # STRIPLIN!
  1570. BLD_MODEL=xmt BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_DBG) \
  1571. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1572. VCTOOLSINC="$(VCTOOLSINC)" \
  1573. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1574. & cd $(CD_ROOT)
  1575. xmt_i :: $(MAKE_DIRSI)
  1576. !@-cd $** \
  1577. & set CL=$(CC_OPTS) $(MTIOS_DEFINES) $(FD_REL_MTI_DBG) \
  1578. & set ML=$(AS_OPTS) $(MTIOS_DEFINES) \
  1579. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1580. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1581. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1582. BLD_SYSCRT=1 \
  1583. !endif # STRIPLIN=1
  1584. !if 0 # STRIPLIN!
  1585. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1586. !endif # STRIPLIN!
  1587. BLD_MODEL=xmt BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_DBG) \
  1588. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1589. VCTOOLSINC="$(VCTOOLSINC)" \
  1590. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1591. & cd $(CD_ROOT)
  1592. !endif
  1593. !endif # BLD_LIB != 1
  1594. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1595. xmt_ :: $(RELEASE_LIBCMT_DBG)
  1596. xmt_p :: $(RELEASE_LIBCPPMT_DBG)
  1597. xmt_i :: $(RELEASE_LIBIOSMT_DBG)
  1598. !else
  1599. xmt_ ::
  1600. xmt_p ::
  1601. xmt_i ::
  1602. !endif
  1603. xdll_env :
  1604. !if "$(BLD_LIB)"!="1"
  1605. !@-echo. \
  1606. & echo # *** These are the compiler switches for the XDLL model (MSVCRTD.LIB): \
  1607. & echo # \
  1608. & echo # CL = $(CC_OPTS_BASE) \ \
  1609. & echo # $(WINDOWS_H_DEFS) $(FD_REL_DLL_DBG) \ \
  1610. & echo # $(DLL_DEFINES) \
  1611. & echo # \
  1612. & echo # ML = $(AS_OPTS) \ \
  1613. & echo # $(DLL_DEFINES) \
  1614. & echo.
  1615. !endif
  1616. xdllp_env :
  1617. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1618. !@-echo. \
  1619. & echo # *** These are the compiler switches for the XDLL model (MSVCPRTD.LIB): \
  1620. & echo # \
  1621. & echo # CL = $(CC_OPTS_BASE) \ \
  1622. & echo # $(WINDOWS_H_DEFS) $(FD_REL_DLLP_DBG) \ \
  1623. & echo # $(DLLCPP_DEFINES) \
  1624. & echo # \
  1625. & echo # ML = $(AS_OPTS) \ \
  1626. & echo # $(DLLCPP_DEFINES) \
  1627. & echo.
  1628. !endif
  1629. xdlli_env :
  1630. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1631. !@-echo. \
  1632. & echo # *** These are the compiler switches for the XDLL model (MSVCIRTD.LIB): \
  1633. & echo # \
  1634. & echo # CL = $(CC_OPTS_BASE) \ \
  1635. & echo # $(WINDOWS_H_DEFS) $(FD_REL_DLLI_DBG) \ \
  1636. & echo # $(DLLIOS_DEFINES) \
  1637. & echo # \
  1638. & echo # ML = $(AS_OPTS) \ \
  1639. & echo # $(DLLIOS_DEFINES) \
  1640. & echo.
  1641. !endif
  1642. xdll : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_DLL_DBG) $(RELDIR_CPU) $(PDBDIR_CPU_DLL) \
  1643. xothers xdll_env xdll_ xdllp_env xdll_p xdlli_env xdll_i
  1644. !if "$(BLD_BROWSE)"=="1" && "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1645. $(BSCMAKE) -o $(RELEASE_IMPLIB_DLL_DBG:.lib=.bsc) $(OBJDIR_DLL_DBG)\*.sbr
  1646. !endif
  1647. !if "$(BLD_LIB)"!="1"
  1648. xdll_ :: $(MAKE_DIRS_DLL)
  1649. !@-cd $** \
  1650. & set CL=$(CC_OPTS) $(DLL_DEFINES) $(FD_REL_DLL_DBG) \
  1651. & set ML=$(AS_OPTS) $(DLL_DEFINES) \
  1652. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1653. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1654. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1655. BLD_SYSCRT=1 \
  1656. !endif # STRIPLIN=1
  1657. !if 0 # STRIPLIN!
  1658. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1659. !endif # STRIPLIN!
  1660. BLD_MODEL=xdll BLD_DLL=1 BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_DLL_DBG) \
  1661. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1662. VCTOOLSINC="$(VCTOOLSINC)" \
  1663. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1664. & cd $(CD_ROOT)
  1665. !if "$(PRE_BLD)"!="1"
  1666. xdll_p :: $(MAKE_DIRSP_DLL)
  1667. !@-cd $** \
  1668. & set CL=$(CC_OPTS) $(DLLCPP_DEFINES) $(FD_REL_DLLP_DBG) \
  1669. & set ML=$(AS_OPTS) $(DLLCPP_DEFINES) \
  1670. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1671. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1672. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1673. BLD_SYSCRT=1 \
  1674. !endif # STRIPLIN=1
  1675. !if 0 # STRIPLIN!
  1676. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1677. !endif # STRIPLIN!
  1678. BLD_MODEL=xdll BLD_DLL=1 BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_DLL_DBG) \
  1679. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1680. VCTOOLSINC="$(VCTOOLSINC)" \
  1681. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1682. & cd $(CD_ROOT)
  1683. xdll_i :: $(MAKE_DIRSI_DLL)
  1684. !@-cd $** \
  1685. & set CL=$(CC_OPTS) $(DLLIOS_DEFINES) $(FD_REL_DLLI_DBG) \
  1686. & set ML=$(AS_OPTS) $(DLLIOS_DEFINES) \
  1687. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1688. WINHEAP=$(WINHEAP) RTC=$(RTC) \
  1689. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  1690. BLD_SYSCRT=1 \
  1691. !endif # STRIPLIN=1
  1692. !if 0 # STRIPLIN!
  1693. BLD_REL_NO_DBINFO=$(BLD_REL_NO_DBINFO) \
  1694. !endif # STRIPLIN!
  1695. BLD_MODEL=xdll BLD_DLL=1 BLD_DBG=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_DLL_DBG) \
  1696. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1697. VCTOOLSINC="$(VCTOOLSINC)" \
  1698. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1699. & cd $(CD_ROOT)
  1700. !endif
  1701. !endif # BLD_LIB != 1
  1702. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1703. xdll_ :: $(RELEASE_DLL_DBG)
  1704. xdll_p :: $(RELEASE_DLLCPP_DBG)
  1705. # ******** STRIPLIN=2 ********
  1706. #xdll_i :: $(RELEASE_DLLIOS_DBG)
  1707. # ******** STRIPLIN=0 ********
  1708. !IF "$(BLD_FWDR)"=="1"
  1709. xdll_i :: $(RELEASE_DLLIOS_DBG) $(RELEASE_FWDRDLL_DBG)
  1710. !ELSE
  1711. xdll_i :: $(RELEASE_DLLIOS_DBG)
  1712. !ENDIF
  1713. # ******** STRIPLIN=1 ********
  1714. !else
  1715. xdll_ ::
  1716. xdll_p ::
  1717. xdll_i ::
  1718. !endif
  1719. # ******** STRIPLIN=0 ********
  1720. xbst_env :
  1721. !if "$(BLD_LIB)"!="1"
  1722. !@-echo. \
  1723. & echo # *** These are the compiler switches for the XBST model (LIBCD.LIB): \
  1724. & echo # \
  1725. & echo # CL = $(CC_OPTS_BASE) \ \
  1726. & echo # $(WINDOWS_H_DEFS) $(FD_REL_ST_BSKU_DBG) \ \
  1727. & echo # $(ST_DEFINES) \
  1728. & echo # \
  1729. & echo # ML = $(AS_OPTS) \ \
  1730. & echo # $(ST_DEFINES) \
  1731. & echo.
  1732. !endif
  1733. xbstp_env :
  1734. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1735. !@-echo. \
  1736. & echo # *** These are the compiler switches for the XBST model (LIBCPD.LIB): \
  1737. & echo # \
  1738. & echo # CL = $(CC_OPTS_BASE) \ \
  1739. & echo # $(WINDOWS_H_DEFS) $(FD_REL_BSTP_BSKU_DBG) \ \
  1740. & echo # $(ST_DEFINES) \
  1741. & echo # \
  1742. & echo # ML = $(AS_OPTS) \ \
  1743. & echo # $(ST_DEFINES) \
  1744. & echo.
  1745. !endif
  1746. xbsti_env :
  1747. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1748. !@-echo. \
  1749. & echo # *** These are the compiler switches for the XBST model (LIBCID.LIB): \
  1750. & echo # \
  1751. & echo # CL = $(CC_OPTS_BASE) \ \
  1752. & echo # $(WINDOWS_H_DEFS) $(FD_REL_BSTI_BSKU_DBG) \ \
  1753. & echo # $(STIOS_DEFINES) \
  1754. & echo # \
  1755. & echo # ML = $(AS_OPTS) \ \
  1756. & echo # $(STIOS_DEFINES) \
  1757. & echo.
  1758. !endif
  1759. xbst : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST_BSKU_DBG) $(RELDIR_CPU_BSKU) \
  1760. xbst_env xbst_ xbstp_env xbst_p xbsti_env xbst_i
  1761. !if "$(BLD_LIB)"!="1"
  1762. xbst_ :: $(MAKE_DIRS_BSKU)
  1763. !@-cd $** \
  1764. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_ST_BSKU_DBG) \
  1765. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  1766. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1767. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1768. BLD_MODEL=xbst BLD_DBG=1 BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_BSKU_DBG) \
  1769. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1770. VCTOOLSINC="$(VCTOOLSINC)" \
  1771. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1772. & cd $(CD_ROOT)
  1773. !if "$(PRE_BLD)"!="1"
  1774. xbst_p :: $(MAKE_DIRSP)
  1775. !@-cd $** \
  1776. & set CL=$(CC_OPTS) $(ST_DEFINES) $(FD_REL_STP_BSKU_DBG) \
  1777. & set ML=$(AS_OPTS) $(ST_DEFINES) \
  1778. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1779. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1780. BLD_MODEL=xbst BLD_DBG=1 BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_BSKU_DBG) \
  1781. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1782. VCTOOLSINC="$(VCTOOLSINC)" \
  1783. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1784. & cd $(CD_ROOT)
  1785. xbst_i :: $(MAKE_DIRSI)
  1786. !@-cd $** \
  1787. & set CL=$(CC_OPTS) $(STIOS_DEFINES) $(FD_REL_STI_BSKU_DBG) \
  1788. & set ML=$(AS_OPTS) $(STIOS_DEFINES) \
  1789. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1790. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1791. BLD_MODEL=xbst BLD_DBG=1 BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_ST_BSKU_DBG) \
  1792. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1793. VCTOOLSINC="$(VCTOOLSINC)" \
  1794. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1795. & cd $(CD_ROOT)
  1796. !endif
  1797. !endif # BLD_LIB != 1
  1798. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1799. xbst_ :: $(RELEASE_LIBCST_BSKU_DBG)
  1800. xbst_p :: $(RELEASE_LIBCPPST_BSKU_DBG)
  1801. xbst_i :: $(RELEASE_LIBIOSST_BSKU_DBG)
  1802. !else
  1803. xbst_ ::
  1804. xbst_p ::
  1805. xbst_i ::
  1806. !endif
  1807. xbmt_env :
  1808. !if "$(BLD_LIB)"!="1"
  1809. !@-echo. \
  1810. & echo # *** These are the compiler switches for the XBMT model (LIBCMTD.LIB): \
  1811. & echo # \
  1812. & echo # CL = $(CC_OPTS_BASE) \ \
  1813. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MT_BSKU_DBG) \ \
  1814. & echo # $(MT_DEFINES) \
  1815. & echo # \
  1816. & echo # ML = $(AS_OPTS) \ \
  1817. & echo # $(MT_DEFINES) \
  1818. & echo.
  1819. !endif
  1820. xbmtp_env :
  1821. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1822. !@-echo. \
  1823. & echo # *** These are the compiler switches for the XBMT model (LIBCPMTD.LIB): \
  1824. & echo # \
  1825. & echo # CL = $(CC_OPTS_BASE) \ \
  1826. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTP_BSKU_DBG) \ \
  1827. & echo # $(MT_DEFINES) \
  1828. & echo # \
  1829. & echo # ML = $(AS_OPTS) \ \
  1830. & echo # $(MT_DEFINES) \
  1831. & echo.
  1832. !endif
  1833. xbmti_env :
  1834. !if "$(PRE_BLD)"!="1" && "$(BLD_LIB)"!="1"
  1835. !@-echo. \
  1836. & echo # *** These are the compiler switches for the XBMT model (LIBCIMTD.LIB): \
  1837. & echo # \
  1838. & echo # CL = $(CC_OPTS_BASE) \ \
  1839. & echo # $(WINDOWS_H_DEFS) $(FD_REL_MTI_BSKU_DBG) \ \
  1840. & echo # $(MTIOS_DEFINES) \
  1841. & echo # \
  1842. & echo # ML = $(AS_OPTS) \ \
  1843. & echo # $(MTIOS_DEFINES) \
  1844. & echo.
  1845. !endif
  1846. xbmt : $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_MT_BSKU_DBG) $(RELDIR_CPU_BSKU) \
  1847. xbmt_env xbmt_ xbmtp_env xbmt_p xbmti_env xbmt_i
  1848. !if "$(BLD_LIB)"!="1"
  1849. xbmt_ :: $(MAKE_DIRS_BSKU)
  1850. !@-cd $** \
  1851. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MT_BSKU_DBG) \
  1852. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1853. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1854. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1855. BLD_MODEL=xbmt BLD_DBG=1 BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_BSKU_DBG) \
  1856. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1857. VCTOOLSINC="$(VCTOOLSINC)" \
  1858. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) \
  1859. & cd $(CD_ROOT)
  1860. !if "$(PRE_BLD)"!="1"
  1861. xbmt_p :: $(MAKE_DIRSP)
  1862. !@-cd $** \
  1863. & set CL=$(CC_OPTS) $(MT_DEFINES) $(FD_REL_MTP_BSKU_DBG) \
  1864. & set ML=$(AS_OPTS) $(MT_DEFINES) \
  1865. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1866. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1867. BLD_MODEL=xbmt BLD_DBG=1 BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_BSKU_DBG) \
  1868. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1869. VCTOOLSINC="$(VCTOOLSINC)" \
  1870. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _stdcpp_ \
  1871. & cd $(CD_ROOT)
  1872. xbmt_i :: $(MAKE_DIRSI)
  1873. !@-cd $** \
  1874. & set CL=$(CC_OPTS) $(MTIOS_DEFINES) $(FD_REL_MTI_BSKU_DBG) \
  1875. & set ML=$(AS_OPTS) $(MTIOS_DEFINES) \
  1876. & $(MAKE) -nologo $(IFLAG) -f ..\..\makefile.sub DIR=$** CPUDIR=$(CPUDIR) \
  1877. WINHEAP=$(WINHEAP) RTC=$(RTC) BLD_SYSCRT=$(BLD_SYSCRT) \
  1878. BLD_MODEL=xbmt BLD_DBG=1 BLD_BSKU=1 OBJDIR=$(OBJDIR_PREFIX)$(OBJDIR_MT_BSKU_DBG) \
  1879. TARGET_CPU=$(TARGET_CPU) HOST_CPU=$(HOST_CPU) \
  1880. VCTOOLSINC="$(VCTOOLSINC)" \
  1881. PRE_BLD=$(PRE_BLD) POST_BLD=$(POST_BLD) _iostream_ \
  1882. & cd $(CD_ROOT)
  1883. !endif
  1884. !endif # BLD_LIB != 1
  1885. !if "$(PRE_BLD)"!="1" && "$(BLD_OBJ)"!="1"
  1886. xbmt_ :: $(RELEASE_LIBCMT_BSKU_DBG)
  1887. xbmt_p :: $(RELEASE_LIBCPPMT_BSKU_DBG)
  1888. xbmt_i :: $(RELEASE_LIBIOSMT_BSKU_DBG)
  1889. !else
  1890. xbmt_ ::
  1891. xbmt_p ::
  1892. xbmt_i ::
  1893. !endif
  1894. # ******** STRIPLIN=1 ********
  1895. all_link: st_link mt_link dll_link
  1896. st_link: $(RELEASE_LIBCST) $(RELEASE_LIBCPPST)
  1897. mt_link: $(RELEASE_LIBCMT) $(RELEASE_LIBCPPMT)
  1898. dll_link: $(RELEASE_DLL) $(RELEASE_DLLCPP)
  1899. !if "$(POST_BLD)"=="1" # STRIPLIN!
  1900. oldnames :
  1901. others :
  1902. xothers :
  1903. # ******** STRIPLIN=0 ********
  1904. !else
  1905. oldnames : $(RELEASE_OLDNAMES)
  1906. !if "$(PRE_BLD)"=="1"
  1907. others xothers: \
  1908. $(SDKNAMESLIB_DIR)\sdknames.lib \
  1909. $(ALMAPLIB_DIR)\almap.lib \
  1910. $(TCMAPLIB_DIR)\tcmap.lib \
  1911. $(TCMAPDLLLIB_DIR)\tcmapdll.lib
  1912. others: \
  1913. $(DEFFILE2_DIR)\$(RETAIL_LIBCPP_NAME).def \
  1914. $(DEFFILE2_DIR)\$(RETAIL_LIBIOS_NAME).def \
  1915. !IF "$(BLD_FWDR)"=="1"
  1916. $(DEFFILE_DIR)\$(RETAIL_FWDRDLL_NAME).def \
  1917. !ENDIF
  1918. $(DEFFILE_DIR)\$(RETAIL_LIB_NAME).def
  1919. xothers : \
  1920. $(DEFFILE2_DIR)\$(DEBUG_LIBCPP_NAME).def \
  1921. $(DEFFILE2_DIR)\$(DEBUG_LIBIOS_NAME).def \
  1922. !IF "$(BLD_FWDR)"=="1"
  1923. $(DEFFILE_DIR)\$(DEBUG_FWDRDLL_NAME).def \
  1924. !ENDIF
  1925. $(DEFFILE_DIR)\$(DEBUG_LIB_NAME).def
  1926. !else
  1927. others :
  1928. xothers :
  1929. !endif
  1930. !endif
  1931. ## ******** STRIPLIN=1 ********
  1932. #
  1933. ##
  1934. ## Make Process for Compiler Helper Libraries
  1935. ##
  1936. ################################################################################
  1937. #
  1938. #$(RELEASE_CHELPER): $(RELDIR_CPU) build\$(CPUDIR)\st_obj\helper.lib
  1939. # $(LINKLIB) -out:$@ build\$(CPUDIR)\st_obj\helper.lib
  1940. #
  1941. ## ******** STRIPLIN=0 ********
  1942. #
  1943. #$(RELEASE_CHELPER_BSKU): $(RELDIR_CPU_BSKU) build\$(CPUDIR)\st_obj\helper.lib
  1944. # $(LINKLIB) -out:$@ build\$(CPUDIR)\st_obj\helper.lib
  1945. #
  1946. # ******** STRIPLIN=1 ********
  1947. #
  1948. # Make Process for Static Libraries
  1949. #
  1950. ###############################################################################
  1951. $(RELEASE_LIBCST): $(RELDIR_CPU) $(SOURCE_OBJS:*=st) \
  1952. $(OBJDIR_ST)\link.rsp
  1953. $(LINKLIB) -out:$@ @$(OBJDIR_ST)\link.rsp
  1954. $(RELEASE_LIBCPPST): $(RELDIR_CPU) $(CPPSRC_OBJS:*=st) \
  1955. $(OBJDIR_ST)\linkcpp.rsp
  1956. $(LINKLIB) -out:$@ @$(OBJDIR_ST)\linkcpp.rsp
  1957. $(RELEASE_LIBIOSST): $(RELDIR_CPU) $(IOSSRC_OBJS:*=st) \
  1958. $(OBJDIR_ST)\linkios.rsp
  1959. $(LINKLIB) -out:$@ @$(OBJDIR_ST)\linkios.rsp
  1960. !if "$(BLD_OBJ)"!="1"
  1961. $(OBJDIR_ST)\link.rsp: makefile
  1962. @echo *** Creating linker response file <<$@
  1963. $(SOURCE_OBJS:*=st)
  1964. <<keep
  1965. $(OBJDIR_ST)\linkcpp.rsp: makefile
  1966. @echo *** Creating linker response file <<$@
  1967. $(CPPSRC_OBJS:*=st)
  1968. <<keep
  1969. $(OBJDIR_ST)\linkios.rsp: makefile
  1970. @echo *** Creating linker response file <<$@
  1971. $(IOSSRC_OBJS:*=st)
  1972. <<keep
  1973. !endif
  1974. # ******** STRIPLIN=0 ********
  1975. #$(RELEASE_LIBCST_BSKU): $(RELDIR_CPU_BSKU) $(SOURCE_OBJS:*=bst) \
  1976. # $(OBJDIR_ST_BSKU)\link.rsp
  1977. # $(LINKLIB) -out:$@ @$(OBJDIR_ST_BSKU)\link.rsp
  1978. #$(RELEASE_LIBCST_BSKU): st $(RELDIR_CPU_BSKU) $(BSKU_OBJS:*=bst)
  1979. $(RELEASE_LIBCST_BSKU): $(RELDIR_CPU_BSKU) $(BSKU_OBJS:*=bst)
  1980. $(LINKLIB) -out:$@ $(RELEASE_LIBCST) $(BSKU_OBJS:*=bst)
  1981. $(RELEASE_LIBCPPST_BSKU): $(RELDIR_CPU_BSKU) $(CPPSRC_OBJS:*=bst) \
  1982. $(OBJDIR_ST_BSKU)\linkcpp.rsp
  1983. $(LINKLIB) -out:$@ @$(OBJDIR_ST_BSKU)\linkcpp.rsp
  1984. $(RELEASE_LIBIOSST_BSKU): $(RELDIR_CPU_BSKU) $(IOSSRC_OBJS:*=bst) \
  1985. $(OBJDIR_ST_BSKU)\linkios.rsp
  1986. $(LINKLIB) -out:$@ @$(OBJDIR_ST_BSKU)\linkios.rsp
  1987. !if "$(BLD_OBJ)"!="1"
  1988. $(OBJDIR_ST_BSKU)\link.rsp: makefile
  1989. @echo *** Creating linker response file <<$@
  1990. $(SOURCE_OBJS:*=bst) $(BSKU_OBJS:*=bst)
  1991. <<keep
  1992. $(OBJDIR_ST_BSKU)\linkcpp.rsp: makefile
  1993. @echo *** Creating linker response file <<$@
  1994. $(CPPSRC_OBJS:*=bst) $(BSKU_OBJS:*=bst)
  1995. <<keep
  1996. $(OBJDIR_ST_BSKU)\linkios.rsp: makefile
  1997. @echo *** Creating linker response file <<$@
  1998. $(IOSSRC_OBJS:*=bst) $(BSKU_OBJS:*=bst)
  1999. <<keep
  2000. !endif
  2001. # ******** STRIPLIN=1 ********
  2002. $(RELEASE_LIBCST_DBG): $(RELDIR_CPU) $(SOURCE_OBJS:*=xst) \
  2003. $(OBJDIR_ST_DBG)\link.rsp
  2004. $(LINKLIB) -out:$@ @$(OBJDIR_ST_DBG)\link.rsp
  2005. $(RELEASE_LIBCPPST_DBG): $(RELDIR_CPU) $(CPPSRC_OBJS:*=xst) \
  2006. $(OBJDIR_ST_DBG)\linkcpp.rsp
  2007. $(LINKLIB) -out:$@ @$(OBJDIR_ST_DBG)\linkcpp.rsp
  2008. $(RELEASE_LIBIOSST_DBG): $(RELDIR_CPU) $(IOSSRC_OBJS:*=xst) \
  2009. $(OBJDIR_ST_DBG)\linkios.rsp
  2010. $(LINKLIB) -out:$@ @$(OBJDIR_ST_DBG)\linkios.rsp
  2011. !if "$(BLD_OBJ)"!="1"
  2012. $(OBJDIR_ST_DBG)\link.rsp: makefile
  2013. @echo *** Creating linker response file <<$@
  2014. $(SOURCE_OBJS:*=xst)
  2015. <<keep
  2016. $(OBJDIR_ST_DBG)\linkcpp.rsp: makefile
  2017. @echo *** Creating linker response file <<$@
  2018. $(CPPSRC_OBJS:*=xst)
  2019. <<keep
  2020. $(OBJDIR_ST_DBG)\linkios.rsp: makefile
  2021. @echo *** Creating linker response file <<$@
  2022. $(IOSSRC_OBJS:*=xst)
  2023. <<keep
  2024. !endif
  2025. # ******** STRIPLIN=0 ********
  2026. $(RELEASE_LIBCST_BSKU_DBG): $(RELDIR_CPU_BSKU) $(SOURCE_OBJS:*=xbst) \
  2027. $(OBJDIR_ST_BSKU_DBG)\link.rsp
  2028. $(LINKLIB) -out:$@ @$(OBJDIR_ST_BSKU_DBG)\link.rsp
  2029. $(RELEASE_LIBCPPST_BSKU_DBG): $(RELDIR_CPU_BSKU) $(CPPSRC_OBJS:*=xbst) \
  2030. $(OBJDIR_ST_BSKU_DBG)\linkcpp.rsp
  2031. $(LINKLIB) -out:$@ @$(OBJDIR_ST_BSKU_DBG)\linkcpp.rsp
  2032. $(RELEASE_LIBIOSST_BSKU_DBG): $(RELDIR_CPU_BSKU) $(IOSSRC_OBJS:*=xbst) \
  2033. $(OBJDIR_ST_BSKU_DBG)\linkios.rsp
  2034. $(LINKLIB) -out:$@ @$(OBJDIR_ST_BSKU_DBG)\linkios.rsp
  2035. !if "$(BLD_OBJ)"!="1"
  2036. $(OBJDIR_ST_BSKU_DBG)\link.rsp: makefile
  2037. @echo *** Creating linker response file <<$@
  2038. $(SOURCE_OBJS:*=xbst)
  2039. <<keep
  2040. $(OBJDIR_ST_BSKU_DBG)\linkcpp.rsp: makefile
  2041. @echo *** Creating linker response file <<$@
  2042. $(CPPSRC_OBJS:*=xbst)
  2043. <<keep
  2044. $(OBJDIR_ST_BSKU_DBG)\linkios.rsp: makefile
  2045. @echo *** Creating linker response file <<$@
  2046. $(IOSSRC_OBJS:*=xbst)
  2047. <<keep
  2048. !endif
  2049. # ******** STRIPLIN=1 ********
  2050. $(RELEASE_LIBCMT): $(RELDIR_CPU) $(SOURCE_OBJS:*=mt) \
  2051. $(OBJDIR_MT)\link.rsp
  2052. $(LINKLIB) -out:$@ @$(OBJDIR_MT)\link.rsp
  2053. $(RELEASE_LIBCPPMT): $(RELDIR_CPU) $(CPPSRC_OBJS:*=mt) \
  2054. $(OBJDIR_MT)\linkcpp.rsp
  2055. $(LINKLIB) -out:$@ @$(OBJDIR_MT)\linkcpp.rsp
  2056. $(RELEASE_LIBIOSMT): $(RELDIR_CPU) $(IOSSRC_OBJS:*=mt) \
  2057. $(OBJDIR_MT)\linkios.rsp
  2058. $(LINKLIB) -out:$@ @$(OBJDIR_MT)\linkios.rsp
  2059. !if "$(BLD_OBJ)"!="1"
  2060. $(OBJDIR_MT)\link.rsp: makefile
  2061. @echo *** Creating linker response file <<$@
  2062. $(SOURCE_OBJS:*=mt)
  2063. <<keep
  2064. $(OBJDIR_MT)\linkcpp.rsp: makefile
  2065. @echo *** Creating linker response file <<$@
  2066. $(CPPSRC_OBJS:*=mt)
  2067. <<keep
  2068. $(OBJDIR_MT)\linkios.rsp: makefile
  2069. @echo *** Creating linker response file <<$@
  2070. $(IOSSRC_OBJS:*=mt)
  2071. <<keep
  2072. !endif
  2073. # ******** STRIPLIN=0 ********
  2074. $(RELEASE_LIBCMT_BSKU): $(RELDIR_CPU_BSKU) $(SOURCE_OBJS:*=bmt) \
  2075. $(OBJDIR_MT_BSKU)\link.rsp
  2076. $(LINKLIB) -out:$@ @$(OBJDIR_MT_BSKU)\link.rsp
  2077. $(RELEASE_LIBCPPMT_BSKU): $(RELDIR_CPU_BSKU) $(CPPSRC_OBJS:*=bmt) \
  2078. $(OBJDIR_MT_BSKU)\linkcpp.rsp
  2079. $(LINKLIB) -out:$@ @$(OBJDIR_MT_BSKU)\linkcpp.rsp
  2080. $(RELEASE_LIBIOSMT_BSKU): $(RELDIR_CPU_BSKU) $(IOSSRC_OBJS:*=bmt) \
  2081. $(OBJDIR_MT_BSKU)\linkios.rsp
  2082. $(LINKLIB) -out:$@ @$(OBJDIR_MT_BSKU)\linkios.rsp
  2083. !if "$(BLD_OBJ)"!="1"
  2084. $(OBJDIR_MT_BSKU)\link.rsp: makefile
  2085. @echo *** Creating linker response file <<$@
  2086. $(SOURCE_OBJS:*=bmt)
  2087. <<keep
  2088. $(OBJDIR_MT_BSKU)\linkcpp.rsp: makefile
  2089. @echo *** Creating linker response file <<$@
  2090. $(CPPSRC_OBJS:*=bmt)
  2091. <<keep
  2092. $(OBJDIR_MT_BSKU)\linkios.rsp: makefile
  2093. @echo *** Creating linker response file <<$@
  2094. $(IOSSRC_OBJS:*=bmt)
  2095. <<keep
  2096. !endif
  2097. # ******** STRIPLIN=1 ********
  2098. $(RELEASE_LIBCMT_DBG): $(RELDIR_CPU) $(SOURCE_OBJS:*=xmt) \
  2099. $(OBJDIR_MT_DBG)\link.rsp
  2100. $(LINKLIB) -out:$@ @$(OBJDIR_MT_DBG)\link.rsp
  2101. $(RELEASE_LIBCPPMT_DBG): $(RELDIR_CPU) $(CPPSRC_OBJS:*=xmt) \
  2102. $(OBJDIR_MT_DBG)\linkcpp.rsp
  2103. $(LINKLIB) -out:$@ @$(OBJDIR_MT_DBG)\linkcpp.rsp
  2104. $(RELEASE_LIBIOSMT_DBG): $(RELDIR_CPU) $(IOSSRC_OBJS:*=xmt) \
  2105. $(OBJDIR_MT_DBG)\linkios.rsp
  2106. $(LINKLIB) -out:$@ @$(OBJDIR_MT_DBG)\linkios.rsp
  2107. !if "$(BLD_OBJ)"!="1"
  2108. $(OBJDIR_MT_DBG)\link.rsp: makefile
  2109. @echo *** Creating linker response file <<$@
  2110. $(SOURCE_OBJS:*=xmt)
  2111. <<keep
  2112. $(OBJDIR_MT_DBG)\linkcpp.rsp: makefile
  2113. @echo *** Creating linker response file <<$@
  2114. $(CPPSRC_OBJS:*=xmt)
  2115. <<keep
  2116. $(OBJDIR_MT_DBG)\linkios.rsp: makefile
  2117. @echo *** Creating linker response file <<$@
  2118. $(IOSSRC_OBJS:*=xmt)
  2119. <<keep
  2120. !endif
  2121. # ******** STRIPLIN=0 ********
  2122. $(RELEASE_LIBCMT_BSKU_DBG): $(RELDIR_CPU_BSKU) $(SOURCE_OBJS:*=xbmt) \
  2123. $(OBJDIR_MT_BSKU_DBG)\link.rsp
  2124. $(LINKLIB) -out:$@ @$(OBJDIR_MT_BSKU_DBG)\link.rsp
  2125. $(RELEASE_LIBCPPMT_BSKU_DBG): $(RELDIR_CPU_BSKU) $(CPPSRC_OBJS:*=xbmt) \
  2126. $(OBJDIR_MT_BSKU_DBG)\linkcpp.rsp
  2127. $(LINKLIB) -out:$@ @$(OBJDIR_MT_BSKU_DBG)\linkcpp.rsp
  2128. $(RELEASE_LIBIOSMT_BSKU_DBG): $(RELDIR_CPU_BSKU) $(IOSSRC_OBJS:*=xbmt) \
  2129. $(OBJDIR_MT_BSKU_DBG)\linkios.rsp
  2130. $(LINKLIB) -out:$@ @$(OBJDIR_MT_BSKU_DBG)\linkios.rsp
  2131. !if "$(BLD_OBJ)"!="1"
  2132. $(OBJDIR_MT_BSKU_DBG)\link.rsp: makefile
  2133. @echo *** Creating linker response file <<$@
  2134. $(SOURCE_OBJS:*=xbmt)
  2135. <<keep
  2136. $(OBJDIR_MT_BSKU_DBG)\linkcpp.rsp: makefile
  2137. @echo *** Creating linker response file <<$@
  2138. $(CPPSRC_OBJS:*=xbmt)
  2139. <<keep
  2140. $(OBJDIR_MT_BSKU_DBG)\linkios.rsp: makefile
  2141. @echo *** Creating linker response file <<$@
  2142. $(IOSSRC_OBJS:*=xbmt)
  2143. <<keep
  2144. !endif
  2145. # ******** STRIPLIN=1 ********
  2146. #
  2147. # Make Process for C Run-Time DLL
  2148. #
  2149. ###############################################################################
  2150. # todo ... preprocess a single source .def file into machine-specific version
  2151. OBJS_WITH_EXPORTS_DLL_RAW= \
  2152. $(OBJDIR_DLL_RAW)\handler.obj \
  2153. $(OBJDIR_DLL_RAW)\setnewh.obj \
  2154. $(OBJDIR_DLL_RAW)\new_mode.obj \
  2155. $(OBJDIR_DLL_RAW)\errmode.obj \
  2156. $(OBJDIR_DLL_RAW)\matherr.obj
  2157. OBJS_WITH_EXPORTS_DLL=$(OBJS_WITH_EXPORTS_DLL_RAW:*=dll)
  2158. OBJS_WITH_EXPORTS_DLL_DBG=$(OBJS_WITH_EXPORTS_DLL_RAW:*=xdll) $(OBJDIR_DLL_RAW:*=xdll)\dbgnew.obj
  2159. # These are the C++ objects in MSVCI70{,D}.DLL which have exports
  2160. OBJS_WITH_EXPORTS_DLLIOS_RAW= \
  2161. $(OBJDIR_DLL_RAW)\cerrinit.obj \
  2162. $(OBJDIR_DLL_RAW)\cininit.obj \
  2163. $(OBJDIR_DLL_RAW)\cloginit.obj \
  2164. $(OBJDIR_DLL_RAW)\filebuf.obj \
  2165. $(OBJDIR_DLL_RAW)\filebuf1.obj \
  2166. $(OBJDIR_DLL_RAW)\fstream.obj \
  2167. $(OBJDIR_DLL_RAW)\ifstream.obj \
  2168. $(OBJDIR_DLL_RAW)\_ios.obj \
  2169. $(OBJDIR_DLL_RAW)\_iostrea.obj \
  2170. $(OBJDIR_DLL_RAW)\iostrini.obj \
  2171. $(OBJDIR_DLL_RAW)\istrchar.obj \
  2172. $(OBJDIR_DLL_RAW)\istrdbl.obj \
  2173. $(OBJDIR_DLL_RAW)\istream.obj \
  2174. $(OBJDIR_DLL_RAW)\istream1.obj \
  2175. $(OBJDIR_DLL_RAW)\istrflt.obj \
  2176. $(OBJDIR_DLL_RAW)\istrgdbl.obj \
  2177. $(OBJDIR_DLL_RAW)\istrget.obj \
  2178. $(OBJDIR_DLL_RAW)\istrgetl.obj \
  2179. $(OBJDIR_DLL_RAW)\istrgint.obj \
  2180. $(OBJDIR_DLL_RAW)\istrint.obj \
  2181. $(OBJDIR_DLL_RAW)\istrldbl.obj \
  2182. $(OBJDIR_DLL_RAW)\istrlong.obj \
  2183. $(OBJDIR_DLL_RAW)\istrshrt.obj \
  2184. $(OBJDIR_DLL_RAW)\istruint.obj \
  2185. $(OBJDIR_DLL_RAW)\istrulng.obj \
  2186. $(OBJDIR_DLL_RAW)\istrusht.obj \
  2187. $(OBJDIR_DLL_RAW)\mtlock.obj \
  2188. $(OBJDIR_DLL_RAW)\oldexcpt.obj \
  2189. $(OBJDIR_DLL_RAW)\ofstream.obj \
  2190. $(OBJDIR_DLL_RAW)\ostrchar.obj \
  2191. $(OBJDIR_DLL_RAW)\ostrdbl.obj \
  2192. $(OBJDIR_DLL_RAW)\ostream.obj \
  2193. $(OBJDIR_DLL_RAW)\ostream1.obj \
  2194. $(OBJDIR_DLL_RAW)\ostrint.obj \
  2195. $(OBJDIR_DLL_RAW)\ostrldbl.obj \
  2196. $(OBJDIR_DLL_RAW)\ostrlong.obj \
  2197. $(OBJDIR_DLL_RAW)\ostrptr.obj \
  2198. $(OBJDIR_DLL_RAW)\ostrput.obj \
  2199. $(OBJDIR_DLL_RAW)\ostrshrt.obj \
  2200. $(OBJDIR_DLL_RAW)\ostruint.obj \
  2201. $(OBJDIR_DLL_RAW)\ostrulng.obj \
  2202. $(OBJDIR_DLL_RAW)\ostrusht.obj \
  2203. $(OBJDIR_DLL_RAW)\stdiostr.obj \
  2204. $(OBJDIR_DLL_RAW)\streamb.obj \
  2205. $(OBJDIR_DLL_RAW)\streamb1.obj \
  2206. $(OBJDIR_DLL_RAW)\strmbdbp.obj \
  2207. $(OBJDIR_DLL_RAW)\_strstre.obj
  2208. OBJS_WITH_EXPORTS_DLLIOS=$(OBJS_WITH_EXPORTS_DLLIOS_RAW:*=dll)
  2209. OBJS_WITH_EXPORTS_DLLIOS_DBG=$(OBJS_WITH_EXPORTS_DLLIOS_RAW:*=xdll)
  2210. # These are the C++ objects in MSVCPRT{,D}.LIB
  2211. DLLCPP_STATIC_OBJS_RAW= \
  2212. !if "$(LLP64)"=="0" || "$(BLD_SYSCRT)"!="1" # STRIPLIN!
  2213. $(OBJDIR_DLL_RAW)\nothrow.obj \
  2214. $(OBJDIR_DLL_RAW)\newaop_s.obj \
  2215. !else # STRIPLIN=0
  2216. $(OBJDIR_DLL_RAW)\delop2_s.obj \
  2217. $(OBJDIR_DLL_RAW)\newop2_s.obj \
  2218. !endif # STRIPLIN=1
  2219. $(OBJDIR_DLL_RAW)\newop_s.obj
  2220. DLLCPP_STATIC_OBJS=$(DLLCPP_STATIC_OBJS_RAW:*=dll)
  2221. DLLCPP_STATIC_OBJS_DBG=$(DLLCPP_STATIC_OBJS_RAW:*=xdll)
  2222. # These are the C++ objects in MSVCP70{,D}.DLL which have exports
  2223. !if "$(LLP64)"=="0" || "$(BLD_SYSCRT)"!="1" # STRIPLIN!
  2224. OBJS_WITH_EXPORTS_DLLCPP_RAW= \
  2225. $(OBJDIR_DLL_RAW)\cerr.obj \
  2226. $(OBJDIR_DLL_RAW)\cin.obj \
  2227. $(OBJDIR_DLL_RAW)\clog.obj \
  2228. $(OBJDIR_DLL_RAW)\cout.obj \
  2229. $(OBJDIR_DLL_RAW)\fiopen.obj \
  2230. $(OBJDIR_DLL_RAW)\instances.obj \
  2231. $(OBJDIR_DLL_RAW)\iomanip.obj \
  2232. $(OBJDIR_DLL_RAW)\iosptrs.obj \
  2233. $(OBJDIR_DLL_RAW)\iostream.obj \
  2234. $(OBJDIR_DLL_RAW)\locale.obj \
  2235. $(OBJDIR_DLL_RAW)\nomemory.obj \
  2236. $(OBJDIR_DLL_RAW)\stdhndlr.obj \
  2237. $(OBJDIR_DLL_RAW)\string.obj \
  2238. $(OBJDIR_DLL_RAW)\strstrea.obj \
  2239. $(OBJDIR_DLL_RAW)\ushcerr.obj \
  2240. $(OBJDIR_DLL_RAW)\ushcout.obj \
  2241. $(OBJDIR_DLL_RAW)\ushcin.obj \
  2242. $(OBJDIR_DLL_RAW)\ushclog.obj \
  2243. $(OBJDIR_DLL_RAW)\ushiostr.obj \
  2244. $(OBJDIR_DLL_RAW)\uncaught.obj \
  2245. $(OBJDIR_DLL_RAW)\wcerr.obj \
  2246. $(OBJDIR_DLL_RAW)\wcin.obj \
  2247. $(OBJDIR_DLL_RAW)\wclog.obj \
  2248. $(OBJDIR_DLL_RAW)\wcout.obj \
  2249. $(OBJDIR_DLL_RAW)\wctrans.obj \
  2250. $(OBJDIR_DLL_RAW)\wctype.obj \
  2251. $(OBJDIR_DLL_RAW)\wiostrea.obj \
  2252. $(OBJDIR_DLL_RAW)\xmbtowc.obj \
  2253. $(OBJDIR_DLL_RAW)\xstrcoll.obj \
  2254. $(OBJDIR_DLL_RAW)\xstrxfrm.obj \
  2255. $(OBJDIR_DLL_RAW)\xwctomb.obj
  2256. # ******** STRIPLIN=0 ********
  2257. !else
  2258. OBJS_WITH_EXPORTS_DLLCPP_RAW= \
  2259. $(OBJDIR_DLL_RAW)\dlldef.obj \
  2260. $(OBJDIR_DLL_RAW)\fiopen.obj \
  2261. $(OBJDIR_DLL_RAW)\iomanip.obj \
  2262. $(OBJDIR_DLL_RAW)\iostream.obj \
  2263. $(OBJDIR_DLL_RAW)\locale.obj \
  2264. $(OBJDIR_DLL_RAW)\nomemory.obj \
  2265. $(OBJDIR_DLL_RAW)\string.obj \
  2266. $(OBJDIR_DLL_RAW)\strstrea.obj \
  2267. $(OBJDIR_DLL_RAW)\uncaught.obj \
  2268. $(OBJDIR_DLL_RAW)\wiostrea.obj \
  2269. $(OBJDIR_DLL_RAW)\xstrcoll.obj \
  2270. $(OBJDIR_DLL_RAW)\xstrxfrm.obj \
  2271. $(OBJDIR_DLL_RAW)\xwctomb.obj \
  2272. $(OBJDIR_DLL_RAW)\wctrans.obj \
  2273. $(OBJDIR_DLL_RAW)\wctype.obj
  2274. !endif
  2275. # ******** STRIPLIN=1 ********
  2276. OBJS_WITH_EXPORTS_DLLCPP=$(OBJS_WITH_EXPORTS_DLLCPP_RAW:*=dll)
  2277. OBJS_WITH_EXPORTS_DLLCPP_DBG=$(OBJS_WITH_EXPORTS_DLLCPP_RAW:*=xdll)
  2278. #
  2279. DLL_MT_OBJS_RAW= \
  2280. $(OBJDIR_DLL_RAW)\_newmode.obj \
  2281. !if "$(TARGET_CPU)"=="i386"
  2282. $(OBJDIR_DLL_RAW)\atlssup.obj \
  2283. !endif
  2284. $(OBJDIR_DLL_RAW)\charmax.obj \
  2285. $(OBJDIR_DLL_RAW)\chkstk.obj \
  2286. $(OBJDIR_DLL_RAW)\xncommod.obj \
  2287. $(OBJDIR_DLL_RAW)\tlssup.obj \
  2288. $(OBJDIR_DLL_RAW)\xtxtmode.obj
  2289. DLL_STATIC_OBJS_RAW= \
  2290. $(OBJDIR_DLL_RAW)\atonexit.obj \
  2291. $(OBJDIR_DLL_RAW)\cinitexe.obj \
  2292. $(OBJDIR_DLL_RAW)\crtdll.obj \
  2293. $(OBJDIR_DLL_RAW)\crtexe.obj \
  2294. $(OBJDIR_DLL_RAW)\crtexew.obj \
  2295. $(OBJDIR_DLL_RAW)\delaopnt.obj \
  2296. $(OBJDIR_DLL_RAW)\delopnt.obj \
  2297. $(OBJDIR_DLL_RAW)\dll_argv.obj \
  2298. $(OBJDIR_DLL_RAW)\dllargv.obj \
  2299. $(OBJDIR_DLL_RAW)\dllmain.obj \
  2300. $(OBJDIR_DLL_RAW)\ehvccctr.obj \
  2301. $(OBJDIR_DLL_RAW)\ehvcccvb.obj \
  2302. $(OBJDIR_DLL_RAW)\ehvecctr.obj \
  2303. $(OBJDIR_DLL_RAW)\ehveccvb.obj \
  2304. $(OBJDIR_DLL_RAW)\ehvecdtr.obj \
  2305. $(OBJDIR_DLL_RAW)\merr.obj \
  2306. $(OBJDIR_DLL_RAW)\newaopnt.obj \
  2307. $(OBJDIR_DLL_RAW)\newopnt.obj \
  2308. $(OBJDIR_DLL_RAW)\nothrow0.obj \
  2309. $(OBJDIR_DLL_RAW)\ti_inst.obj \
  2310. $(OBJDIR_DLL_RAW)\wcrtexe.obj \
  2311. $(OBJDIR_DLL_RAW)\wcrtexew.obj \
  2312. $(OBJDIR_DLL_RAW)\wdll_av.obj \
  2313. $(OBJDIR_DLL_RAW)\wdllargv.obj \
  2314. $(OBJDIR_DLL_RAW)\wildcard.obj \
  2315. !if "$(RTC)"=="YES"
  2316. $(OBJDIR_DLL_RAW)\rtc.lib \
  2317. !endif
  2318. !if "$(TARGET_CPU)"=="i386"
  2319. $(OBJDIR_DLL_RAW)\dllsupp.obj \
  2320. $(OBJDIR_DLL_RAW)\adjustfd.obj \
  2321. $(OBJDIR_DLL_RAW)\ehprolg2.obj \
  2322. $(OBJDIR_DLL_RAW)\ehprolog.obj \
  2323. $(OBJDIR_DLL_RAW)\fp8.obj \
  2324. $(OBJDIR_DLL_RAW)\ftol2.obj \
  2325. $(OBJDIR_DLL_RAW)\lldiv.obj \
  2326. $(OBJDIR_DLL_RAW)\lldvrm.obj \
  2327. $(OBJDIR_DLL_RAW)\llmul.obj \
  2328. $(OBJDIR_DLL_RAW)\llrem.obj \
  2329. $(OBJDIR_DLL_RAW)\llshl.obj \
  2330. $(OBJDIR_DLL_RAW)\llshr.obj \
  2331. $(OBJDIR_DLL_RAW)\loadcfg.obj \
  2332. $(OBJDIR_DLL_RAW)\secchk.obj \
  2333. $(OBJDIR_DLL_RAW)\seccinit.obj \
  2334. $(OBJDIR_DLL_RAW)\seccook.obj \
  2335. # ******** STRIPLIN=0 ********
  2336. !if "$(BLD_SYSCRT)" == "1"
  2337. $(OBJDIR_DLL_RAW)\seclocf.obj \
  2338. !endif
  2339. # ******** STRIPLIN=1 ********
  2340. $(OBJDIR_DLL_RAW)\sehprolg.obj \
  2341. $(OBJDIR_DLL_RAW)\ulldiv.obj \
  2342. $(OBJDIR_DLL_RAW)\ulldvrm.obj \
  2343. $(OBJDIR_DLL_RAW)\ullrem.obj \
  2344. $(OBJDIR_DLL_RAW)\ullshr.obj \
  2345. !elseif "$(TARGET_CPU)"=="AMD64"
  2346. $(OBJDIR_DLL_RAW)\dllsupp.obj
  2347. !elseif "$(TARGET_CPU)"=="IA64"
  2348. $(OBJDIR_DLL_RAW)\dllsupp.obj \
  2349. $(OBJDIR_DLL_RAW)\divhelp.obj \
  2350. $(OBJDIR_DLL_RAW)\memcpy.obj \
  2351. $(OBJDIR_DLL_RAW)\memcpyi.obj \
  2352. $(OBJDIR_DLL_RAW)\memmove.obj \
  2353. $(OBJDIR_DLL_RAW)\memset.obj \
  2354. $(OBJDIR_DLL_RAW)\memseti.obj
  2355. !endif
  2356. DLL_STATIC_OBJS=$(DLL_MT_OBJS_RAW:*=dll) $(DLL_STATIC_OBJS_RAW:*=dll)
  2357. DLL_STATIC_OBJS_DBG=$(DLL_MT_OBJS_RAW:*=xdll) $(DLL_STATIC_OBJS_RAW:*=xdll)
  2358. !if "$(POST_BLD)"!="1"
  2359. $(DEFFILE_DIR)\$(RETAIL_LIB_NAME).def : libw32\$(RC_NAME).src
  2360. @echo.
  2361. @echo *** Creating file $@ from $**
  2362. $(CC) -nologo -DLIBRARYNAME=$(RETAIL_DLL_NAME_UC) $(DLL_DEFINES) -EP -Tclibw32\$(RC_NAME).src | sed "/^[ ]*$$/d" > $@
  2363. $(DEFFILE_DIR)\$(DEBUG_LIB_NAME).def : libw32\$(RC_NAME).src
  2364. @echo.
  2365. @echo *** Creating file $@ from $**
  2366. $(CC) -nologo -DLIBRARYNAME=$(DEBUG_DLL_NAME_UC) $(DLL_DEFINES) -D_DEBUG -EP -Tclibw32\$(RC_NAME).src | sed "/^[ ]*$$/d" > $@
  2367. $(DEFFILE_DIR)\$(RETAIL_FWDRDLL_NAME).def : libw32\$(RETAIL_FWDRDLL_NAME).src
  2368. @echo.
  2369. @echo *** Creating file $@ from $**
  2370. $(CC) -nologo -EP -Tclibw32\$(RETAIL_FWDRDLL_NAME).src | sed "/^[ ]*$$/d" > $@
  2371. $(DEFFILE_DIR)\$(DEBUG_FWDRDLL_NAME).def : libw32\$(RETAIL_FWDRDLL_NAME).src
  2372. @echo.
  2373. @echo *** Creating file $@ from $**
  2374. $(CC) -nologo -D_DEBUG -EP -Tclibw32\$(RETAIL_FWDRDLL_NAME).src | sed "/^[ ]*$$/d" > $@
  2375. $(DEFFILE2_DIR)\$(RETAIL_LIBCPP_NAME).def : libw32\$(RCCPP_NAME).src
  2376. @echo.
  2377. @echo *** Creating file $@ from $**
  2378. $(CC) -nologo -DLIBRARYNAME=$(RETAIL_DLLCPP_NAME_UC) -DBASECRT=$(RETAIL_DLL_NAME_UC) $(DLLCPP_DEFINES) -EP -Tclibw32\$(RCCPP_NAME).src | sed "/^[ ]*$$/d" > $@
  2379. $(DEFFILE2_DIR)\$(DEBUG_LIBCPP_NAME).def : libw32\$(RCCPP_NAME).src
  2380. @echo.
  2381. @echo *** Creating file $@ from $**
  2382. $(CC) -nologo -DLIBRARYNAME=$(DEBUG_DLLCPP_NAME_UC) -DBASECRT=$(DEBUG_DLL_NAME_UC) $(DLLCPP_DEFINES) -D_DEBUG -EP -Tclibw32\$(RCCPP_NAME).src | sed "/^[ ]*$$/d" > $@
  2383. $(DEFFILE2_DIR)\$(RETAIL_LIBIOS_NAME).def : libw32\$(RCIOS_NAME).src
  2384. @echo.
  2385. @echo *** Creating file $@ from $**
  2386. $(CC) -nologo -DLIBRARYNAME=$(RETAIL_DLLIOS_NAME_UC) -DBASECRT=$(RETAIL_DLL_NAME_UC) $(DLLIOS_DEFINES) -EP -Tclibw32\$(RCIOS_NAME).src | sed "/^[ ]*$$/d" > $@
  2387. $(DEFFILE2_DIR)\$(DEBUG_LIBIOS_NAME).def : libw32\$(RCIOS_NAME).src
  2388. @echo.
  2389. @echo *** Creating file $@ from $**
  2390. $(CC) -nologo -DLIBRARYNAME=$(DEBUG_DLLIOS_NAME_UC) -DBASECRT=$(DEBUG_DLL_NAME_UC) $(DLLIOS_DEFINES) -D_DEBUG -EP -Tclibw32\$(RCIOS_NAME).src | sed "/^[ ]*$$/d" > $@
  2391. !endif
  2392. # MSVCR70.DLL / MSVCRT.LIB
  2393. $(RELEASE_DLL) : $(RELDIR_CPU) libw32\$(RC_NAME).rc \
  2394. $(DEFFILE_DIR)\$(RETAIL_LIB_NAME).def $(SOURCE_OBJS_DLL:*=dll) \
  2395. $(DLL_STATIC_OBJS) $(SDKNAMESLIB_DIR)\sdknames.lib \
  2396. $(ALMAPLIB_DIR)\almap.lib \
  2397. $(TCMAPLIB_DIR)\tcmap.lib $(TCMAPDLLLIB_DIR)\tcmapdll.lib \
  2398. "$(VCTOOLSINC)\winver.h" \
  2399. # ******** STRIPLIN=0 ********
  2400. $(LANGAPI)\include\version.h \
  2401. # ******** STRIPLIN=1 ********
  2402. $(OBJDIR_DLL)\link.rsp $(OBJDIR_DLL)\implib.rsp
  2403. rc $(RC_OPTS) -Fo $(@R).res $(RC_DEFS) $(RC_INCS) libw32\$(RC_NAME).rc
  2404. $(LINKER) @$(OBJDIR_DLL)\link.rsp
  2405. $(LINKIMPLIB) @$(OBJDIR_DLL)\implib.rsp
  2406. !if "$(BLD_OBJ)"!="1"
  2407. $(OBJDIR_DLL)\link.rsp: makefile
  2408. @echo *** Creating linker response file <<$@
  2409. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  2410. -base:0x78000000
  2411. !else # STRIPLIN=1
  2412. -base:0x7C000000
  2413. !endif # STRIPLIN!
  2414. !if "$(BLD_REL_NO_DBINFO)" != "1"
  2415. -debug
  2416. !if 1 # STRIPLIN=0
  2417. !if "$(BLD_SYSCRT)" == "1" && "$(LLP64)" != "0"
  2418. -debugtype:pdata
  2419. !endif
  2420. -debugtype:cv,fixup
  2421. !endif # STRIPLIN=1
  2422. -pdb:$(RELEASE_DLL_PDB)
  2423. !endif
  2424. -def:$(DEFFILE_DIR)\$(RETAIL_LIB_NAME).def
  2425. -dll
  2426. -entry:_CRTDLL_INIT
  2427. -force:multiple
  2428. -implib:$(OBJDIR_DLL)\tmp.lib
  2429. -opt:ref,icf=3
  2430. -incremental:no
  2431. !if "$(LLP64)"=="1"
  2432. -osversion:5.00
  2433. -subsystem:WINDOWS,5.00
  2434. !endif
  2435. -map
  2436. -out:$(RELEASE_DLL)
  2437. -release
  2438. -nodefaultlib:libcpmt.lib
  2439. $(OBJS_WITH_EXPORTS_DLL)
  2440. $(RELEASE_DLL:.dll=.res)
  2441. $(SOURCE_OBJS_DLL:*=dll)
  2442. kernel32.lib
  2443. <<keep
  2444. $(OBJDIR_DLL)\implib.rsp: makefile
  2445. @echo *** Creating linker response file <<$@
  2446. -out:$(RELEASE_IMPLIB_DLL)
  2447. $(OBJDIR_DLL)\tmp.lib
  2448. $(DLL_STATIC_OBJS)
  2449. $(SDKNAMESLIB_DIR)\sdknames.lib
  2450. $(TCMAPLIB_DIR)\tcmap.lib
  2451. $(TCMAPDLLLIB_DIR)\tcmapdll.lib
  2452. <<keep
  2453. !endif
  2454. # ******** STRIPLIN=0 ********
  2455. $(RELEASE_FWDRDLL) : $(RELDIR_CPU) libw32\$(RETAIL_FWDRDLL_NAME).rc \
  2456. $(DEFFILE_DIR)\$(RETAIL_FWDRDLL_NAME).def "$(VCTOOLSINC)\winver.h" \
  2457. $(LANGAPI)\include\version.h $(OBJDIR_DLL)\fwdr_dll.obj \
  2458. $(OBJCPUDIR)\msvcrt.lib $(OBJCPUDIR)\msvcirt.lib \
  2459. $(OBJDIR_DLL)\linkfwd.rsp $(OBJDIR_DLL)\libfwd.rsp \
  2460. $(OBJDIR_DLL)\imp_data.obj
  2461. rc $(RC_OPTS) -Fo $(@R).res $(RC_DEFS) $(RC_INCS) libw32\$(RETAIL_FWDRDLL_NAME).rc
  2462. $(LINKLIB) @$(OBJDIR_DLL)\libfwd.rsp
  2463. $(LINKER) @$(OBJDIR_DLL)\linkfwd.rsp
  2464. !if "$(BLD_OBJ)"!="1"
  2465. $(OBJDIR_DLL)\libfwd.rsp: makefile
  2466. @echo *** Creating linker response file <<$@
  2467. -def:$(DEFFILE_DIR)\$(RETAIL_FWDRDLL_NAME).def
  2468. -out:$(OBJDIR_DLL)\tmpfwd.lib
  2469. $(OBJDIR_DLL)\imp_data.obj
  2470. $(OBJCPUDIR)\msvcrt.lib
  2471. $(OBJCPUDIR)\msvcirt.lib
  2472. <<keep
  2473. $(OBJDIR_DLL)\linkfwd.rsp: makefile
  2474. @echo *** Creating linker response file <<$@
  2475. -base:0x78080000
  2476. -dll
  2477. -entry:_FWDR_CRTDLL_INIT
  2478. -force:multiple
  2479. -incremental:no
  2480. -map
  2481. -out:$(RELEASE_FWDRDLL)
  2482. -release
  2483. $(OBJDIR_DLL)\tmpfwd.exp
  2484. $(RELEASE_FWDRDLL:.dll=.res)
  2485. $(OBJDIR_DLL)\fwdr_dll.obj
  2486. $(OBJCPUDIR)\msvcrt.lib
  2487. $(OBJCPUDIR)\msvcirt.lib
  2488. kernel32.lib
  2489. <<keep
  2490. !endif
  2491. $(RELEASE_FWDRDLL_DBG) : $(RELDIR_CPU) libw32\$(RETAIL_FWDRDLL_NAME).rc \
  2492. $(DEFFILE_DIR)\$(DEBUG_FWDRDLL_NAME).def "$(VCTOOLSINC)\winver.h" \
  2493. $(LANGAPI)\include\version.h $(OBJDIR_DLL_DBG)\fwdr_dll.obj \
  2494. $(OBJCPUDIR)\msvcrtd.lib $(OBJCPUDIR)\msvcirtd.lib \
  2495. $(OBJDIR_DLL_DBG)\linkfwd.rsp $(OBJDIR_DLL_DBG)\libfwd.rsp \
  2496. $(OBJDIR_DLL_DBG)\imp_data.obj
  2497. rc $(RC_OPTS) -Fo $(@R).res $(RC_DEFS) $(RC_INCS) libw32\$(RETAIL_FWDRDLL_NAME).rc
  2498. $(LINKLIB) @$(OBJDIR_DLL_DBG)\libfwd.rsp
  2499. $(LINKER) @$(OBJDIR_DLL_DBG)\linkfwd.rsp
  2500. !if "$(BLD_OBJ)"!="1"
  2501. $(OBJDIR_DLL_DBG)\libfwd.rsp: makefile
  2502. @echo *** Creating linker response file <<$@
  2503. -def:$(DEFFILE_DIR)\$(DEBUG_FWDRDLL_NAME).def
  2504. -out:$(OBJDIR_DLL_DBG)\tmpfwd.lib
  2505. $(OBJDIR_DLL_DBG)\imp_data.obj
  2506. $(OBJCPUDIR)\msvcrtd.lib
  2507. $(OBJCPUDIR)\msvcirtd.lib
  2508. <<keep
  2509. $(OBJDIR_DLL_DBG)\linkfwd.rsp: makefile
  2510. @echo *** Creating linker response file <<$@
  2511. -base:0x10200000
  2512. -dll
  2513. -entry:_FWDR_CRTDLL_INIT
  2514. -force:multiple
  2515. -incremental:no
  2516. -map
  2517. -out:$(RELEASE_FWDRDLL_DBG)
  2518. -release
  2519. $(OBJDIR_DLL_DBG)\tmpfwd.exp
  2520. $(RELEASE_FWDRDLL_DBG:.dll=.res)
  2521. $(OBJDIR_DLL_DBG)\fwdr_dll.obj
  2522. $(OBJCPUDIR)\msvcrtd.lib
  2523. $(OBJCPUDIR)\msvcirtd.lib
  2524. kernel32.lib
  2525. <<keep
  2526. !endif
  2527. # ******** STRIPLIN=1 ********
  2528. # MSVCP70.DLL / MSVCPRT.LIB
  2529. $(RELEASE_DLLCPP) : $(RELDIR_CPU) libw32\$(RCCPP_NAME).rc \
  2530. $(DEFFILE2_DIR)\$(RETAIL_LIBCPP_NAME).def $(CPPSRC_OBJS_DLL:*=dll) \
  2531. $(DLLCPP_STATIC_OBJS) \
  2532. "$(VCTOOLSINC)\winver.h" \
  2533. # ******** STRIPLIN=0 ********
  2534. $(LANGAPI)\include\version.h \
  2535. # ******** STRIPLIN=1 ********
  2536. $(RELEASE_IMPLIB_DLL) \
  2537. $(OBJDIR_DLL)\linkp.rsp $(OBJDIR_DLL)\implibp.rsp
  2538. rc $(RC_OPTS) -Fo $(@R).res $(RC_DEFS) $(RC_INCS) libw32\$(RCCPP_NAME).rc
  2539. $(LINKER) @$(OBJDIR_DLL)\linkp.rsp
  2540. $(LINKIMPLIB) @$(OBJDIR_DLL)\implibp.rsp
  2541. !if "$(BLD_OBJ)"!="1"
  2542. $(OBJDIR_DLL)\linkp.rsp: makefile
  2543. @echo *** Creating linker response file <<$@
  2544. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  2545. -base:0x780C0000
  2546. !else # STRIPLIN=1
  2547. -base:0x7C080000
  2548. !endif # STRIPLIN!
  2549. !if "$(BLD_REL_NO_DBINFO)" != "1"
  2550. -debug
  2551. !if 1 # STRIPLIN=0
  2552. !if "$(BLD_SYSCRT)" == "1" && "$(LLP64)" != "0"
  2553. -debugtype:pdata
  2554. !endif
  2555. -debugtype:cv,fixup
  2556. !endif # STRIPLIN=1
  2557. -pdb:$(RELEASE_DLLCPP_PDB)
  2558. !endif
  2559. -def:$(DEFFILE2_DIR)\$(RETAIL_LIBCPP_NAME).def
  2560. -dll
  2561. -force:multiple
  2562. -opt:ref,icf=3
  2563. -implib:$(OBJDIR_DLL)\tmpp.lib
  2564. -incremental:no
  2565. !if "$(LLP64)"=="1"
  2566. -osversion:5.00
  2567. -subsystem:WINDOWS,5.00
  2568. !endif
  2569. -map
  2570. -out:$(RELEASE_DLLCPP)
  2571. -release
  2572. -nodefaultlib:$(RETAIL_LIBCPP_NAME).lib
  2573. $(OBJS_WITH_EXPORTS_DLLCPP)
  2574. $(RELEASE_DLLCPP:.dll=.res)
  2575. $(CPPSRC_OBJS_DLL:*=dll)
  2576. $(RELEASE_IMPLIB_DLL)
  2577. kernel32.lib
  2578. <<keep
  2579. $(OBJDIR_DLL)\implibp.rsp: makefile
  2580. @echo *** Creating linker response file <<$@
  2581. -out:$(RELEASE_IMPLIB_DLLCPP)
  2582. $(OBJDIR_DLL)\tmpp.lib
  2583. $(DLLCPP_STATIC_OBJS)
  2584. <<keep
  2585. !endif
  2586. # MSVCI70.DLL / MSVCIRT.LIB
  2587. $(RELEASE_DLLIOS) : $(RELDIR_CPU) libw32\$(RCIOS_NAME).rc \
  2588. $(DEFFILE2_DIR)\$(RETAIL_LIBIOS_NAME).def $(IOSSRC_OBJS_DLL:*=dll) \
  2589. "$(VCTOOLSINC)\winver.h" \
  2590. # ******** STRIPLIN=0 ********
  2591. $(LANGAPI)\include\version.h \
  2592. # ******** STRIPLIN=1 ********
  2593. $(RELEASE_IMPLIB_DLL) $(OBJDIR_DLL)\ios_dll.obj \
  2594. $(OBJDIR_DLL)\linki.rsp $(OBJDIR_DLL)\implibi.rsp
  2595. rc $(RC_OPTS) -Fo $(@R).res $(RC_DEFS) $(RC_INCS) libw32\$(RCIOS_NAME).rc
  2596. $(LINKER) @$(OBJDIR_DLL)\linki.rsp
  2597. $(LINKIMPLIB) @$(OBJDIR_DLL)\implibi.rsp
  2598. !if "$(BLD_OBJ)"!="1"
  2599. $(OBJDIR_DLL)\linki.rsp: makefile
  2600. @echo *** Creating linker response file <<$@
  2601. !if "$(BLD_SYSCRT)" == "1" # STRIPLIN=0
  2602. -base:0x780A0000
  2603. !else # STRIPLIN=1
  2604. -base:0x7C060000
  2605. !endif # STRIPLIN!
  2606. !if "$(BLD_REL_NO_DBINFO)" != "1"
  2607. -debug
  2608. !if 1 # STRIPLIN=0
  2609. !if "$(BLD_SYSCRT)" == "1" && "$(LLP64)" != "0"
  2610. -debugtype:pdata
  2611. !endif
  2612. -debugtype:cv,fixup
  2613. !endif # STRIPLIN=1
  2614. -pdb:$(RELEASE_DLLIOS_PDB)
  2615. !endif
  2616. -def:$(DEFFILE2_DIR)\$(RETAIL_LIBIOS_NAME).def
  2617. -dll
  2618. -force:multiple
  2619. -implib:$(OBJDIR_DLL)\tmpi.lib
  2620. -opt:ref,icf=3
  2621. -incremental:no
  2622. !if "$(LLP64)"=="1"
  2623. -osversion:5.00
  2624. -subsystem:WINDOWS,5.00
  2625. !endif
  2626. -map
  2627. -out:$(RELEASE_DLLIOS)
  2628. -release
  2629. -nodefaultlib:$(RETAIL_LIBIOS_NAME).lib
  2630. $(OBJDIR_DLL)\ios_dll.obj
  2631. $(OBJS_WITH_EXPORTS_DLLIOS)
  2632. $(RELEASE_DLLIOS:.dll=.res)
  2633. $(IOSSRC_OBJS_DLL:*=dll)
  2634. $(RELEASE_IMPLIB_DLL)
  2635. kernel32.lib
  2636. <<keep
  2637. $(OBJDIR_DLL)\implibi.rsp: makefile
  2638. @echo *** Creating linker response file <<$@
  2639. -out:$(RELEASE_IMPLIB_DLLIOS)
  2640. $(OBJDIR_DLL)\tmpi.lib
  2641. <<keep
  2642. !endif
  2643. # MSVCR70D.DLL / MSVCRTD.LIB
  2644. $(RELEASE_DLL_DBG) : $(RELDIR_CPU) libw32\$(RC_NAME).rc \
  2645. $(DEFFILE_DIR)\$(DEBUG_LIB_NAME).def $(SOURCE_OBJS_DLL:*=xdll) \
  2646. $(DLL_STATIC_OBJS_DBG) $(SDKNAMESLIB_DIR)\sdknames.lib \
  2647. $(ALMAPLIB_DIR)\almap.lib \
  2648. $(TCMAPLIB_DIR)\tcmap.lib $(TCMAPDLLLIB_DIR)\tcmapdll.lib \
  2649. "$(VCTOOLSINC)\winver.h" \
  2650. # ******** STRIPLIN=0 ********
  2651. $(LANGAPI)\include\version.h \
  2652. # ******** STRIPLIN=1 ********
  2653. $(OBJDIR_DLL_DBG)\link.rsp $(OBJDIR_DLL_DBG)\implib.rsp
  2654. rc $(RC_OPTS) -Fo $(@R).res -D_DEBUG $(RC_DEFS) $(RC_INCS) libw32\$(RC_NAME).rc
  2655. $(LINKER) @$(OBJDIR_DLL_DBG)\link.rsp
  2656. $(LINKIMPLIB) @$(OBJDIR_DLL_DBG)\implib.rsp
  2657. !if "$(BLD_OBJ)"!="1"
  2658. $(OBJDIR_DLL_DBG)\link.rsp: makefile
  2659. @echo *** Creating linker response file <<$@
  2660. -base:0x10200000
  2661. -debug
  2662. !if 1 # STRIPLIN=0
  2663. !if "$(BLD_SYSCRT)" == "1" && "$(LLP64)" != "0"
  2664. -debugtype:pdata
  2665. !endif
  2666. -debugtype:cv,fixup
  2667. !endif # STRIPLIN=1
  2668. -def:$(DEFFILE_DIR)\$(DEBUG_LIB_NAME).def
  2669. -dll
  2670. -entry:_CRTDLL_INIT
  2671. -force:multiple
  2672. -implib:$(OBJDIR_DLL_DBG)\tmp.lib
  2673. -incremental:no
  2674. !if "$(LLP64)"=="1"
  2675. -osversion:5.00
  2676. -subsystem:WINDOWS,5.00
  2677. !endif
  2678. -map
  2679. -out:$(RELEASE_DLL_DBG)
  2680. -release
  2681. -nodefaultlib:libcpmtd.lib
  2682. -pdb:$(RELEASE_DLL_DBG_PDB)
  2683. $(OBJS_WITH_EXPORTS_DLL_DBG)
  2684. $(RELEASE_DLL_DBG:.dll=.res)
  2685. $(SOURCE_OBJS_DLL:*=xdll)
  2686. kernel32.lib
  2687. <<keep
  2688. $(OBJDIR_DLL_DBG)\implib.rsp: makefile
  2689. @echo *** Creating linker response file <<$@
  2690. -out:$(RELEASE_IMPLIB_DLL_DBG)
  2691. $(OBJDIR_DLL_DBG)\tmp.lib
  2692. $(DLL_STATIC_OBJS_DBG)
  2693. $(SDKNAMESLIB_DIR)\sdknames.lib
  2694. $(TCMAPLIB_DIR)\tcmap.lib
  2695. $(TCMAPDLLLIB_DIR)\tcmapdll.lib
  2696. <<keep
  2697. !endif
  2698. # MSVCP70D.DLL / MSVCPRTD.LIB
  2699. $(RELEASE_DLLCPP_DBG) : $(RELDIR_CPU) libw32\$(RCCPP_NAME).rc \
  2700. $(DEFFILE2_DIR)\$(DEBUG_LIBCPP_NAME).def $(CPPSRC_OBJS_DLL:*=xdll) \
  2701. $(DLLCPP_STATIC_OBJS_DBG) \
  2702. "$(VCTOOLSINC)\winver.h" \
  2703. # ******** STRIPLIN=0 ********
  2704. $(LANGAPI)\include\version.h \
  2705. # ******** STRIPLIN=1 ********
  2706. $(RELEASE_IMPLIB_DLL_DBG) \
  2707. $(OBJDIR_DLL_DBG)\linkp.rsp $(OBJDIR_DLL_DBG)\implibp.rsp
  2708. rc $(RC_OPTS) -Fo $(@R).res -D_DEBUG $(RC_DEFS) $(RC_INCS) libw32\$(RCCPP_NAME).rc
  2709. $(LINKER) @$(OBJDIR_DLL_DBG)\linkp.rsp
  2710. $(LINKIMPLIB) @$(OBJDIR_DLL_DBG)\implibp.rsp
  2711. !if "$(BLD_OBJ)"!="1"
  2712. $(OBJDIR_DLL_DBG)\linkp.rsp: makefile
  2713. @echo *** Creating linker response file <<$@
  2714. -base:0x10480000
  2715. -debug
  2716. !if 1 # STRIPLIN=0
  2717. !if "$(BLD_SYSCRT)" == "1" && "$(LLP64)" != "0"
  2718. -debugtype:pdata
  2719. !endif
  2720. -debugtype:cv,fixup
  2721. !endif # STRIPLIN=1
  2722. -def:$(DEFFILE2_DIR)\$(DEBUG_LIBCPP_NAME).def
  2723. -dll
  2724. -force:multiple
  2725. -implib:$(OBJDIR_DLL_DBG)\tmpp.lib
  2726. -incremental:no
  2727. !if "$(LLP64)"=="1"
  2728. -osversion:5.00
  2729. -subsystem:WINDOWS,5.00
  2730. !endif
  2731. -map
  2732. -out:$(RELEASE_DLLCPP_DBG)
  2733. -release
  2734. -nodefaultlib:$(DEBUG_LIBCPP_NAME).lib
  2735. -pdb:$(RELEASE_DLLCPP_DBG_PDB)
  2736. $(OBJS_WITH_EXPORTS_DLLCPP_DBG)
  2737. $(RELEASE_DLLCPP_DBG:.dll=.res)
  2738. $(CPPSRC_OBJS_DLL:*=xdll)
  2739. $(RELEASE_IMPLIB_DLL_DBG)
  2740. kernel32.lib
  2741. <<keep
  2742. $(OBJDIR_DLL_DBG)\implibp.rsp: makefile
  2743. @echo *** Creating linker response file <<$@
  2744. -out:$(RELEASE_IMPLIB_DLLCPP_DBG)
  2745. $(DLLCPP_STATIC_OBJS_DBG)
  2746. $(OBJDIR_DLL_DBG)\tmpp.lib
  2747. <<keep
  2748. !endif
  2749. # MSVCI70D.DLL / MSVCIRTD.LIB
  2750. $(RELEASE_DLLIOS_DBG) : $(RELDIR_CPU_DBG) libw32\$(RCIOS_NAME).rc \
  2751. $(DEFFILE2_DIR)\$(DEBUG_LIBIOS_NAME).def $(IOSSRC_OBJS_DLL:*=xdll) \
  2752. "$(VCTOOLSINC)\winver.h" \
  2753. # ******** STRIPLIN=0 ********
  2754. $(LANGAPI)\include\version.h \
  2755. # ******** STRIPLIN=1 ********
  2756. $(RELEASE_IMPLIB_DLL_DBG) $(OBJDIR_DLL_DBG)\ios_dll.obj \
  2757. $(OBJDIR_DLL_DBG)\linki.rsp $(OBJDIR_DLL_DBG)\implibi.rsp
  2758. rc $(RC_OPTS) -Fo $(@R).res -D_DEBUG $(RC_DEFS) $(RC_INCS) libw32\$(RCIOS_NAME).rc
  2759. $(LINKER) @$(OBJDIR_DLL_DBG)\linki.rsp
  2760. $(LINKIMPLIB) @$(OBJDIR_DLL_DBG)\implibi.rsp
  2761. !if "$(BLD_OBJ)"!="1"
  2762. $(OBJDIR_DLL_DBG)\linki.rsp: makefile
  2763. @echo *** Creating linker response file <<$@
  2764. -base:0x102A0000
  2765. -debug
  2766. !if 1 # STRIPLIN=0
  2767. !if "$(BLD_SYSCRT)" == "1" && "$(LLP64)" != "0"
  2768. -debugtype:pdata
  2769. !endif
  2770. -debugtype:cv,fixup
  2771. !endif # STRIPLIN=1
  2772. -def:$(DEFFILE2_DIR)\$(DEBUG_LIBIOS_NAME).def
  2773. -dll
  2774. -force:multiple
  2775. -implib:$(OBJDIR_DLL_DBG)\tmpi.lib
  2776. -incremental:no
  2777. !if "$(LLP64)"=="1"
  2778. -osversion:5.00
  2779. -subsystem:WINDOWS,5.00
  2780. !endif
  2781. -map
  2782. -out:$(RELEASE_DLLIOS_DBG)
  2783. -release
  2784. -nodefaultlib:msvcirtd.lib
  2785. -pdb:$(RELEASE_DLLIOS_DBG_PDB)
  2786. $(OBJDIR_DLL_DBG)\ios_dll.obj
  2787. $(OBJS_WITH_EXPORTS_DLLIOS_DBG)
  2788. $(RELEASE_DLLIOS_DBG:.dll=.res)
  2789. $(IOSSRC_OBJS_DLL:*=xdll)
  2790. $(RELEASE_IMPLIB_DLL_DBG)
  2791. kernel32.lib
  2792. <<keep
  2793. $(OBJDIR_DLL_DBG)\implibi.rsp: makefile
  2794. @echo *** Creating linker response file <<$@
  2795. -out:$(RELEASE_IMPLIB_DLLIOS_DBG)
  2796. $(OBJDIR_DLL_DBG)\tmpi.lib
  2797. <<keep
  2798. !endif
  2799. # ******** STRIPLIN=0 ********
  2800. !if "$(POST_BLD)"!="1"
  2801. # {{ Beginning of block POST_BLD != 1 }}
  2802. #
  2803. # Make Process for OLDNAMES.LIB
  2804. #
  2805. ###############################################################################
  2806. # For each of these .obj files there will also be an .obi file which
  2807. # contains an alias for the indirect (import) form.
  2808. #
  2809. # Break up OLDNAMES_SHORT_OBJECTS into two macros since nmake macro
  2810. # substitution chokes on long macro. Use the suffix ".object" and
  2811. # then substitute .obj and .obi for the regular aliases (.obj) and
  2812. # __imp__ aliases (.obi). The directory name may contain ".obj",
  2813. # so we must be careful about what gets substituted.
  2814. ALIASEXE=libw32\tools\$(HOST_CPU)\aliasobj.exe
  2815. OLDNAMES_SHORT_OBJECTS1 = \
  2816. $(OBJDIR_OLDNAMES)\cgets.object \
  2817. $(OBJDIR_OLDNAMES)\cprintf.object \
  2818. $(OBJDIR_OLDNAMES)\cputs.object \
  2819. $(OBJDIR_OLDNAMES)\cscanf.object \
  2820. $(OBJDIR_OLDNAMES)\daylight.object \
  2821. $(OBJDIR_OLDNAMES)\environ.object \
  2822. $(OBJDIR_OLDNAMES)\getch.object \
  2823. $(OBJDIR_OLDNAMES)\fpreset.object \
  2824. $(OBJDIR_OLDNAMES)\getche.object \
  2825. $(OBJDIR_OLDNAMES)\kbhit.object \
  2826. $(OBJDIR_OLDNAMES)\putch.object \
  2827. $(OBJDIR_OLDNAMES)\ungetch.object \
  2828. $(OBJDIR_OLDNAMES)\chdir.object \
  2829. $(OBJDIR_OLDNAMES)\getcwd.object \
  2830. $(OBJDIR_OLDNAMES)\mkdir.object \
  2831. $(OBJDIR_OLDNAMES)\rmdir.object \
  2832. $(OBJDIR_OLDNAMES)\access.object \
  2833. $(OBJDIR_OLDNAMES)\chmod.object \
  2834. $(OBJDIR_OLDNAMES)\chsize.object \
  2835. $(OBJDIR_OLDNAMES)\close.object \
  2836. $(OBJDIR_OLDNAMES)\creat.object \
  2837. $(OBJDIR_OLDNAMES)\dup2.object \
  2838. $(OBJDIR_OLDNAMES)\eof.object \
  2839. $(OBJDIR_OLDNAMES)\isatty.object \
  2840. $(OBJDIR_OLDNAMES)\locking.object \
  2841. $(OBJDIR_OLDNAMES)\lseek.object \
  2842. $(OBJDIR_OLDNAMES)\mktemp.object \
  2843. $(OBJDIR_OLDNAMES)\open.object \
  2844. $(OBJDIR_OLDNAMES)\read.object \
  2845. $(OBJDIR_OLDNAMES)\setmode.object \
  2846. $(OBJDIR_OLDNAMES)\sopen.object \
  2847. $(OBJDIR_OLDNAMES)\sys_nerr.object \
  2848. $(OBJDIR_OLDNAMES)\tell.object \
  2849. $(OBJDIR_OLDNAMES)\umask.object \
  2850. $(OBJDIR_OLDNAMES)\unlink.object \
  2851. $(OBJDIR_OLDNAMES)\write.object \
  2852. $(OBJDIR_OLDNAMES)\memccpy.object \
  2853. $(OBJDIR_OLDNAMES)\memicmp.object \
  2854. $(OBJDIR_OLDNAMES)\cwait.object
  2855. OLDNAMES_SHORT_OBJECTS2 = \
  2856. $(OBJDIR_OLDNAMES)\execl.object \
  2857. $(OBJDIR_OLDNAMES)\execle.object \
  2858. $(OBJDIR_OLDNAMES)\execlp.object \
  2859. $(OBJDIR_OLDNAMES)\execlpe.object \
  2860. $(OBJDIR_OLDNAMES)\execv.object \
  2861. $(OBJDIR_OLDNAMES)\execve.object \
  2862. $(OBJDIR_OLDNAMES)\execvp.object \
  2863. $(OBJDIR_OLDNAMES)\execvpe.object \
  2864. $(OBJDIR_OLDNAMES)\getpid.object \
  2865. $(OBJDIR_OLDNAMES)\spawnl.object \
  2866. $(OBJDIR_OLDNAMES)\spawnle.object \
  2867. $(OBJDIR_OLDNAMES)\spawnlp.object \
  2868. $(OBJDIR_OLDNAMES)\spawnlpe.object \
  2869. $(OBJDIR_OLDNAMES)\spawnv.object \
  2870. $(OBJDIR_OLDNAMES)\spawnve.object \
  2871. $(OBJDIR_OLDNAMES)\spawnvp.object \
  2872. $(OBJDIR_OLDNAMES)\spawnvpe.object \
  2873. $(OBJDIR_OLDNAMES)\lfind.object \
  2874. $(OBJDIR_OLDNAMES)\lsearch.object \
  2875. $(OBJDIR_OLDNAMES)\ecvt.object \
  2876. $(OBJDIR_OLDNAMES)\fcvt.object \
  2877. $(OBJDIR_OLDNAMES)\gcvt.object \
  2878. $(OBJDIR_OLDNAMES)\HUGE.object \
  2879. $(OBJDIR_OLDNAMES)\cabs.object \
  2880. $(OBJDIR_OLDNAMES)\hypot.object \
  2881. $(OBJDIR_OLDNAMES)\j0.object \
  2882. $(OBJDIR_OLDNAMES)\j1.object \
  2883. $(OBJDIR_OLDNAMES)\jn.object \
  2884. $(OBJDIR_OLDNAMES)\y0.object \
  2885. $(OBJDIR_OLDNAMES)\y1.object \
  2886. $(OBJDIR_OLDNAMES)\yn.object \
  2887. $(OBJDIR_OLDNAMES)\itoa.object \
  2888. $(OBJDIR_OLDNAMES)\ltoa.object \
  2889. $(OBJDIR_OLDNAMES)\onexit.object \
  2890. $(OBJDIR_OLDNAMES)\putenv.object \
  2891. $(OBJDIR_OLDNAMES)\swab.object \
  2892. $(OBJDIR_OLDNAMES)\ultoa.object \
  2893. $(OBJDIR_OLDNAMES)\fdopen.object \
  2894. $(OBJDIR_OLDNAMES)\fgetchar.object \
  2895. $(OBJDIR_OLDNAMES)\fileno.object \
  2896. $(OBJDIR_OLDNAMES)\flushall.object \
  2897. $(OBJDIR_OLDNAMES)\fputchar.object \
  2898. $(OBJDIR_OLDNAMES)\getw.object \
  2899. $(OBJDIR_OLDNAMES)\putw.object \
  2900. $(OBJDIR_OLDNAMES)\rmtmp.object \
  2901. $(OBJDIR_OLDNAMES)\tempnam.object \
  2902. $(OBJDIR_OLDNAMES)\strcmpi.object \
  2903. $(OBJDIR_OLDNAMES)\stricmp.object \
  2904. $(OBJDIR_OLDNAMES)\strdup.object \
  2905. $(OBJDIR_OLDNAMES)\strlwr.object \
  2906. $(OBJDIR_OLDNAMES)\strnicmp.object \
  2907. $(OBJDIR_OLDNAMES)\strnset.object \
  2908. $(OBJDIR_OLDNAMES)\strrev.object \
  2909. $(OBJDIR_OLDNAMES)\strset.object \
  2910. $(OBJDIR_OLDNAMES)\strupr.object \
  2911. $(OBJDIR_OLDNAMES)\fstat.object \
  2912. $(OBJDIR_OLDNAMES)\stat.object \
  2913. $(OBJDIR_OLDNAMES)\ftime.object \
  2914. $(OBJDIR_OLDNAMES)\timezone.object \
  2915. $(OBJDIR_OLDNAMES)\tzname.object \
  2916. $(OBJDIR_OLDNAMES)\tzset.object \
  2917. $(OBJDIR_OLDNAMES)\utime.object \
  2918. $(OBJDIR_OLDNAMES)\dup.object \
  2919. $(OBJDIR_OLDNAMES)\wcsdup.object \
  2920. $(OBJDIR_OLDNAMES)\wcsicmp.object \
  2921. $(OBJDIR_OLDNAMES)\wcsnicmp.object \
  2922. $(OBJDIR_OLDNAMES)\wcsnset.object \
  2923. $(OBJDIR_OLDNAMES)\wcsrev.object \
  2924. $(OBJDIR_OLDNAMES)\wcsset.object \
  2925. $(OBJDIR_OLDNAMES)\wcslwr.object \
  2926. $(OBJDIR_OLDNAMES)\wcsupr.object \
  2927. $(OBJDIR_OLDNAMES)\wcsicoll.object \
  2928. OLDNAMES_LONG_OBJECTS = \
  2929. $(OBJDIR_OLDNAMES)\fileleng.object \
  2930. $(OBJDIR_OLDNAMES)\serrlist.object \
  2931. $(OBJDIR_OLDNAMES)\ctrl87.object \
  2932. $(OBJDIR_OLDNAMES)\fcloseal.object
  2933. OLDNAMES_SHORT_OBJECTS = $(OLDNAMES_SHORT_OBJECTS1) $(OLDNAMES_SHORT_OBJECTS2)
  2934. $(OLDNAMES_SHORT_OBJECTS:.object=.obj): $(ALIASEXE)
  2935. $(ALIASEXE) $(PREFIX)$(@B) $(PREFIX)_$(@B) $@
  2936. $(ALIASEXE) __imp_$(IMP_PREFIX)$(@B) __imp_$(IMP_PREFIX)_$(@B) $*.obi
  2937. !if "$(TARGET_CPU)"=="IA64"
  2938. $(ALIASEXE) $(@B) _$(@B) $*.obf
  2939. !endif
  2940. #
  2941. # special handling of ones with names longer than a valid FAT filename ...
  2942. #
  2943. $(OBJDIR_OLDNAMES)\fileleng.obj: $(ALIASEXE)
  2944. $(ALIASEXE) $(PREFIX)filelength $(PREFIX)_filelength $@
  2945. $(ALIASEXE) __imp_$(IMP_PREFIX)filelength __imp_$(IMP_PREFIX)_filelength $*.obi
  2946. !if "$(TARGET_CPU)"=="IA64"
  2947. $(ALIASEXE) filelength _filelength $*.obf
  2948. !endif
  2949. $(OBJDIR_OLDNAMES)\fcloseal.obj: $(ALIASEXE)
  2950. $(ALIASEXE) $(PREFIX)fcloseall $(PREFIX)_fcloseall $@
  2951. $(ALIASEXE) __imp_$(IMP_PREFIX)fcloseall __imp_$(IMP_PREFIX)_fcloseall $*.obi
  2952. !if "$(TARGET_CPU)"=="IA64"
  2953. $(ALIASEXE) fcloseall _fcloseall $*.obf
  2954. !endif
  2955. $(OBJDIR_OLDNAMES)\ctrl87.obj: $(ALIASEXE)
  2956. $(ALIASEXE) $(PREFIX)control87 $(PREFIX)_control87 $@
  2957. $(ALIASEXE) __imp_$(IMP_PREFIX)control87 __imp_$(IMP_PREFIX)_control87 $*.obi
  2958. !if "$(TARGET_CPU)"=="IA64"
  2959. $(ALIASEXE) control87 _control87 $*.obf
  2960. !endif
  2961. $(OBJDIR_OLDNAMES)\serrlist.obj: $(ALIASEXE)
  2962. $(ALIASEXE) $(PREFIX)sys_errlist $(PREFIX)_sys_errlist $@
  2963. $(ALIASEXE) __imp_$(IMP_PREFIX)sys_errlist __imp_$(IMP_PREFIX)_sys_errlist $*.obi
  2964. !if "$(TARGET_CPU)"=="IA64"
  2965. $(ALIASEXE) sys_errlist _sys_errlist $*.obf
  2966. !endif
  2967. OLDNAMES_OBJECTS = $(OLDNAMES_SHORT_OBJECTS) $(OLDNAMES_LONG_OBJECTS)
  2968. OLDNAMES_OBJS = $(OLDNAMES_OBJECTS:.object=.obj)
  2969. OLDNAMES_OBIS = $(OLDNAMES_OBJECTS:.object=.obi)
  2970. !if "$(TARGET_CPU)"=="IA64"
  2971. OLDNAMES_OBFS = $(OLDNAMES_OBJECTS:.object=.obf)
  2972. !endif
  2973. $(RELEASE_OLDNAMES): $(RELDIR_CPU) $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST) \
  2974. $(OBJDIR_OLDNAMES) $(OLDNAMES_OBJS) \
  2975. !if "$(BLD_OBJ)"!="1"
  2976. $(OLDNAMES_OBIS) $(OBJDIR_OLDNAMES)\oldnames.rsp
  2977. $(LINKLIB) -out:$@ @$(OBJDIR_OLDNAMES)\oldnames.rsp
  2978. $(OBJDIR_OLDNAMES)\oldnames.rsp: makefile
  2979. @echo *** Creating linker response file <<$@
  2980. $(OLDNAMES_OBJS: =^
  2981. )
  2982. $(OLDNAMES_OBIS: =^
  2983. )
  2984. !if "$(TARGET_CPU)"=="IA64"
  2985. $(OLDNAMES_OBFS: =^
  2986. )
  2987. !endif
  2988. <<keep
  2989. !endif
  2990. #
  2991. # Make Process for SDKNAMES.LIB
  2992. # (internal use only -- this gets lib'ed in with the DLL model)
  2993. #
  2994. ###############################################################################
  2995. # -----------------------------------------------------------------------
  2996. # SDKNAMES.LIB build rules - SDKNAMES contains aliases for
  2997. # variables exported by CRTDLL.DLL (most with _dll suffixes)
  2998. # which have _imp__ prefixes instead in MSVCRT*.DLL.
  2999. # -----------------------------------------------------------------------
  3000. SDKNAMES_SHORT_OBJECTS = \
  3001. $(OBJDIR_SDKNAMES)\_argc.obj \
  3002. $(OBJDIR_SDKNAMES)\_argv.obj \
  3003. $(OBJDIR_SDKNAMES)\commode.obj \
  3004. $(OBJDIR_SDKNAMES)\daylight.obj \
  3005. $(OBJDIR_SDKNAMES)\environ.obj \
  3006. $(OBJDIR_SDKNAMES)\fmode.obj \
  3007. $(OBJDIR_SDKNAMES)\HUGE.obj \
  3008. $(OBJDIR_SDKNAMES)\osver.obj \
  3009. $(OBJDIR_SDKNAMES)\pctype.obj \
  3010. $(OBJDIR_SDKNAMES)\pwctype.obj \
  3011. $(OBJDIR_SDKNAMES)\pgmptr.obj \
  3012. $(OBJDIR_SDKNAMES)\sys_nerr.obj \
  3013. $(OBJDIR_SDKNAMES)\timezone.obj \
  3014. $(OBJDIR_SDKNAMES)\winver.obj \
  3015. $(OBJDIR_SDKNAMES)\winmajor.obj \
  3016. $(OBJDIR_SDKNAMES)\winminor.obj
  3017. SDKNAMES_LONG_OBJECTS = \
  3018. $(OBJDIR_SDKNAMES)\mbcurmax.obj \
  3019. $(OBJDIR_SDKNAMES)\syserlst.obj
  3020. SDKNAMES_SPECIAL_CASES = \
  3021. $(OBJDIR_SDKNAMES)\ctype.obj \
  3022. $(OBJDIR_SDKNAMES)\iob.obj \
  3023. $(OBJDIR_SDKNAMES)\tzname.obj
  3024. $(SDKNAMES_SHORT_OBJECTS): $(ALIASEXE)
  3025. $(ALIASEXE) $(PREFIX)_$(@B)_dll __imp_$(IMP_PREFIX)_$(@B) $@
  3026. #
  3027. # special handling of ones with names longer than a valid FAT filename ...
  3028. #
  3029. $(OBJDIR_SDKNAMES)\mbcurmax.obj: $(ALIASEXE)
  3030. $(ALIASEXE) $(PREFIX)__mb_cur_max_dll __imp_$(IMP_PREFIX)__mb_cur_max $@
  3031. #
  3032. # sys_errlist is a 'special case' as well as a long name
  3033. #
  3034. $(OBJDIR_SDKNAMES)\syserlst.obj: $(ALIASEXE)
  3035. $(ALIASEXE) $(PREFIX)_sys_errlist __imp_$(IMP_PREFIX)_sys_errlist $@
  3036. #
  3037. # special handling of symbols without a "_dll" suffix in the NT SDK Headers
  3038. #
  3039. $(SDKNAMES_SPECIAL_CASES): $(ALIASEXE)
  3040. $(ALIASEXE) $(PREFIX)_$(@B) __imp_$(IMP_PREFIX)_$(@B) $@
  3041. SDKNAMES_OBJECTS = $(SDKNAMES_SHORT_OBJECTS) $(SDKNAMES_LONG_OBJECTS) \
  3042. $(SDKNAMES_SPECIAL_CASES)
  3043. $(SDKNAMESLIB_DIR)\sdknames.lib: $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_DLL) \
  3044. $(OBJDIR_SDKNAMES) $(SDKNAMES_OBJECTS) \
  3045. !if "$(BLD_OBJ)"!="1"
  3046. $(OBJDIR_SDKNAMES)\sdknames.rsp
  3047. $(LINKLIB) -out:$@ @$(OBJDIR_SDKNAMES)\sdknames.rsp
  3048. $(OBJDIR_SDKNAMES)\sdknames.rsp: makefile
  3049. @echo *** Creating linker response file <<$@
  3050. $(SDKNAMES_OBJECTS: =^
  3051. )
  3052. <<keep
  3053. !endif
  3054. #
  3055. # Make Process for TCMAP.LIB and TCMAPDLL.LIB
  3056. # (internal use only -- this gets lib'ed in with the DLL model)
  3057. #
  3058. ###############################################################################
  3059. # -----------------------------------------------------------------------
  3060. # ALMAP.LIB and ALMAPDLL.LIB build rules - ALMAP contains aliases for
  3061. # functions that are have same code.
  3062. #
  3063. # Use the suffix ".object" and then substitute .obj and .obf for the
  3064. # regular alias (.obj). The directory name may contain ".obj",
  3065. # so we must be careful about what gets substituted ???
  3066. # -----------------------------------------------------------------------
  3067. ALMAP_SPECIAL_OBJECTS = \
  3068. $(OBJDIR_ALMAP)\mbcat.object \
  3069. $(OBJDIR_ALMAP)\mbcpy.object \
  3070. $(OBJDIR_ALMAP)\strcmpi.object \
  3071. $(OBJDIR_ALMAP)\mbdup.object
  3072. # _tcsn -> _mbsnb
  3073. $(OBJDIR_ALMAP)\mbcat.obj: $(ALIASEXE)
  3074. $(ALIASEXE) $(PREFIX)_mbscat $(PREFIX)strcat $@
  3075. !if "$(TARGET_CPU)"=="IA64"
  3076. $(ALIASEXE) _mbscat strcat $*.obf
  3077. !endif
  3078. $(OBJDIR_ALMAP)\mbcpy.obj: $(ALIASEXE)
  3079. $(ALIASEXE) $(PREFIX)_mbscpy $(PREFIX)strcpy $@
  3080. !if "$(TARGET_CPU)"=="IA64"
  3081. $(ALIASEXE) _mbscpy strcpy $*.obf
  3082. !endif
  3083. # _tcs[n]c -> _mbs[n]
  3084. $(OBJDIR_ALMAP)\strcmpi.obj: $(ALIASEXE)
  3085. $(ALIASEXE) $(PREFIX)_strcmpi $(PREFIX)_stricmp $@
  3086. !if "$(TARGET_CPU)"=="IA64"
  3087. $(ALIASEXE) _strcmpi _stricmp $*.obf
  3088. !endif
  3089. $(OBJDIR_ALMAP)\mbdup.obj: $(ALIASEXE)
  3090. $(ALIASEXE) $(PREFIX)_mbsdup $(PREFIX)_strdup $@
  3091. !if "$(TARGET_CPU)"=="IA64"
  3092. $(ALIASEXE) _mbsdup strdup $*.obf
  3093. !endif
  3094. ALMAP_OBJECTS = $(ALMAP_NORMAL_OBJECTS) $(ALMAP_SPECIAL_OBJECTS)
  3095. ALMAP_OBJS = $(ALMAP_OBJECTS:.object=.obj)
  3096. !if "$(TARGET_CPU)"=="IA64"
  3097. ALMAP_OBFS = $(ALMAP_OBJECTS:.object=.obf)
  3098. !endif
  3099. $(ALMAPLIB_DIR)\almap.lib: $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST) \
  3100. $(OBJDIR_ALMAP) $(ALMAP_OBJS) \
  3101. !if "$(TARGET_CPU)"=="IA64"
  3102. $(ALMAP_OBFS) \
  3103. !endif
  3104. !if "$(BLD_OBJ)"!="1"
  3105. $(OBJDIR_ALMAP)\almap.rsp
  3106. $(LINKLIB) -out:$@ @$(OBJDIR_ALMAP)\almap.rsp
  3107. $(OBJDIR_ALMAP)\almap.rsp: makefile
  3108. @echo *** Creating linker response file <<$@
  3109. $(ALMAP_OBJS: =^
  3110. )
  3111. !if "$(TARGET_CPU)"=="IA64"
  3112. $(ALMAP_OBFS: =^
  3113. )
  3114. !endif
  3115. <<keep
  3116. !endif
  3117. # -----------------------------------------------------------------------
  3118. # TCMAP.LIB and TCMAPDLL.LIB build rules - TCMAP contains aliases for
  3119. # mbs functions that are needed by tchar.h:
  3120. #
  3121. # when _MBCS is defined, TCHAR maps to "char *"
  3122. # but the _mbs functions are defined for "unsigned char *"
  3123. # so we map the _tcs functions to the _mbs functions
  3124. #
  3125. # Use the suffix ".object" and then substitute .obj and .obf for the
  3126. # regular alias (.obj). The directory name may contain ".obj",
  3127. # so we must be careful about what gets substituted ???
  3128. # -----------------------------------------------------------------------
  3129. TCMAP_NORMAL_OBJECTS = \
  3130. $(OBJDIR_TCMAP)\chr.object \
  3131. $(OBJDIR_TCMAP)\cspn.object \
  3132. $(OBJDIR_TCMAP)\pbrk.object \
  3133. $(OBJDIR_TCMAP)\rchr.object \
  3134. $(OBJDIR_TCMAP)\spn.object \
  3135. $(OBJDIR_TCMAP)\str.object \
  3136. $(OBJDIR_TCMAP)\tok.object \
  3137. $(OBJDIR_TCMAP)\rev.object \
  3138. $(OBJDIR_TCMAP)\set.object \
  3139. $(OBJDIR_TCMAP)\dec.object \
  3140. $(OBJDIR_TCMAP)\inc.object \
  3141. $(OBJDIR_TCMAP)\nbcnt.object \
  3142. $(OBJDIR_TCMAP)\nccnt.object \
  3143. $(OBJDIR_TCMAP)\nextc.object \
  3144. $(OBJDIR_TCMAP)\ninc.object \
  3145. $(OBJDIR_TCMAP)\spnp.object \
  3146. $(OBJDIR_TCMAP)\lwr.object \
  3147. $(OBJDIR_TCMAP)\upr.object \
  3148. $(OBJDIR_TCMAP)\cmp.object \
  3149. $(OBJDIR_TCMAP)\icmp.object \
  3150. $(OBJDIR_TCMAP)\coll.object \
  3151. $(OBJDIR_TCMAP)\icoll.object
  3152. $(TCMAP_NORMAL_OBJECTS:.object=.obj): $(ALIASEXE)
  3153. $(ALIASEXE) $(PREFIX)_tcs$(@B) $(PREFIX)_mbs$(@B) $@
  3154. !if "$(TARGET_CPU)"=="IA64"
  3155. $(ALIASEXE) _tcs$(@B) _mbs$(@B) $*.obf
  3156. !endif
  3157. TCMAP_SPECIAL_OBJECTS = \
  3158. $(OBJDIR_TCMAP)\len.object \
  3159. $(OBJDIR_TCMAP)\_mbclen.object \
  3160. $(OBJDIR_TCMAP)\_mbscpy.object \
  3161. $(OBJDIR_TCMAP)\nbcat.object \
  3162. $(OBJDIR_TCMAP)\nbcmp.object \
  3163. $(OBJDIR_TCMAP)\nbcoll.object \
  3164. $(OBJDIR_TCMAP)\nbcpy.object \
  3165. $(OBJDIR_TCMAP)\nbicmp.object \
  3166. $(OBJDIR_TCMAP)\nbicoll.object \
  3167. $(OBJDIR_TCMAP)\nbset.object \
  3168. $(OBJDIR_TCMAP)\ncat.object \
  3169. $(OBJDIR_TCMAP)\ncmp.object \
  3170. $(OBJDIR_TCMAP)\ncoll.object \
  3171. $(OBJDIR_TCMAP)\ncpy.object \
  3172. $(OBJDIR_TCMAP)\nicmp.object \
  3173. $(OBJDIR_TCMAP)\nicoll.object \
  3174. $(OBJDIR_TCMAP)\nset.object \
  3175. $(OBJDIR_TCMAP)\mbslen.object
  3176. # _tcsn -> _mbsnb
  3177. $(OBJDIR_TCMAP)\nbcat.obj: $(ALIASEXE)
  3178. $(ALIASEXE) $(PREFIX)_tcsncat $(PREFIX)_mbsnbcat $@
  3179. !if "$(TARGET_CPU)"=="IA64"
  3180. $(ALIASEXE) _tcsncat _mbsnbcat $*.obf
  3181. !endif
  3182. $(OBJDIR_TCMAP)\nbcoll.obj: $(ALIASEXE)
  3183. $(ALIASEXE) $(PREFIX)_tcsncoll $(PREFIX)_mbsnbcoll $@
  3184. !if "$(TARGET_CPU)"=="IA64"
  3185. $(ALIASEXE) _tcsncoll _mbsnbcoll $*.obf
  3186. !endif
  3187. $(OBJDIR_TCMAP)\nbcpy.obj: $(ALIASEXE)
  3188. $(ALIASEXE) $(PREFIX)_tcsncpy $(PREFIX)_mbsnbcpy $@
  3189. !if "$(TARGET_CPU)"=="IA64"
  3190. $(ALIASEXE) _tcsncpy _mbsnbcpy $*.obf
  3191. !endif
  3192. $(OBJDIR_TCMAP)\nbicmp.obj: $(ALIASEXE)
  3193. $(ALIASEXE) $(PREFIX)_tcsnicmp $(PREFIX)_mbsnbicmp $@
  3194. !if "$(TARGET_CPU)"=="IA64"
  3195. $(ALIASEXE) _tcsnicmp _mbsnbicmp $*.obf
  3196. !endif
  3197. $(OBJDIR_TCMAP)\nbicoll.obj: $(ALIASEXE)
  3198. $(ALIASEXE) $(PREFIX)_tcsnicoll $(PREFIX)_mbsnbicoll $@
  3199. !if "$(TARGET_CPU)"=="IA64"
  3200. $(ALIASEXE) _tcsnicoll _mbsnbicoll $*.obf
  3201. !endif
  3202. $(OBJDIR_TCMAP)\nbset.obj: $(ALIASEXE)
  3203. $(ALIASEXE) $(PREFIX)_tcsnset $(PREFIX)_mbsnbset $@
  3204. !if "$(TARGET_CPU)"=="IA64"
  3205. $(ALIASEXE) _tcsnset _mbsnbset $*.obf
  3206. !endif
  3207. $(OBJDIR_TCMAP)\nbcmp.obj: $(ALIASEXE)
  3208. $(ALIASEXE) $(PREFIX)_tcsncmp $(PREFIX)_mbsnbcmp $@
  3209. !if "$(TARGET_CPU)"=="IA64"
  3210. $(ALIASEXE) _tcsncmp _mbsnbcmp $*.obf
  3211. !endif
  3212. # _tcs[n]c -> _mbs[n]
  3213. $(OBJDIR_TCMAP)\len.obj: $(ALIASEXE)
  3214. $(ALIASEXE) $(PREFIX)_tcsclen $(PREFIX)_mbslen $@
  3215. !if "$(TARGET_CPU)"=="IA64"
  3216. $(ALIASEXE) _tcsclen _mbslen $*.obf
  3217. !endif
  3218. $(OBJDIR_TCMAP)\ncat.obj: $(ALIASEXE)
  3219. $(ALIASEXE) $(PREFIX)_tcsnccat $(PREFIX)_mbsncat $@
  3220. !if "$(TARGET_CPU)"=="IA64"
  3221. $(ALIASEXE) _tcsncat _mbsnbcat $*.obf
  3222. !endif
  3223. $(OBJDIR_TCMAP)\ncmp.obj: $(ALIASEXE)
  3224. $(ALIASEXE) $(PREFIX)_tcsnccmp $(PREFIX)_mbsncmp $@
  3225. !if "$(TARGET_CPU)"=="IA64"
  3226. $(ALIASEXE) _tcsnccmp _mbsncmp $*.obf
  3227. !endif
  3228. $(OBJDIR_TCMAP)\ncoll.obj: $(ALIASEXE)
  3229. $(ALIASEXE) $(PREFIX)_tcsnccoll $(PREFIX)_mbsncoll $@
  3230. !if "$(TARGET_CPU)"=="IA64"
  3231. $(ALIASEXE) _tcsnccoll _mbsncoll $*.obf
  3232. !endif
  3233. $(OBJDIR_TCMAP)\ncpy.obj: $(ALIASEXE)
  3234. $(ALIASEXE) $(PREFIX)_tcsnccpy $(PREFIX)_mbsncpy $@
  3235. !if "$(TARGET_CPU)"=="IA64"
  3236. $(ALIASEXE) _tcsnccpy _mbsnbcccpy $*.obf
  3237. !endif
  3238. $(OBJDIR_TCMAP)\nicmp.obj: $(ALIASEXE)
  3239. $(ALIASEXE) $(PREFIX)_tcsncicmp $(PREFIX)_mbsnicmp $@
  3240. !if "$(TARGET_CPU)"=="IA64"
  3241. $(ALIASEXE) _tcsncicmp _mbsnicmp $*.obf
  3242. !endif
  3243. $(OBJDIR_TCMAP)\nicoll.obj: $(ALIASEXE)
  3244. $(ALIASEXE) $(PREFIX)_tcsncicoll $(PREFIX)_mbsnicoll $@
  3245. !if "$(TARGET_CPU)"=="IA64"
  3246. $(ALIASEXE) _tcsncicoll _mbsnicoll $*.obf
  3247. !endif
  3248. $(OBJDIR_TCMAP)\nset.obj: $(ALIASEXE)
  3249. $(ALIASEXE) $(PREFIX)_tcsncset $(PREFIX)_mbsnset $@
  3250. !if "$(TARGET_CPU)"=="IA64"
  3251. $(ALIASEXE) _tcsncset _mbsnset $*.obf
  3252. !endif
  3253. # _tcslen -> _mbslen
  3254. $(OBJDIR_TCMAP)\mbslen.obj: $(ALIASEXE)
  3255. $(ALIASEXE) $(PREFIX)_tcslen $(PREFIX)_mbslen $@
  3256. !if "$(TARGET_CPU)"=="IA64"
  3257. $(ALIASEXE) _tcslen _mbslen $*.obf
  3258. !endif
  3259. # character functions
  3260. $(OBJDIR_TCMAP)\_mbclen.obj: $(ALIASEXE)
  3261. $(ALIASEXE) $(PREFIX)_tclen $(PREFIX)_mbclen $@
  3262. !if "$(TARGET_CPU)"=="IA64"
  3263. $(ALIASEXE) _tclen _mbclen $*.obf
  3264. !endif
  3265. $(OBJDIR_TCMAP)\_mbscpy.obj: $(ALIASEXE)
  3266. $(ALIASEXE) $(PREFIX)_tccpy $(PREFIX)_mbccpy $@
  3267. !if "$(TARGET_CPU)"=="IA64"
  3268. $(ALIASEXE) _tccpy _mbccpy $*.obf
  3269. !endif
  3270. TCMAP_OBJECTS = $(TCMAP_NORMAL_OBJECTS) $(TCMAP_SPECIAL_OBJECTS)
  3271. TCMAP_OBJS = $(TCMAP_OBJECTS:.object=.obj)
  3272. !if "$(TARGET_CPU)"=="IA64"
  3273. TCMAP_OBFS = $(TCMAP_OBJECTS:.object=.obf)
  3274. !endif
  3275. $(TCMAPLIB_DIR)\tcmap.lib: $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_ST) \
  3276. $(OBJDIR_TCMAP) $(TCMAP_OBJS) \
  3277. !if "$(TARGET_CPU)"=="IA64"
  3278. $(TCMAP_OBFS) \
  3279. !endif
  3280. !if "$(BLD_OBJ)"!="1"
  3281. $(OBJDIR_TCMAP)\tcmap.rsp
  3282. $(LINKLIB) -out:$@ @$(OBJDIR_TCMAP)\tcmap.rsp
  3283. $(OBJDIR_TCMAP)\tcmap.rsp: makefile
  3284. @echo *** Creating linker response file <<$@
  3285. $(TCMAP_OBJS: =^
  3286. )
  3287. !if "$(TARGET_CPU)"=="IA64"
  3288. $(TCMAP_OBFS: =^
  3289. )
  3290. !endif
  3291. <<keep
  3292. !endif
  3293. TCMAPDLL_NORMAL_OBJECTS = \
  3294. $(OBJDIR_TCMAPDLL)\chr.obj \
  3295. $(OBJDIR_TCMAPDLL)\cspn.obj \
  3296. $(OBJDIR_TCMAPDLL)\pbrk.obj \
  3297. $(OBJDIR_TCMAPDLL)\rchr.obj \
  3298. $(OBJDIR_TCMAPDLL)\spn.obj \
  3299. $(OBJDIR_TCMAPDLL)\str.obj \
  3300. $(OBJDIR_TCMAPDLL)\tok.obj \
  3301. $(OBJDIR_TCMAPDLL)\rev.obj \
  3302. $(OBJDIR_TCMAPDLL)\set.obj \
  3303. $(OBJDIR_TCMAPDLL)\dec.obj \
  3304. $(OBJDIR_TCMAPDLL)\inc.obj \
  3305. $(OBJDIR_TCMAPDLL)\nbcnt.obj \
  3306. $(OBJDIR_TCMAPDLL)\nccnt.obj \
  3307. $(OBJDIR_TCMAPDLL)\nextc.obj \
  3308. $(OBJDIR_TCMAPDLL)\ninc.obj \
  3309. $(OBJDIR_TCMAPDLL)\spnp.obj \
  3310. $(OBJDIR_TCMAPDLL)\lwr.obj \
  3311. $(OBJDIR_TCMAPDLL)\upr.obj \
  3312. $(OBJDIR_TCMAPDLL)\cmp.obj \
  3313. $(OBJDIR_TCMAPDLL)\icmp.obj \
  3314. $(OBJDIR_TCMAPDLL)\coll.obj \
  3315. $(OBJDIR_TCMAPDLL)\icoll.obj
  3316. $(TCMAPDLL_NORMAL_OBJECTS): $(ALIASEXE)
  3317. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcs$(@B) __imp_$(IMP_PREFIX)_mbs$(@B) $@
  3318. TCMAPDLL_SPECIAL_OBJECTS = \
  3319. $(OBJDIR_TCMAPDLL)\len.obj \
  3320. $(OBJDIR_TCMAPDLL)\_mbclen.obj \
  3321. $(OBJDIR_TCMAPDLL)\_mbscpy.obj \
  3322. $(OBJDIR_TCMAPDLL)\nbcat.obj \
  3323. $(OBJDIR_TCMAPDLL)\nbcmp.obj \
  3324. $(OBJDIR_TCMAPDLL)\nbcoll.obj \
  3325. $(OBJDIR_TCMAPDLL)\nbcpy.obj \
  3326. $(OBJDIR_TCMAPDLL)\nbicmp.obj \
  3327. $(OBJDIR_TCMAPDLL)\nbicoll.obj \
  3328. $(OBJDIR_TCMAPDLL)\nbset.obj \
  3329. $(OBJDIR_TCMAPDLL)\ncat.obj \
  3330. $(OBJDIR_TCMAPDLL)\ncmp.obj \
  3331. $(OBJDIR_TCMAPDLL)\ncoll.obj \
  3332. $(OBJDIR_TCMAPDLL)\ncpy.obj \
  3333. $(OBJDIR_TCMAPDLL)\nicmp.obj \
  3334. $(OBJDIR_TCMAPDLL)\nicoll.obj \
  3335. $(OBJDIR_TCMAPDLL)\nset.obj \
  3336. $(OBJDIR_TCMAPDLL)\mbslen.obj
  3337. # _tcsn -> _mbsnb
  3338. $(OBJDIR_TCMAPDLL)\nbcat.obj: $(ALIASEXE)
  3339. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncat __imp_$(IMP_PREFIX)_mbsnbcat $@
  3340. $(OBJDIR_TCMAPDLL)\nbcoll.obj: $(ALIASEXE)
  3341. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncoll __imp_$(IMP_PREFIX)_mbsnbcoll $@
  3342. $(OBJDIR_TCMAPDLL)\nbcpy.obj: $(ALIASEXE)
  3343. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncpy __imp_$(IMP_PREFIX)_mbsnbcpy $@
  3344. $(OBJDIR_TCMAPDLL)\nbicmp.obj: $(ALIASEXE)
  3345. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnicmp __imp_$(IMP_PREFIX)_mbsnbicmp $@
  3346. $(OBJDIR_TCMAPDLL)\nbicoll.obj: $(ALIASEXE)
  3347. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnicoll __imp_$(IMP_PREFIX)_mbsnbicoll $@
  3348. $(OBJDIR_TCMAPDLL)\nbset.obj: $(ALIASEXE)
  3349. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnset __imp_$(IMP_PREFIX)_mbsnbset $@
  3350. $(OBJDIR_TCMAPDLL)\nbcmp.obj: $(ALIASEXE)
  3351. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncmp __imp_$(IMP_PREFIX)_mbsnbcmp $@
  3352. # _tcs[n]c -> _mbs[n]
  3353. $(OBJDIR_TCMAPDLL)\len.obj: $(ALIASEXE)
  3354. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsclen __imp_$(IMP_PREFIX)_mbslen $@
  3355. $(OBJDIR_TCMAPDLL)\ncat.obj: $(ALIASEXE)
  3356. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnccat __imp_$(IMP_PREFIX)_mbsncat $@
  3357. $(OBJDIR_TCMAPDLL)\ncmp.obj: $(ALIASEXE)
  3358. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnccmp __imp_$(IMP_PREFIX)_mbsncmp $@
  3359. $(OBJDIR_TCMAPDLL)\ncoll.obj: $(ALIASEXE)
  3360. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnccoll __imp_$(IMP_PREFIX)_mbsncoll $@
  3361. $(OBJDIR_TCMAPDLL)\ncpy.obj: $(ALIASEXE)
  3362. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsnccpy __imp_$(IMP_PREFIX)_mbsncpy $@
  3363. $(OBJDIR_TCMAPDLL)\nicmp.obj: $(ALIASEXE)
  3364. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncicmp __imp_$(IMP_PREFIX)_mbsnicmp $@
  3365. $(OBJDIR_TCMAPDLL)\nicoll.obj: $(ALIASEXE)
  3366. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncicoll __imp_$(IMP_PREFIX)_mbsnicoll $@
  3367. $(OBJDIR_TCMAPDLL)\nset.obj: $(ALIASEXE)
  3368. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcsncset __imp_$(IMP_PREFIX)_mbsnset $@
  3369. # _tcslen -> _mbslen
  3370. $(OBJDIR_TCMAPDLL)\mbslen.obj: $(ALIASEXE)
  3371. $(ALIASEXE) __imp_$(IMP_PREFIX)_tcslen __imp_$(IMP_PREFIX)_mbslen $@
  3372. # character functions
  3373. $(OBJDIR_TCMAPDLL)\_mbclen.obj: $(ALIASEXE)
  3374. $(ALIASEXE) __imp_$(IMP_PREFIX)_tclen __imp_$(IMP_PREFIX)_mbclen $@
  3375. $(OBJDIR_TCMAPDLL)\_mbscpy.obj: $(ALIASEXE)
  3376. $(ALIASEXE) __imp_$(IMP_PREFIX)_tccpy __imp_$(IMP_PREFIX)_mbccpy $@
  3377. TCMAPDLL_OBJECTS = $(TCMAPDLL_NORMAL_OBJECTS) $(TCMAPDLL_SPECIAL_OBJECTS)
  3378. $(TCMAPDLLLIB_DIR)\tcmapdll.lib: $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_DLL) \
  3379. $(OBJDIR_TCMAPDLL) $(TCMAPDLL_OBJECTS) \
  3380. !if "$(BLD_OBJ)"!="1"
  3381. $(OBJDIR_TCMAPDLL)\tcmapdll.rsp
  3382. $(LINKLIB) -out:$@ @$(OBJDIR_TCMAPDLL)\tcmapdll.rsp
  3383. $(OBJDIR_TCMAPDLL)\tcmapdll.rsp: makefile
  3384. @echo *** Creating linker response file <<$@
  3385. $(TCMAPDLL_OBJECTS: =^
  3386. )
  3387. <<keep
  3388. !endif
  3389. # {{ End of block POST_BLD != 1 }}
  3390. !endif
  3391. # ******** STRIPLIN=1 ********
  3392. ####
  3393. #
  3394. # Compiler Helper Library
  3395. #
  3396. ####
  3397. !if "$(POST_BLD)"=="1"
  3398. compiler_helper_lib: $(RELEASE_CHELPER)
  3399. CHELPER_OBJ= \
  3400. $(OBJDIR_DLL)\ehvccctr.obj \
  3401. $(OBJDIR_DLL)\ehvcccvb.obj \
  3402. $(OBJDIR_DLL)\ehvecctr.obj \
  3403. $(OBJDIR_DLL)\ehveccvb.obj \
  3404. $(OBJDIR_DLL)\ehvecdtr.obj \
  3405. $(RELDIR_CPU)\chkstk.obj \
  3406. !if "$(TARGET_CPU)"=="i386"
  3407. $(OBJDIR_DLL)\ehprolg2.obj \
  3408. $(OBJDIR_DLL)\ehprolog.obj \
  3409. $(OBJDIR_DLL)\fp8.obj \
  3410. $(OBJDIR_DLL)\ftol2.obj \
  3411. $(OBJDIR_DLL)\lldiv.obj \
  3412. $(OBJDIR_DLL)\lldvrm.obj \
  3413. $(OBJDIR_DLL)\llmul.obj \
  3414. $(OBJDIR_DLL)\llrem.obj \
  3415. $(OBJDIR_DLL)\llshl.obj \
  3416. $(OBJDIR_DLL)\llshr.obj \
  3417. $(OBJDIR_DLL)\loadcfg.obj \
  3418. $(OBJDIR_DLL)\seccinit.obj \
  3419. $(OBJDIR_DLL)\seccook.obj \
  3420. # ******** DLLRIPLIN=0 ********
  3421. !if "$(BLD_SYSCRT)" == "1"
  3422. $(OBJDIR_DLL)\seclocf.obj \
  3423. !endif
  3424. # ******** DLLRIPLIN=1 ********
  3425. $(OBJDIR_DLL)\sehprolg.obj \
  3426. $(OBJDIR_DLL)\ulldiv.obj \
  3427. $(OBJDIR_DLL)\ulldvrm.obj \
  3428. $(OBJDIR_DLL)\ullrem.obj \
  3429. $(OBJDIR_DLL)\ullshr.obj \
  3430. !elseif "$(TARGET_CPU)"=="IA64"
  3431. $(OBJDIR_DLL)\divhelp.obj \
  3432. $(OBJDIR_DLL)\memcpy.obj \
  3433. $(OBJDIR_DLL)\memcpyi.obj \
  3434. $(OBJDIR_DLL)\memmove.obj \
  3435. $(OBJDIR_DLL)\memset.obj \
  3436. $(OBJDIR_DLL)\memseti.obj \
  3437. !endif
  3438. $(RELEASE_CHELPER): $(RELDIR_CPU) $(CHELPER_OBJ) $(OBJDIR_DLL)\chelplnk.rsp
  3439. $(LINKLIB) -out:$@ @$(OBJDIR_DLL)\chelplnk.rsp
  3440. $(OBJDIR_DLL)\chelplnk.rsp: makefile
  3441. @echo *** Creating linker response file <<$@
  3442. $(CHELPER_OBJ)
  3443. <<keep
  3444. !else
  3445. compiler_helper_lib:
  3446. !endif
  3447. ####
  3448. #
  3449. # Release objects
  3450. #
  3451. ####
  3452. # ******** STRIPLIN=0 ********
  3453. !if "$(PRE_BLD)"=="1" || "$(BLD_OBJ)"=="1"
  3454. relobjs: \
  3455. !if "$(RTC)"=="YES"
  3456. $(RELDIR_CPU)\runtmchk.lib
  3457. !endif
  3458. !else
  3459. # ******** STRIPLIN=1 ********
  3460. !if "$(POST_BLD)"=="1" && "$(BLD_OBJ)"=="1"
  3461. relobjs:
  3462. !else
  3463. relobjs: \
  3464. !if "$(TARGET_CPU)"=="i386"
  3465. $(RELDIR_CPU)\fp10.obj \
  3466. !endif
  3467. $(RELDIR_CPU)\binmode.obj \
  3468. $(RELDIR_CPU)\chkstk.obj \
  3469. $(RELDIR_CPU)\newmode.obj \
  3470. $(RELDIR_CPU)\noarg.obj \
  3471. $(RELDIR_CPU)\noenv.obj \
  3472. $(RELDIR_CPU)\setargv.obj \
  3473. $(RELDIR_CPU)\smalheap.obj \
  3474. $(RELDIR_CPU)\wsetargv.obj \
  3475. $(RELDIR_CPU)\commode.obj \
  3476. $(RELDIR_CPU)\thrownew.obj
  3477. !endif # STRIPLIN!
  3478. !endif
  3479. $(RELDIR_CPU)\binmode.obj: $(OBJDIR_ST)\binmode.obj
  3480. copy $** $@ >NUL
  3481. $(RELDIR_CPU)\chkstk.obj: $(OBJDIR_ST)\chkstk.obj
  3482. copy $** $@ >NUL
  3483. $(RELDIR_CPU)\commode.obj: $(OBJDIR_ST)\commode.obj
  3484. copy $** $@ >NUL
  3485. $(RELDIR_CPU)\newmode.obj: $(OBJDIR_ST)\newmode.obj
  3486. copy $** $@ >NUL
  3487. $(RELDIR_CPU)\noarg.obj: $(OBJDIR_ST)\noarg.obj
  3488. copy $** $@ >NUL
  3489. $(RELDIR_CPU)\noenv.obj: $(OBJDIR_ST)\noenv.obj
  3490. copy $** $@ >NUL
  3491. $(RELDIR_CPU)\setargv.obj: $(OBJDIR_ST)\setargv.obj
  3492. copy $** $@ >NUL
  3493. $(RELDIR_CPU)\smalheap.obj: $(OBJDIR_ST)\smalheap.obj
  3494. copy $** $@ >NUL
  3495. $(RELDIR_CPU)\thrownew.obj: $(OBJDIR_ST)\thrownew.obj
  3496. copy $** $@ >NUL
  3497. $(RELDIR_CPU)\wsetargv.obj: $(OBJDIR_ST)\wsetargv.obj
  3498. copy $** $@ >NUL
  3499. !if "$(TARGET_CPU)"=="i386"
  3500. $(RELDIR_CPU)\fp10.obj: $(OBJDIR_ST)\fp10.obj
  3501. copy $** $@ >NUL
  3502. !endif
  3503. # ******** STRIPLIN=0 ********
  3504. !if "$(RTC)"=="YES"
  3505. $(RELDIR_CPU)\runtmchk.lib: $(OBJDIR_DLL)\rtc.lib \
  3506. $(OBJDIR_DLL)\exsup.obj \
  3507. $(OBJDIR_DLL)\exsup3.obj \
  3508. $(OBJDIR_DLL)\eh3valid.obj \
  3509. $(OBJDIR_DLL)\sehprolg.obj \
  3510. $(OBJDIR_DLL)\loadcfg.obj \
  3511. $(OBJDIR_DLL)\seccook.obj \
  3512. $(OBJDIR_DLL)\chkstk.obj
  3513. $(LINKLIB) -out:$@ $** >NUL
  3514. !endif
  3515. #
  3516. # Auto Rebuild of Dependencies:
  3517. #
  3518. # The DEP_CINCS must be the union of the C_INCLUDES variable for the crtw32/*
  3519. # subdirectories (as set in MAKEFILE.SUB) and the fpw32/* exception cases
  3520. # (as set in fpw32/{conv,tran}/lsources). Likewise DEP_AINCS is the union
  3521. # of the two versions of A_INCLUDES (in MAKEFILE.SUB and fpw32/*/lsources.)
  3522. #
  3523. ###############################################################################
  3524. DEP_CINCS = -I. -I../h -I../../crtw32/h -I../include \
  3525. -I../stdhpp -I"$(VCTOOLSINC)" \
  3526. -I$(LANGAPI)/include -I$(LANGAPI)/undname
  3527. DEP_AINCS = -I../h -I. -I../../crtw32/h -I../inc -I../inc/$(TARGET_CPU)
  3528. DEP_OBJDIR = $$(OBJDIR)/
  3529. MKDEP = mkdep -v -P $(DEP_OBJDIR) -s .obj -n
  3530. depend : del_sed depend.sed _depend_
  3531. !if "$(POST_BLD)"=="1"
  3532. DEPSED_SED=..\..\..\prebuild\depsed.sed # extra ../'s because of processing
  3533. CPUSUBDIR=$(CPUDIR)
  3534. !else
  3535. DEPSED_SED=depsed.sed
  3536. CPUSUBDIR=$(TARGET_CPU)
  3537. !endif
  3538. del_sed :
  3539. if exist depend.sed del depend.sed
  3540. depend.sed : makefile $(DEPSED_SED)
  3541. echo s/$(VCTOOLSINC)/$$(VCTOOLSINC)/g | sed -f $(DEPSED_SED) > depend.sed
  3542. echo s/$(LANGAPI)/$$(LANGAPI)/g | sed -f $(DEPSED_SED) >> depend.sed
  3543. _depend_ :: $(DEP_DIRS)
  3544. !@ cd $** \
  3545. & echo Building DEPEND.DEF for subdirectory $** ... \
  3546. & $(MKDEP) $(DEP_CINCS) *.c > depend.tmp \
  3547. & $(MKDEP) $(DEP_CINCS) *.cpp >> depend.tmp \
  3548. & $(MKDEP) $(DEP_CINCS) $(CPUSUBDIR)\*.c >> depend.tmp \
  3549. & $(MKDEP) $(DEP_CINCS) $(CPUSUBDIR)\*.cpp >> depend.tmp \
  3550. & $(MKDEP) $(DEP_AINCS) $(CPUSUBDIR)\*.asm >> depend.tmp \
  3551. & sed -f ../../depend.sed depend.tmp > depend.def \
  3552. & del depend.tmp \
  3553. & cd ..\..
  3554. !endif # NTMAKEENV
  3555. # ******** STRIPLIN=1 ********
  3556. #<eof>