diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1997-08-29 13:58:08 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1997-08-29 13:58:08 +0000 |
| commit | 7e48c2c41697eab95fa91d97bc4f4a9b5f7d4e37 (patch) | |
| tree | 1032812a6cde670046420ae675a13910f59652b4 /gnu/lib | |
| parent | fa170aac22345ecc2766db3bc1341d37a2f40709 (diff) | |
Notes
Diffstat (limited to 'gnu/lib')
| -rw-r--r-- | gnu/lib/libmp/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gnu/lib/libmp/Makefile b/gnu/lib/libmp/Makefile index 4d32cdb33c67..0839f0b30532 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 |
