summaryrefslogtreecommitdiffstats
path: root/share/mk/sys.mk
diff options
context:
space:
mode:
Diffstat (limited to 'share/mk/sys.mk')
-rw-r--r--share/mk/sys.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 219ab7a..f2ae1cd 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -16,7 +16,7 @@ unix ?= We run FreeBSD, not UNIX.
.if defined(%POSIX)
.SUFFIXES: .o .c .y .l .a .sh .f
.else
-.SUFFIXES: .out .a .ln .o .c .cc .cpp .cxx .C .m .F .f .e .r .y .l .S .s .asm .cl .p .h .sh
+.SUFFIXES: .out .a .ln .o .c .cc .cpp .cxx .C .m .F .f .e .r .y .l .S .asm .s .cl .p .h .sh
.endif
.LIBS: .a
@@ -208,7 +208,10 @@ MACHINE_ARCH ?= i386
.S.o:
${CC} ${CFLAGS} -c ${.IMPSRC}
-.s.o .asm.o:
+.asm.o:
+ ${CC} -x assembler-with-cpp ${CFLAGS} -c ${.IMPSRC}
+
+.s.o:
${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC}
# XXX not -j safe
OpenPOWER on IntegriCloud