Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
5.1 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_csf.inf \
  22. $(_INF)\wdma_cwr.inf \
  23. $(_INF)\wdma_es3.inf \
  24. $(_INF)\wdma_int.inf \
  25. $(_INF)\wdma_m2e.inf \
  26. $(_INF)\wdma_ms.inf \
  27. $(_INF)\wdma_rip.inf \
  28. $(_INF)\wdma_sis.inf \
  29. $(_INF)\wdma_usb.inf \
  30. $(_INF)\wdma_via.inf \
  31. $(_INF)\wdma_avc.inf \
  32. $(_INF)\mssb16.inf
  33. #
  34. # Explicit dependencies. We do it this way instead of trying to use rules
  35. # because !#@&^$#% nmake doesn't allow multiple 'source' extensions
  36. # when defining a rule, and we need to express a dependency between
  37. # .txt OR .inx to the final .inf.
  38. #
  39. $(_INF)\wave.inf: $(_INX)\wave.inx $(_LNG)\wave.txt
  40. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  41. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  42. @del $(@B).tmp1
  43. $(STAMP)
  44. $(BINPLACE_CMD)
  45. $(_INF)\wdmaudio.inf: $(_INX)\wdmaudio.inx $(_LNG)\wdmaudio.txt
  46. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  47. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PLATFORM_SWITCH)
  48. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp2 >$@
  49. @del $(@B).tmp1
  50. @del $(@B).tmp2
  51. $(STAMP)
  52. $(BINPLACE_CMD)
  53. $(_INF)\wdma10k1.inf: $(_INX)\wdma10k1.inx $(_LNG)\wdma10k1.txt
  54. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  55. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  56. @del $(@B).tmp1
  57. $(STAMP)
  58. $(BINPLACE_CMD)
  59. $(_INF)\wdma_ali.inf: $(_INX)\wdma_ali.inx $(_LNG)\wdma_ali.txt
  60. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  61. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  62. @del $(@B).tmp1
  63. $(STAMP)
  64. $(BINPLACE_CMD)
  65. $(_INF)\wdma_csf.inf: $(_INX)\wdma_csf.inx $(_LNG)\wdma_csf.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_cwr.inf: $(_INX)\wdma_cwr.inx $(_LNG)\wdma_cwr.txt
  72. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  73. prodfilt $(@B).tmp1 $(@B).tmp2 +$(PLATFORM_SWITCH)
  74. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp2 >$@
  75. @del $(@B).tmp1
  76. @del $(@B).tmp2
  77. $(STAMP)
  78. $(BINPLACE_CMD)
  79. $(_INF)\wdma_es3.inf: $(_INX)\wdma_es3.inx $(_LNG)\wdma_es3.txt
  80. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  81. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  82. @del $(@B).tmp1
  83. $(STAMP)
  84. $(BINPLACE_CMD)
  85. $(_INF)\wdma_int.inf: $(_INX)\wdma_int.inx $(_LNG)\wdma_int.txt
  86. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  87. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  88. @del $(@B).tmp1
  89. $(STAMP)
  90. $(BINPLACE_CMD)
  91. $(_INF)\wdma_m2e.inf: $(_INX)\wdma_m2e.inx $(_LNG)\wdma_m2e.txt
  92. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  93. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  94. @del $(@B).tmp1
  95. $(STAMP)
  96. $(BINPLACE_CMD)
  97. $(_INF)\wdma_ms.inf: $(_INX)\wdma_ms.inx $(_LNG)\wdma_ms.txt
  98. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  99. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  100. @del $(@B).tmp1
  101. $(STAMP)
  102. $(BINPLACE_CMD)
  103. $(_INF)\wdma_rip.inf: $(_INX)\wdma_rip.inx $(_LNG)\wdma_rip.txt
  104. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  105. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  106. @del $(@B).tmp1
  107. $(STAMP)
  108. $(BINPLACE_CMD)
  109. $(_INF)\wdma_sis.inf: $(_INX)\wdma_sis.inx $(_LNG)\wdma_sis.txt
  110. copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
  111. $(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
  112. @del $(@B).tmp1
  113. $(STAMP)
  114. $(BINPLACE_CMD)
  115. $(_INF)\wdma_usb.inf: $(_INX)\wdma_usb.inx $(_LNG)\wdma_usb.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_via.inf: $(_INX)\wdma_via.inx $(_LNG)\wdma_via.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_avc.inf: $(_INX)\wdma_avc.inx $(_LNG)\wdma_avc.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)\mssb16.inf: $(_INX)\mssb16.inx $(_LNG)\mssb16.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)