Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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