summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/stand/libkern/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sgi/stand/libkern/Makefile')
-rw-r--r--sys/arch/sgi/stand/libkern/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys/arch/sgi/stand/libkern/Makefile b/sys/arch/sgi/stand/libkern/Makefile
new file mode 100644
index 00000000000..98f37f63650
--- /dev/null
+++ b/sys/arch/sgi/stand/libkern/Makefile
@@ -0,0 +1,40 @@
+# $OpenBSD: Makefile,v 1.1 2004/08/23 14:22:40 pefo Exp $
+
+LIB= kern
+
+.PATH: ${.CURDIR}/../../../../lib/libkern
+.PATH: ${.CURDIR}/../../../../lib/libkern/arch/mips64
+
+.include "${.CURDIR}/../../../../lib/libkern/arch/mips64/Makefile.inc"
+
+CFLAGS= -O2 -mno-abicalls -D_NO_ABICALLS ${STANDALONE} \
+ -nostdinc -I${.CURDIR}/../include -I${.CURDIR}/../../../.. \
+ -I${.CURDIR}/../../../../lib/libkern \
+ -I${.CURDIR}/../../../../lib/libkern/arch/mips64 -I${.CURDIR} \
+ -I${.OBJDIR}
+
+AFLAGS= -x assembler-with-cpp -traditional-cpp -I${.CURDIR}/../include \
+ -I${.CURDIR}/../../../.. -I${.CURDIR}/../../../../lib/libkern \
+ -I${.CURDIR}/../../../../lib/libkern/arch/mips64 \
+ -I${.OBJDIR}
+
+# kern routines
+SRCS= __main.c ashrdi3.c bzero.S divdi3.c qdivrem.c strlen.S \
+ strcmp.c strlcat.c strlcpy.c strncmp.c umoddi3.c
+
+${OBJS}: ${.CURDIR}/../Makefile.inc
+
+CLEANFILES += machine mips64
+
+NOPROFILE=
+NOPIC=
+
+.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir) && !make(obj)
+.BEGIN:
+ @([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
+ @([ -h mips64 ] || ln -s ${.CURDIR}/../../../mips64/include mips64)
+.endif
+
+install:
+
+.include <bsd.lib.mk>