From ffb23677a4b95dd2a048e17ccbe35941ec391a7e Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Wed, 29 Aug 2001 01:48:13 +0000 Subject: Last pieces needed to build libc on sparc64. --- lib/libc/arch/sparc64/Makefile.inc | 35 ++++++++++++++++++++++++++++++++++ lib/libc/arch/sparc64/gen/Makefile.inc | 6 ++++++ 2 files changed, 41 insertions(+) create mode 100644 lib/libc/arch/sparc64/Makefile.inc create mode 100644 lib/libc/arch/sparc64/gen/Makefile.inc (limited to 'lib') 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 -- cgit v1.2.3