264 lines
8 KiB
PHP
264 lines
8 KiB
PHP
|
|
!IFNDEF LANGUAGE
|
|
LANGUAGE=usa
|
|
!ENDIF
|
|
|
|
|
|
!IF "$(TARGET_DIRECTORY)"=="i386" || "$(TARGET_DIRECTORY)"=="I386"
|
|
PLATFORM_SWITCH=i
|
|
!ELSEIF "$(TARGET_DIRECTORY)"=="amd64" || "$(TARGET_DIRECTORY)"=="AMD64"
|
|
PLATFORM_SWITCH=a
|
|
!ELSEIF "$(TARGET_DIRECTORY)"=="ia64" || "$(TARGET_DIRECTORY)"=="IA64"
|
|
PLATFORM_SWITCH=m
|
|
!ELSE
|
|
! ERROR Invalid Platform Switch for infs
|
|
!ENDIF
|
|
|
|
|
|
_LNG=$(LANGUAGE)
|
|
_INX=.
|
|
_INF=obj\$(TARGET_DIRECTORY)
|
|
STAMP=stampinf -f $@
|
|
|
|
make_infs:$(_INF)\wave.inf \
|
|
$(_INF)\wdmaudio.inf \
|
|
$(_INF)\wdma10k1.inf \
|
|
$(_INF)\wdma_ali.inf \
|
|
$(_INF)\wdma_aur.inf \
|
|
$(_INF)\wdma_azt.inf \
|
|
$(_INF)\wdma_csc.inf \
|
|
$(_INF)\wdma_csf.inf \
|
|
$(_INF)\wdma_ctl.inf \
|
|
$(_INF)\wdma_cwr.inf \
|
|
$(_INF)\wdma_ens.inf \
|
|
$(_INF)\wdma_ess.inf \
|
|
$(_INF)\wdma_es2.inf \
|
|
$(_INF)\wdma_es3.inf \
|
|
$(_INF)\wdma_int.inf \
|
|
$(_INF)\wdma_m2e.inf \
|
|
$(_INF)\wdma_neo.inf \
|
|
$(_INF)\wdma_ne2.inf \
|
|
$(_INF)\wdma_rip.inf \
|
|
$(_INF)\wdma_sis.inf \
|
|
$(_INF)\wdma_usb.inf \
|
|
$(_INF)\wdma_via.inf \
|
|
$(_INF)\wdma_avc.inf \
|
|
$(_INF)\wdma_ymh.inf \
|
|
$(_INF)\wdma_ym2.inf \
|
|
$(_INF)\adm_mult.inf \
|
|
$(_INF)\adm_port.inf \
|
|
$(_INF)\mssb16.inf
|
|
|
|
|
|
#
|
|
# Explicit dependencies. We do it this way instead of trying to use rules
|
|
# because !#@&^$#% nmake doesn't allow multiple 'source' extensions
|
|
# when defining a rule, and we need to express a dependency between
|
|
# .txt OR .inx to the final .inf.
|
|
#
|
|
|
|
|
|
$(_INF)\wave.inf: $(_INX)\wave.inx $(_LNG)\wave.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdmaudio.inf: $(_INX)\wdmaudio.inx $(_LNG)\wdmaudio.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
prodfilt $(@B).tmp1 $(@B).tmp2 +$(PLATFORM_SWITCH)
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp2 >$@
|
|
@del $(@B).tmp1
|
|
@del $(@B).tmp2
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma10k1.inf: $(_INX)\wdma10k1.inx $(_LNG)\wdma10k1.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
|
|
$(_INF)\wdma_ali.inf: $(_INX)\wdma_ali.inx $(_LNG)\wdma_ali.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_aur.inf: $(_INX)\wdma_aur.inx $(_LNG)\wdma_aur.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_azt.inf: $(_INX)\wdma_azt.inx $(_LNG)\wdma_azt.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_csc.inf: $(_INX)\wdma_csc.inx $(_LNG)\wdma_csc.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_csf.inf: $(_INX)\wdma_csf.inx $(_LNG)\wdma_csf.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_ctl.inf: $(_INX)\wdma_ctl.inx $(_LNG)\wdma_ctl.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_cwr.inf: $(_INX)\wdma_cwr.inx $(_LNG)\wdma_cwr.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
prodfilt $(@B).tmp1 $(@B).tmp2 +$(PLATFORM_SWITCH)
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp2 >$@
|
|
@del $(@B).tmp1
|
|
@del $(@B).tmp2
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
|
|
$(_INF)\wdma_ens.inf: $(_INX)\wdma_ens.inx $(_LNG)\wdma_ens.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_ess.inf: $(_INX)\wdma_ess.inx $(_LNG)\wdma_ess.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_es2.inf: $(_INX)\wdma_es2.inx $(_LNG)\wdma_es2.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_es3.inf: $(_INX)\wdma_es3.inx $(_LNG)\wdma_es3.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_int.inf: $(_INX)\wdma_int.inx $(_LNG)\wdma_int.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
|
|
$(_INF)\wdma_m2e.inf: $(_INX)\wdma_m2e.inx $(_LNG)\wdma_m2e.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_neo.inf: $(_INX)\wdma_neo.inx $(_LNG)\wdma_neo.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_ne2.inf: $(_INX)\wdma_ne2.inx $(_LNG)\wdma_ne2.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_rip.inf: $(_INX)\wdma_rip.inx $(_LNG)\wdma_rip.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_sis.inf: $(_INX)\wdma_sis.inx $(_LNG)\wdma_sis.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_usb.inf: $(_INX)\wdma_usb.inx $(_LNG)\wdma_usb.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_via.inf: $(_INX)\wdma_via.inx $(_LNG)\wdma_via.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_avc.inf: $(_INX)\wdma_avc.inx $(_LNG)\wdma_avc.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_ymh.inf: $(_INX)\wdma_ymh.inx $(_LNG)\wdma_ymh.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\wdma_ym2.inf: $(_INX)\wdma_ym2.inx $(_LNG)\wdma_ym2.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\adm_mult.inf: $(_INX)\adm_mult.inx $(_LNG)\adm_mult.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\adm_port.inf: $(_INX)\adm_port.inx $(_LNG)\adm_port.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|
|
$(_INF)\mssb16.inf: $(_INX)\mssb16.inx $(_LNG)\mssb16.txt
|
|
copy $(_INX)\$(@B).inx+$(_LNG)\$(@B).txt $(@B).tmp1
|
|
$(C_COMPILER_NAME) -EP $(CDEFINES) $(@B).tmp1 >$@
|
|
@del $(@B).tmp1
|
|
$(STAMP)
|
|
$(BINPLACE_CMD)
|
|
|