summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.lib.mk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-19 18:01:03 +0000
committerobrien <obrien@FreeBSD.org>2002-04-19 18:01:03 +0000
commit3020763a0a90e886b930ef7db036697f8ae33207 (patch)
treea4cc2c49ac7041ac08ed3599a08ff7b1c89fea14 /share/mk/bsd.lib.mk
parent122c24db48374dee47cf7a553f344ff0a6aee1e9 (diff)
downloadFreeBSD-src-3020763a0a90e886b930ef7db036697f8ae33207.zip
FreeBSD-src-3020763a0a90e886b930ef7db036697f8ae33207.tar.gz
Add .asm as an alias for .s. .asm is common in contribed sources.
Helps with: gcc31 build.
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r--share/mk/bsd.lib.mk20
1 files changed, 19 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 9b4525e..11bd797 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -47,7 +47,7 @@ STRIP?= -s
# prefer .s to a .c, add .po, remove stuff not used in the BSD libraries
# .So used for PIC object files
.SUFFIXES:
-.SUFFIXES: .out .o .po .So .S .s .c .cc .cpp .cxx .m .C .f .y .l .ln
+.SUFFIXES: .out .o .po .So .S .s .asm .c .cc .cpp .cxx .m .C .f .y .l .ln
.c.ln:
${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC} || \
@@ -135,6 +135,24 @@ STRIP?= -s
@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
@mv ${.TARGET}.tmp ${.TARGET}
+.asm.o:
+ ${CC} -x assembler-with-cpp ${CFLAGS:M-[BID]*} ${AINC} -c \
+ ${.IMPSRC} -o ${.TARGET}
+ @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
+ @mv ${.TARGET}.tmp ${.TARGET}
+
+.asm.po:
+ ${CC} -x assembler-with-cpp -DPROF ${CFLAGS:M-[BID]*} ${AINC} -c \
+ ${.IMPSRC} -o ${.TARGET}
+ @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET}
+ @mv ${.TARGET}.tmp ${.TARGET}
+
+.asm.So:
+ ${CC} -x assembler-with-cpp ${PICFLAG} -DPIC ${CFLAGS:M-[BID]*} ${AINC} -c \
+ ${.IMPSRC} -o ${.TARGET}
+ @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
+ @mv ${.TARGET}.tmp ${.TARGET}
+
.S.o:
${CC} ${CFLAGS:M-[BID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
OpenPOWER on IntegriCloud