2010-03-03 15:27:30 +01:00
|
|
|
.SUFFIXES: .o .s
|
2010-02-16 15:41:33 +01:00
|
|
|
|
|
|
|
ASMCONV=asmconv
|
|
|
|
CPP.s=${CC} ${AFLAGS} -E -x assembler-with-cpp
|
|
|
|
ASMCONVFLAGS+=-mi386 ack gnu
|
|
|
|
|
|
|
|
# Need to convert ACK assembly files to GNU assembly before building
|
|
|
|
.s.o:
|
|
|
|
${_MKTARGET_COMPILE}
|
|
|
|
${CPP.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.PREFIX}.ack.s
|
|
|
|
${ASMCONV} ${ASMCONVFLAGS} ${.PREFIX}.ack.s ${.PREFIX}.gnu.s
|
|
|
|
${COMPILE.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.PREFIX}.gnu.s -o ${.TARGET}
|
|
|
|
rm -rf ${.PREFIX}.ack.s ${.PREFIX}.gnu.s
|