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.

454 lines
13 KiB

  1. #
  2. # This file is designed to be included from 1 level below
  3. # (ie, srv, wks).
  4. #
  5. !IFNDEF LANGUAGE
  6. LANGUAGE=usa
  7. !ENDIF
  8. !IF "$(ALT_PROJECT)" == "NEC_98"
  9. PLATFORM_SWITCH=n
  10. !ELSEIF "$(TARGET_DIRECTORY)"=="i386" || "$(TARGET_DIRECTORY)"=="I386"
  11. PLATFORM_SWITCH=i
  12. !ELSEIF "$(TARGET_DIRECTORY)"=="alpha" || "$(TARGET_DIRECTORY)"=="ALPHA"
  13. PLATFORM_SWITCH=a
  14. !ELSEIF "$(TARGET_DIRECTORY)"=="ia64" || "$(TARGET_DIRECTORY)"=="IA64"
  15. PLATFORM_SWITCH=m
  16. !ELSEIF "$(TARGET_DIRECTORY)"=="amd64" || "$(TARGET_DIRECTORY)"=="AXP64"
  17. PLATFORM_SWITCH=x
  18. !ELSE
  19. ! ERROR Invalid Platform Switch for infs
  20. !ENDIF
  21. _LNG=..\$(LANGUAGE)
  22. _INX=..
  23. _INF=obj$(BUILD_ALT_DIR)\$(TARGET_DIRECTORY)
  24. STAMP=stampinf -f $@ -d date -v
  25. make_infs:\
  26. $(_INF)\netaarps.inf \
  27. !IF "$(PRODSWITCH)" == "s"
  28. $(_INF)\netatlk.inf \
  29. !ENDIF
  30. $(_INF)\netauni.inf \
  31. $(_INF)\netcis.inf \
  32. $(_INF)\netdhoc.inf \
  33. $(_INF)\netdhcps.inf \
  34. $(_INF)\netdns.inf \
  35. $(_INF)\netiprip.inf \
  36. $(_INF)\netgpc.inf \
  37. $(_INF)\netias.inf \
  38. $(_INF)\netlanem.inf \
  39. $(_INF)\netlanep.inf \
  40. $(_INF)\netlpd.inf \
  41. !IF $(386)
  42. $(_INF)\netmacpr.inf \
  43. !ENDIF
  44. $(_INF)\netmacsv.inf \
  45. $(_INF)\netmscli.inf \
  46. $(_INF)\netnb.inf \
  47. !IF "$(PLATFORM_SWITCH)" == "i"
  48. $(_INF)\netnwcli.inf \
  49. $(_INF)\netnwlnk.inf \
  50. !ENDIF
  51. $(_INF)\netoc.inf \
  52. $(_INF)\netrasa.inf \
  53. $(_INF)\netrass.inf \
  54. $(_INF)\netrast.inf \
  55. $(_INF)\netrsvp.inf \
  56. $(_INF)\netrwan.inf \
  57. $(_INF)\netpsa.inf \
  58. $(_INF)\netpschd.inf \
  59. $(_INF)\netnbf.inf \
  60. !IF "$(PLATFORM_SWITCH)" == "i"
  61. $(_INF)\netsap.inf \
  62. !ENDIF
  63. $(_INF)\netserv.inf \
  64. $(_INF)\netsfn.inf \
  65. $(_INF)\netsfnt.inf \
  66. $(_INF)\netsnmp.inf \
  67. $(_INF)\nettcpip.inf \
  68. $(_INF)\nettpsmp.inf \
  69. $(_INF)\netwins.inf \
  70. $(_INF)\netupg.inf \
  71. $(_INF)\netupnp.inf \
  72. $(_INF)\netupnph.inf \
  73. $(_INF)\netcm.inf \
  74. $(_INF)\netirda.inf \
  75. $(_INF)\netwlbs.inf \
  76. $(_INF)\netwlbsm.inf \
  77. $(_INF)\netwzc.inf
  78. #
  79. # different binplace destinations for different platforms (wks, srv and ent)
  80. #
  81. # NOTE: Set BINPLACE_CMD_NWS as empty in ent flavor to avoid binplace conflict
  82. # when building Srv and Ent simultaneously on mulitple processor build machines
  83. #
  84. !IFDEF BINPLACE_CMD
  85. !IFDEF SERVERINF
  86. BINPLACE_CMD=$(BINPLACE_CMD:binplace=binplace -b srvinf)
  87. BINPLACE_CMD_NWS=$(BINPLACE_CMD:binplace -b srvinf=binplace -b nws)
  88. !ELSE
  89. !IFDEF ENTERPRISEINF
  90. BINPLACE_CMD=$(BINPLACE_CMD:binplace=binplace -b entinf)
  91. BINPLACE_CMD_NWS=
  92. !ELSE
  93. !IFDEF PERSONALINF
  94. BINPLACE_CMD=$(BINPLACE_CMD:binplace=binplace -b perinf)
  95. BINPLACE_CMD_NWS=
  96. !ELSE
  97. BINPLACE_CMD_NWS=$(BINPLACE_CMD)
  98. !ENDIF
  99. !ENDIF
  100. !ENDIF
  101. !ENDIF
  102. #
  103. # Explicit dependencies. We do it this way instead of trying to use rules
  104. # because !#@&^$#% nmake doesn't allow multiple 'source' extensions
  105. # when defining a rule, and we need to express a dependency between
  106. # .txt OR .inx to the final .inf.
  107. #
  108. #
  109. # 'Standard' (win95-style) infs. The rules are all the same.
  110. #
  111. $(_INF)\netupg.inf: $(_INX)\netupg.inx $(_LNG)\netupg.txt
  112. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  113. prodfilt $(@B).tmp1 $@ +$(PLATFORM_SWITCH)
  114. @del $(@B).tmp1
  115. $(STAMP)
  116. $(BINPLACE_CMD)
  117. $(_INF)\netaarps.inf: $(_INX)\netaarps.inx $(_LNG)\netaarps.txt
  118. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  119. $(STAMP)
  120. $(BINPLACE_CMD)
  121. #
  122. #$(_INF)\netacs.inf: $(_INX)\netacs.inx $(_LNG)\netacs.txt
  123. # copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  124. # $(STAMP)
  125. # $(BINPLACE_CMD)
  126. #
  127. $(_INF)\netatlk.inf: $(_INX)\netatlk.inx $(_LNG)\netatlk.txt
  128. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  129. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  130. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  131. @del $(@B).tmp1
  132. @del $(@B).tmp2
  133. $(STAMP)
  134. $(BINPLACE_CMD)
  135. $(_INF)\netauni.inf: $(_INX)\netauni.inx $(_LNG)\netauni.txt
  136. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  137. $(STAMP)
  138. $(BINPLACE_CMD)
  139. $(_INF)\netcis.inf: $(_INX)\netcis.inx $(_LNG)\netcis.txt
  140. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  141. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  142. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  143. @del $(@B).tmp1
  144. @del $(@B).tmp2
  145. $(STAMP)
  146. $(BINPLACE_CMD)
  147. $(_INF)\netdhoc.inf: $(_INX)\netdhoc.inx $(_LNG)\netdhoc.txt
  148. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  149. $(STAMP)
  150. $(BINPLACE_CMD)
  151. $(_INF)\netdhcps.inf: $(_INX)\netdhcps.inx $(_LNG)\netdhcps.txt
  152. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  153. $(STAMP)
  154. $(BINPLACE_CMD)
  155. $(_INF)\netdns.inf: $(_INX)\netdns.inx $(_LNG)\netdns.txt
  156. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  157. $(STAMP)
  158. $(BINPLACE_CMD)
  159. $(_INF)\netgpc.inf: $(_INX)\netgpc.inx $(_LNG)\netgpc.txt
  160. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  161. $(STAMP)
  162. $(BINPLACE_CMD)
  163. $(_INF)\netias.inf: $(_INX)\netias.inx $(_LNG)\netias.txt
  164. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  165. prodfilt $(@B).tmp1 $@ +$(PLATFORM_SWITCH)
  166. @del $(@B).tmp1
  167. $(STAMP)
  168. $(BINPLACE_CMD)
  169. $(_INF)\netiprip.inf: $(_INX)\netiprip.inx $(_LNG)\netiprip.txt
  170. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  171. $(STAMP)
  172. $(BINPLACE_CMD)
  173. $(_INF)\netlpd.inf: $(_INX)\netlpd.inx $(_LNG)\netlpd.txt
  174. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  175. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  176. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  177. @del $(@B).tmp1
  178. @del $(@B).tmp2
  179. $(STAMP)
  180. $(BINPLACE_CMD)
  181. $(_INF)\netmacpr.inf: $(_INX)\netmacpr.inx $(_LNG)\netmacpr.txt
  182. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  183. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  184. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  185. @del $(@B).tmp1
  186. @del $(@B).tmp2
  187. $(STAMP)
  188. $(BINPLACE_CMD)
  189. $(_INF)\netmacsv.inf: $(_INX)\netmacsv.inx $(_LNG)\netmacsv.txt
  190. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  191. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  192. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  193. @del $(@B).tmp1
  194. @del $(@B).tmp2
  195. $(STAMP)
  196. $(BINPLACE_CMD)
  197. $(_INF)\netmscli.inf: $(_INX)\netmscli.inx $(_LNG)\netmscli.txt
  198. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  199. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  200. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  201. @del $(@B).tmp1
  202. @del $(@B).tmp2
  203. $(STAMP)
  204. $(BINPLACE_CMD)
  205. $(_INF)\netnb.inf: $(_INX)\netnb.inx $(_LNG)\netnb.txt
  206. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  207. $(STAMP)
  208. $(BINPLACE_CMD)
  209. !IF "$(PLATFORM_SWITCH)" == "i"
  210. $(_INF)\netnwcli.inf: $(_INX)\netnwcli.inx $(_LNG)\netnwcli.txt
  211. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  212. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  213. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  214. @del $(@B).tmp1
  215. @del $(@B).tmp2
  216. $(STAMP)
  217. $(BINPLACE_CMD)
  218. $(_INF)\netnwlnk.inf: $(_INX)\netnwlnk.inx $(_LNG)\netnwlnk.txt
  219. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  220. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  221. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  222. @del $(@B).tmp1
  223. @del $(@B).tmp2
  224. $(STAMP)
  225. $(BINPLACE_CMD)
  226. !ENDIF
  227. $(_INF)\netoc.inf: $(_INX)\netoc.inx $(_LNG)\netoc.txt
  228. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  229. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  230. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  231. @del $(@B).tmp1
  232. @del $(@B).tmp2
  233. $(STAMP)
  234. $(BINPLACE_CMD)
  235. $(_INF)\netrsvp.inf: $(_INX)\netrsvp.inx $(_LNG)\netrsvp.txt
  236. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  237. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  238. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  239. @del $(@B).tmp1
  240. @del $(@B).tmp2
  241. $(STAMP)
  242. $(BINPLACE_CMD)
  243. $(_INF)\netrwan.inf: $(_INX)\netrwan.inx $(_LNG)\netrwan.txt
  244. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  245. $(STAMP)
  246. $(BINPLACE_CMD)
  247. $(_INF)\netrasa.inf: $(_INX)\netrasa.inx $(_LNG)\netrasa.txt
  248. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  249. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  250. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  251. @del $(@B).tmp1
  252. @del $(@B).tmp2
  253. $(STAMP)
  254. $(BINPLACE_CMD)
  255. $(_INF)\netrass.inf: $(_INX)\netrass.inx $(_LNG)\netrass.txt
  256. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  257. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  258. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  259. @del $(@B).tmp1
  260. @del $(@B).tmp2
  261. $(STAMP)
  262. $(BINPLACE_CMD)
  263. $(_INF)\netrast.inf: $(_INX)\netrast.inx $(_LNG)\netrast.txt
  264. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  265. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  266. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  267. @del $(@B).tmp1
  268. @del $(@B).tmp2
  269. $(STAMP)
  270. $(BINPLACE_CMD)
  271. $(_INF)\netpsa.inf: $(_INX)\netpsa.inx $(_LNG)\netpsa.txt
  272. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  273. $(STAMP)
  274. $(BINPLACE_CMD)
  275. $(_INF)\netpschd.inf: $(_INX)\netpschd.inx $(_LNG)\netpschd.txt
  276. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  277. $(STAMP)
  278. $(BINPLACE_CMD)
  279. $(_INF)\netnbf.inf: $(_INX)\netnbf.inx $(_LNG)\netnbf.txt
  280. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  281. $(STAMP)
  282. $(BINPLACE_CMD)
  283. !IF "$(PLATFORM_SWITCH)" == "i"
  284. $(_INF)\netsap.inf: $(_INX)\netsap.inx $(_LNG)\netsap.txt
  285. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  286. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  287. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  288. @del $(@B).tmp1
  289. @del $(@B).tmp2
  290. $(STAMP)
  291. $(BINPLACE_CMD)
  292. !ENDIF
  293. $(_INF)\netserv.inf: $(_INX)\netserv.inx $(_LNG)\netserv.txt
  294. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  295. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  296. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  297. @del $(@B).tmp1
  298. @del $(@B).tmp2
  299. $(STAMP)
  300. $(BINPLACE_CMD)
  301. $(_INF)\netsfn.inf: $(_INX)\netsfn.inx $(_LNG)\netsfn.txt
  302. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  303. $(BINPLACE_CMD_NWS)
  304. $(_INF)\netsfnt.inf: $(_INX)\netsfnt.inx $(_LNG)\netsfnt.txt
  305. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  306. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  307. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  308. @del $(@B).tmp1
  309. @del $(@B).tmp2
  310. $(BINPLACE_CMD_NWS)
  311. $(_INF)\netsnmp.inf: $(_INX)\netsnmp.inx $(_LNG)\netsnmp.txt
  312. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  313. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  314. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  315. @del $(@B).tmp1
  316. @del $(@B).tmp2
  317. $(STAMP)
  318. $(BINPLACE_CMD)
  319. $(_INF)\nettcpip.inf: $(_INX)\nettcpip.inx $(_LNG)\nettcpip.txt
  320. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  321. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  322. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  323. @del $(@B).tmp1
  324. @del $(@B).tmp2
  325. $(STAMP)
  326. $(BINPLACE_CMD)
  327. $(_INF)\nettpsmp.inf: $(_INX)\nettpsmp.inx $(_LNG)\nettpsmp.txt
  328. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  329. $(STAMP)
  330. $(BINPLACE_CMD)
  331. $(_INF)\netwins.inf: $(_INX)\netwins.inx $(_LNG)\netwins.txt
  332. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  333. $(STAMP)
  334. $(BINPLACE_CMD)
  335. $(_INF)\netlanem.inf: $(_INX)\netlanem.inx $(_LNG)\netlanem.txt
  336. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  337. $(STAMP)
  338. $(BINPLACE_CMD)
  339. $(_INF)\netlanep.inf: $(_INX)\netlanep.inx $(_LNG)\netlanep.txt
  340. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  341. $(STAMP)
  342. $(BINPLACE_CMD)
  343. $(_INF)\netupnp.inf: $(_INX)\netupnp.inx $(_LNG)\netupnp.txt
  344. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  345. $(STAMP)
  346. $(BINPLACE_CMD)
  347. $(_INF)\netupnph.inf: $(_INX)\netupnph.inx $(_LNG)\netupnph.txt
  348. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  349. $(STAMP)
  350. $(BINPLACE_CMD)
  351. $(_INF)\netirda.inf: $(_INX)\netirda.inx $(_LNG)\netirda.txt
  352. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $@
  353. $(STAMP)
  354. $(BINPLACE_CMD)
  355. !IF $(386)
  356. $(_INF)\netcm.inf: $(_INX)\netcmx.inx $(_LNG)\netcm.txt
  357. copy $(_INX)\netcmx.inx+$(_LNG)\$(@B).txt $(@B).tmp1
  358. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  359. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  360. @del $(@B).tmp1
  361. @del $(@B).tmp2
  362. $(STAMP)
  363. $(BINPLACE_CMD)
  364. !ELSE
  365. $(_INF)\netcm.inf: $(_INX)\netcma.inx $(_LNG)\netcm.txt
  366. copy $(_INX)\netcma.inx+$(_LNG)\$(@B).txt $(@B).tmp1
  367. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PRODSWITCH)
  368. prodfilt $(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  369. @del $(@B).tmp1
  370. @del $(@B).tmp2
  371. $(STAMP)
  372. $(BINPLACE_CMD)
  373. !ENDIF
  374. $(_INF)\netwlbs.inf: $(_INX)\netwlbs.inx $(_LNG)\netwlbs.txt
  375. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  376. prodfilt $(@B).tmp1 $@ +$(PLATFORM_SWITCH)
  377. @del $(@B).tmp1
  378. $(STAMP)
  379. $(BINPLACE_CMD)
  380. $(_INF)\netwlbsm.inf: $(_INX)\netwlbsm.inx $(_LNG)\netwlbsm.txt
  381. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  382. prodfilt $(@B).tmp1 $@ +$(PLATFORM_SWITCH)
  383. @del $(@B).tmp1
  384. $(STAMP)
  385. $(BINPLACE_CMD)
  386. $(_INF)\netwzc.inf: $(_INX)\netwzc.inx $(_LNG)\netwzc.txt
  387. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  388. prodfilt $(@B).tmp1 $@ +$(PLATFORM_SWITCH)
  389. @del $(@B).tmp1
  390. $(STAMP)
  391. $(BINPLACE_CMD)