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.

263 lines
8.0 KiB

  1. !IFNDEF LANGUAGE
  2. LANGUAGE=usa
  3. !ENDIF
  4. !IF "$(TARGET_DIRECTORY)"=="i386" || "$(TARGET_DIRECTORY)"=="I386"
  5. PLATFORM_SWITCH=i
  6. !ELSEIF "$(TARGET_DIRECTORY)"=="amd64" || "$(TARGET_DIRECTORY)"=="AMD64"
  7. PLATFORM_SWITCH=a
  8. !ELSEIF "$(TARGET_DIRECTORY)"=="ia64" || "$(TARGET_DIRECTORY)"=="IA64"
  9. PLATFORM_SWITCH=m
  10. !ELSE
  11. ! ERROR Invalid Platform Switch for infs
  12. !ENDIF
  13. _LNG=$(LANGUAGE)
  14. _INX=.
  15. _INF=obj\$(TARGET_DIRECTORY)
  16. STAMP=stampinf -f $@
  17. make_infs:$(_INF)\wave.inf \
  18. $(_INF)\wdmaudio.inf \
  19. $(_INF)\wdma10k1.inf \
  20. $(_INF)\wdma_ali.inf \
  21. $(_INF)\wdma_aur.inf \
  22. $(_INF)\wdma_azt.inf \
  23. $(_INF)\wdma_csc.inf \
  24. $(_INF)\wdma_csf.inf \
  25. $(_INF)\wdma_ctl.inf \
  26. $(_INF)\wdma_cwr.inf \
  27. $(_INF)\wdma_ens.inf \
  28. $(_INF)\wdma_ess.inf \
  29. $(_INF)\wdma_es2.inf \
  30. $(_INF)\wdma_es3.inf \
  31. $(_INF)\wdma_int.inf \
  32. $(_INF)\wdma_m2e.inf \
  33. $(_INF)\wdma_neo.inf \
  34. $(_INF)\wdma_ne2.inf \
  35. $(_INF)\wdma_rip.inf \
  36. $(_INF)\wdma_sis.inf \
  37. $(_INF)\wdma_usb.inf \
  38. $(_INF)\wdma_via.inf \
  39. $(_INF)\wdma_avc.inf \
  40. $(_INF)\wdma_ymh.inf \
  41. $(_INF)\wdma_ym2.inf \
  42. $(_INF)\adm_mult.inf \
  43. $(_INF)\adm_port.inf \
  44. $(_INF)\mssb16.inf
  45. #
  46. # Explicit dependencies. We do it this way instead of trying to use rules
  47. # because !#@&^$#% nmake doesn't allow multiple 'source' extensions
  48. # when defining a rule, and we need to express a dependency between
  49. # .txt OR .inx to the final .inf.
  50. #
  51. $(_INF)\wave.inf: $(_INX)\wave.inx $(_LNG)\wave.txt
  52. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  53. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  54. @del $(@B).tmp1
  55. $(STAMP)
  56. $(BINPLACE_CMD)
  57. $(_INF)\wdmaudio.inf: $(_INX)\wdmaudio.inx $(_LNG)\wdmaudio.txt
  58. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  59. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PLATFORM_SWITCH)
  60. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp2 >$@
  61. @del $(@B).tmp1
  62. @del $(@B).tmp2
  63. $(STAMP)
  64. $(BINPLACE_CMD)
  65. $(_INF)\wdma10k1.inf: $(_INX)\wdma10k1.inx $(_LNG)\wdma10k1.txt
  66. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  67. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  68. @del $(@B).tmp1
  69. $(STAMP)
  70. $(BINPLACE_CMD)
  71. $(_INF)\wdma_ali.inf: $(_INX)\wdma_ali.inx $(_LNG)\wdma_ali.txt
  72. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  73. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  74. @del $(@B).tmp1
  75. $(STAMP)
  76. $(BINPLACE_CMD)
  77. $(_INF)\wdma_aur.inf: $(_INX)\wdma_aur.inx $(_LNG)\wdma_aur.txt
  78. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  79. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  80. @del $(@B).tmp1
  81. $(STAMP)
  82. $(BINPLACE_CMD)
  83. $(_INF)\wdma_azt.inf: $(_INX)\wdma_azt.inx $(_LNG)\wdma_azt.txt
  84. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  85. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  86. @del $(@B).tmp1
  87. $(STAMP)
  88. $(BINPLACE_CMD)
  89. $(_INF)\wdma_csc.inf: $(_INX)\wdma_csc.inx $(_LNG)\wdma_csc.txt
  90. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  91. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  92. @del $(@B).tmp1
  93. $(STAMP)
  94. $(BINPLACE_CMD)
  95. $(_INF)\wdma_csf.inf: $(_INX)\wdma_csf.inx $(_LNG)\wdma_csf.txt
  96. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  97. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  98. @del $(@B).tmp1
  99. $(STAMP)
  100. $(BINPLACE_CMD)
  101. $(_INF)\wdma_ctl.inf: $(_INX)\wdma_ctl.inx $(_LNG)\wdma_ctl.txt
  102. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  103. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  104. @del $(@B).tmp1
  105. $(STAMP)
  106. $(BINPLACE_CMD)
  107. $(_INF)\wdma_cwr.inf: $(_INX)\wdma_cwr.inx $(_LNG)\wdma_cwr.txt
  108. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  109. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PLATFORM_SWITCH)
  110. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp2 >$@
  111. @del $(@B).tmp1
  112. @del $(@B).tmp2
  113. $(STAMP)
  114. $(BINPLACE_CMD)
  115. $(_INF)\wdma_ens.inf: $(_INX)\wdma_ens.inx $(_LNG)\wdma_ens.txt
  116. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  117. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  118. @del $(@B).tmp1
  119. $(STAMP)
  120. $(BINPLACE_CMD)
  121. $(_INF)\wdma_ess.inf: $(_INX)\wdma_ess.inx $(_LNG)\wdma_ess.txt
  122. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  123. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  124. @del $(@B).tmp1
  125. $(STAMP)
  126. $(BINPLACE_CMD)
  127. $(_INF)\wdma_es2.inf: $(_INX)\wdma_es2.inx $(_LNG)\wdma_es2.txt
  128. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  129. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  130. @del $(@B).tmp1
  131. $(STAMP)
  132. $(BINPLACE_CMD)
  133. $(_INF)\wdma_es3.inf: $(_INX)\wdma_es3.inx $(_LNG)\wdma_es3.txt
  134. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  135. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  136. @del $(@B).tmp1
  137. $(STAMP)
  138. $(BINPLACE_CMD)
  139. $(_INF)\wdma_int.inf: $(_INX)\wdma_int.inx $(_LNG)\wdma_int.txt
  140. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  141. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  142. @del $(@B).tmp1
  143. $(STAMP)
  144. $(BINPLACE_CMD)
  145. $(_INF)\wdma_m2e.inf: $(_INX)\wdma_m2e.inx $(_LNG)\wdma_m2e.txt
  146. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  147. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  148. @del $(@B).tmp1
  149. $(STAMP)
  150. $(BINPLACE_CMD)
  151. $(_INF)\wdma_neo.inf: $(_INX)\wdma_neo.inx $(_LNG)\wdma_neo.txt
  152. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  153. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  154. @del $(@B).tmp1
  155. $(STAMP)
  156. $(BINPLACE_CMD)
  157. $(_INF)\wdma_ne2.inf: $(_INX)\wdma_ne2.inx $(_LNG)\wdma_ne2.txt
  158. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  159. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  160. @del $(@B).tmp1
  161. $(STAMP)
  162. $(BINPLACE_CMD)
  163. $(_INF)\wdma_rip.inf: $(_INX)\wdma_rip.inx $(_LNG)\wdma_rip.txt
  164. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  165. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  166. @del $(@B).tmp1
  167. $(STAMP)
  168. $(BINPLACE_CMD)
  169. $(_INF)\wdma_sis.inf: $(_INX)\wdma_sis.inx $(_LNG)\wdma_sis.txt
  170. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  171. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  172. @del $(@B).tmp1
  173. $(STAMP)
  174. $(BINPLACE_CMD)
  175. $(_INF)\wdma_usb.inf: $(_INX)\wdma_usb.inx $(_LNG)\wdma_usb.txt
  176. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  177. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  178. @del $(@B).tmp1
  179. $(STAMP)
  180. $(BINPLACE_CMD)
  181. $(_INF)\wdma_via.inf: $(_INX)\wdma_via.inx $(_LNG)\wdma_via.txt
  182. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  183. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  184. @del $(@B).tmp1
  185. $(STAMP)
  186. $(BINPLACE_CMD)
  187. $(_INF)\wdma_avc.inf: $(_INX)\wdma_avc.inx $(_LNG)\wdma_avc.txt
  188. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  189. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  190. @del $(@B).tmp1
  191. $(STAMP)
  192. $(BINPLACE_CMD)
  193. $(_INF)\wdma_ymh.inf: $(_INX)\wdma_ymh.inx $(_LNG)\wdma_ymh.txt
  194. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  195. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  196. @del $(@B).tmp1
  197. $(STAMP)
  198. $(BINPLACE_CMD)
  199. $(_INF)\wdma_ym2.inf: $(_INX)\wdma_ym2.inx $(_LNG)\wdma_ym2.txt
  200. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  201. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  202. @del $(@B).tmp1
  203. $(STAMP)
  204. $(BINPLACE_CMD)
  205. $(_INF)\adm_mult.inf: $(_INX)\adm_mult.inx $(_LNG)\adm_mult.txt
  206. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  207. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  208. @del $(@B).tmp1
  209. $(STAMP)
  210. $(BINPLACE_CMD)
  211. $(_INF)\adm_port.inf: $(_INX)\adm_port.inx $(_LNG)\adm_port.txt
  212. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  213. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  214. @del $(@B).tmp1
  215. $(STAMP)
  216. $(BINPLACE_CMD)
  217. $(_INF)\mssb16.inf: $(_INX)\mssb16.inx $(_LNG)\mssb16.txt
  218. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  219. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  220. @del $(@B).tmp1
  221. $(STAMP)
  222. $(BINPLACE_CMD)