summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-29 01:48:13 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-29 01:48:13 +0000
commitffb23677a4b95dd2a048e17ccbe35941ec391a7e (patch)
treeb9f46b97628132794a6db861af4652f1e5fc592d /lib
parent4efad2c97d2ecee9981d79bc459035f0c91c28d8 (diff)
Last pieces needed to build libc on sparc64.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/sparc64/Makefile.inc35
-rw-r--r--lib/libc/arch/sparc64/gen/Makefile.inc6
2 files changed, 41 insertions, 0 deletions
diff --git a/lib/libc/arch/sparc64/Makefile.inc b/lib/libc/arch/sparc64/Makefile.inc
new file mode 100644
index 00000000000..442beb6e191
--- /dev/null
+++ b/lib/libc/arch/sparc64/Makefile.inc
@@ -0,0 +1,35 @@
+# $OpenBSD: Makefile.inc,v 1.1 2001/08/29 01:48:12 art Exp $
+
+KMINCLUDES= arch/sparc64/SYS.h
+KMSRCS= ffs.S strlen.S htonl.S htons.S \
+ ntohl.S ntohs.S divrem.m4 \
+ _setjmp.S mul.S saveregs.S setjmp.S umul.S
+
+# `source' files built from m4 source
+# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
+SRCS+= rem.S sdiv.S udiv.S urem.S
+CLEANFILES+=rem.S sdiv.S udiv.S urem.S
+
+sdiv.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
+ @echo 'building ${.TARGET} from ${.ALLSRC}'
+ @(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
+ cat ${.ALLSRC}) | m4 > ${.TARGET}
+ @chmod 444 ${.TARGET}
+
+udiv.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
+ @echo 'building ${.TARGET} from ${.ALLSRC}'
+ @(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
+ cat ${.ALLSRC}) | m4 > ${.TARGET}
+ @chmod 444 ${.TARGET}
+
+rem.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
+ @echo 'building ${.TARGET} from ${.ALLSRC}'
+ @(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
+ cat ${.ALLSRC}) | m4 > ${.TARGET}
+ @chmod 444 ${.TARGET}
+
+urem.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
+ @echo 'building ${.TARGET} from ${.ALLSRC}'
+ @(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
+ cat ${.ALLSRC}) | m4 > ${.TARGET}
+ @chmod 444 ${.TARGET}
diff --git a/lib/libc/arch/sparc64/gen/Makefile.inc b/lib/libc/arch/sparc64/gen/Makefile.inc
new file mode 100644
index 00000000000..fc594a5525e
--- /dev/null
+++ b/lib/libc/arch/sparc64/gen/Makefile.inc
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile.inc,v 1.1 2001/08/29 01:48:12 art Exp $
+
+SRCS+= _setjmp.S fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.c modf.S
+SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \
+ fpsetround.c fpsetsticky.c
+SRCS+= fixunsdfsi.S mul.S umul.S saveregs.S setjmp.S sigsetjmp.S