summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/stand/libsa/Makefile
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-23 14:22:41 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-23 14:22:41 +0000
commit734774568039991fce29dd03476f90c2bfaaefcc (patch)
tree8c65793de161b5f097c22f10eee4b1e5e84f75bc /sys/arch/sgi/stand/libsa/Makefile
parent16b13f1c5161dc4e740cf2ff1620dd1f58ef321c (diff)
disk boot and tools for sgi
Diffstat (limited to 'sys/arch/sgi/stand/libsa/Makefile')
-rw-r--r--sys/arch/sgi/stand/libsa/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys/arch/sgi/stand/libsa/Makefile b/sys/arch/sgi/stand/libsa/Makefile
new file mode 100644
index 00000000000..83259b1c684
--- /dev/null
+++ b/sys/arch/sgi/stand/libsa/Makefile
@@ -0,0 +1,41 @@
+# $OpenBSD: Makefile,v 1.1 2004/08/23 14:22:40 pefo Exp $
+
+LIB= sa
+
+.PATH: ${.CURDIR}/../../../../lib/libsa
+
+CLEANFILES += machine mips64
+
+CFLAGS= ${CEXTRAFLAGS} -O2 -nostdinc -mno-abicalls -D_NO_ABICALLS \
+ -I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \
+ -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
+ -I${.CURDIR}/../../../../lib/libsa \
+ -I${.OBJDIR}
+
+CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD ${STANDALONE}
+
+# stand routines
+SRCS= alloc.c exit.c exec.c getfile.c gets.c globals.c \
+ memcmp.c memcpy.c memset.c printf.c snprintf.c strerror.c strncpy.c
+
+# io routines
+SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fstat.c ioctl.c lseek.c \
+ open.c read.c stat.c write.c cread.c
+
+# boot filesystems
+SRCS+= ufs.c nfs.c cd9660.c
+
+${OBJS}: ${.CURDIR}/../Makefile.inc
+
+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>