summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-29 13:58:08 +0000
committerpeter <peter@FreeBSD.org>1997-08-29 13:58:08 +0000
commite6477d723f716e57cffd67d4453f806a26b8868e (patch)
tree0f572fccd586728ab5baa23afee0d2b9ea02ebc3 /gnu
parent7485b2f991807c548ca96de07357858f03a5c827 (diff)
downloadFreeBSD-src-e6477d723f716e57cffd67d4453f806a26b8868e.zip
FreeBSD-src-e6477d723f716e57cffd67d4453f806a26b8868e.tar.gz
Insert hooks for building under elf.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libmp/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/gnu/lib/libmp/Makefile b/gnu/lib/libmp/Makefile
index 4d32cdb..0839f0b 100644
--- a/gnu/lib/libmp/Makefile
+++ b/gnu/lib/libmp/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.10 1997/02/22 15:43:00 peter Exp $
+# $Id: Makefile,v 1.11 1997/04/10 16:33:32 bde Exp $
#
LIB= mp
@@ -9,7 +9,7 @@ GMPDIR= ${.CURDIR}/../../../contrib/libgmp
${GMPDIR}/mpbsd
CFLAGS+= -I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86 \
- -I${GMPDIR}/mpz -DBROKEN_ALIGN -DBERKELEY_MP
+ -I${GMPDIR}/mpz -DBERKELEY_MP
MPN_SRC_C= inlines.c cmp.c divmod_1.c divrem.c divrem_1.c dump.c \
mod_1.c mul.c mul_n.c random2.c sqrtrem.c get_str.c set_str.c \
@@ -31,6 +31,16 @@ SRCS= memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c \
beforedepend all: mpz sysdep.h asm-syntax.h
+.if defined(BINFORMAT) && ${BINFORMAT} == elf
+
+sysdep.h: ${GMPDIR}/mpn/sysv.h
+ cp ${GMPDIR}/mpn/sysv.h sysdep.h
+
+asm-syntax.h:
+ (echo "#define ELF_SYNTAX" ; \
+ echo "#include \"syntax.h\"") > asm-syntax.h
+.else
+
sysdep.h: ${GMPDIR}/mpn/bsd.h
cp ${GMPDIR}/mpn/bsd.h sysdep.h
@@ -38,6 +48,10 @@ asm-syntax.h:
(echo "#define BSD_SYNTAX" ; \
echo "#include \"syntax.h\"") > asm-syntax.h
+CFLAGS+= -DBROKEN_ALIGN
+
+.endif
+
CLEANFILES+= sysdep.h asm-syntax.h
# Grrr. This package contains modules in separate subdirs that have the
OpenPOWER on IntegriCloud