diff options
author | Peter Wemm <peter@FreeBSD.org> | 1997-08-29 14:02:14 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1997-08-29 14:02:14 +0000 |
commit | 3d9616690c3cc603fb22f72ab9fae320c8bd7b70 (patch) | |
tree | 1797635f478f62ca903b4198f179dacccf03cb3d /gnu/lib | |
parent | 7e48c2c41697eab95fa91d97bc4f4a9b5f7d4e37 (diff) |
Notes
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/libgmp/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gnu/lib/libgmp/Makefile b/gnu/lib/libgmp/Makefile index 86380b32e39b6..c7b0c8a4f863a 100644 --- a/gnu/lib/libgmp/Makefile +++ b/gnu/lib/libgmp/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.12 1997/08/17 21:24:06 andreas Exp $ +# $Id: Makefile,v 1.13 1997/08/21 15:51:51 bde Exp $ # LIB= gmp @@ -9,8 +9,7 @@ SUBDIR= doc GMPDIR= ${.CURDIR}/../../../contrib/libgmp .PATH: ${GMPDIR} ${GMPDIR}/mpn ${GMPDIR}/mpn/x86 ${GMPDIR}/mpn/generic -CFLAGS+= -I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86 \ - -DBROKEN_ALIGN +CFLAGS+= -I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86 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 \ @@ -66,6 +65,16 @@ SRCS= memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c mp_bpl.c \ extract-double.c insert-double.c \ ${MPN_SRCS} ${MPZ_SRCS} ${MPF_SRCS} ${MPQ_SRCS} +.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 @@ -73,6 +82,10 @@ asm-syntax.h: (echo "#define BSD_SYNTAX" ; \ echo "#include \"syntax.h\"") > asm-syntax.h +CFLAGS+= -DBROKEN_ALIGN + +.endif + beforedepend all: mpz mpf mpq sysdep.h asm-syntax.h CLEANFILES+= sysdep.h asm-syntax.h |