head	1.26;
access;
symbols
	RELENG_4_11_0_RELEASE:1.22.2.2
	RELENG_4_11:1.22.2.2.0.10
	RELENG_4_11_BP:1.22.2.2
	RELENG_4_10_0_RELEASE:1.22.2.2
	RELENG_4_10:1.22.2.2.0.8
	RELENG_4_10_BP:1.22.2.2
	RELENG_4_9_0_RELEASE:1.22.2.2
	RELENG_4_9:1.22.2.2.0.6
	RELENG_4_9_BP:1.22.2.2
	RELENG_4_8_0_RELEASE:1.22.2.2
	RELENG_4_8:1.22.2.2.0.4
	RELENG_4_8_BP:1.22.2.2
	RELENG_4_7_0_RELEASE:1.22.2.2
	RELENG_4_7:1.22.2.2.0.2
	RELENG_4_7_BP:1.22.2.2
	RELENG_4_6_2_RELEASE:1.22.2.1
	RELENG_4_6_1_RELEASE:1.22.2.1
	RELENG_4_6_0_RELEASE:1.22.2.1
	RELENG_4_6:1.22.2.1.0.4
	RELENG_4_6_BP:1.22.2.1
	RELENG_4_5_0_RELEASE:1.22.2.1
	RELENG_4_5:1.22.2.1.0.2
	RELENG_4_5_BP:1.22.2.1
	RELENG_4_4_0_RELEASE:1.22
	RELENG_4_4:1.22.0.6
	RELENG_4_4_BP:1.22
	RELENG_4_3_0_RELEASE:1.22
	RELENG_4_3:1.22.0.4
	RELENG_4_3_BP:1.22
	RELENG_4_2_0_RELEASE:1.22
	RELENG_4_1_1_RELEASE:1.22
	PRE_SMPNG:1.25
	RELENG_4_1_0_RELEASE:1.22
	RELENG_3_5_0_RELEASE:1.21.2.1
	RELENG_4_0_0_RELEASE:1.22
	RELENG_4:1.22.0.2
	RELENG_4_BP:1.22
	RELENG_3_4_0_RELEASE:1.21.2.1
	RELENG_3_3_0_RELEASE:1.21.2.1
	RELENG_3_2_PAO:1.21.0.4
	RELENG_3_2_PAO_BP:1.21
	RELENG_3_2_0_RELEASE:1.21
	RELENG_3_1_0_RELEASE:1.21
	RELENG_3:1.21.0.2
	RELENG_3_BP:1.21
	RELENG_2_2_8_RELEASE:1.8.2.1
	RELENG_3_0_0_RELEASE:1.19
	RELENG_2_2_7_RELEASE:1.8
	RELENG_2_2_6_RELEASE:1.8
	RELENG_2_2_5_RELEASE:1.8
	RELENG_2_2_2_RELEASE:1.8
	RELENG_2_2_1_RELEASE:1.8
	RELENG_2_2_0_RELEASE:1.8
	RELENG_2_1_7_RELEASE:1.3.2.3
	RELENG_2_1_6_1_RELEASE:1.3.2.3
	RELENG_2_1_6_RELEASE:1.3.2.3
	RELENG_2_2:1.8.0.2
	RELENG_2_2_BP:1.8
	RELENG_2_1_5_RELEASE:1.3.2.3
	RELENG_2_1_0:1.3.0.2;
locks; strict;
comment	@# @;


1.26
date	2001.08.10.18.35.04;	author dd;	state dead;
branches;
next	1.25;

1.25
date	2000.04.17.18.50.15;	author obrien;	state Exp;
branches;
next	1.24;

1.24
date	2000.04.17.18.48.29;	author obrien;	state Exp;
branches;
next	1.23;

1.23
date	2000.04.15.20.41.04;	author steve;	state Exp;
branches;
next	1.22;

1.22
date	99.08.27.23.32.50;	author peter;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	98.12.27.16.52.55;	author bde;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	98.12.16.04.59.53;	author imp;	state Exp;
branches;
next	1.19;

1.19
date	98.08.30.01.56.58;	author jb;	state Exp;
branches;
next	1.18;

1.18
date	98.05.24.21.51.50;	author eivind;	state Exp;
branches;
next	1.17;

1.17
date	98.05.15.06.42.01;	author jb;	state Exp;
branches;
next	1.16;

1.16
date	98.03.12.13.03.05;	author bde;	state Exp;
branches;
next	1.15;

1.15
date	98.01.25.09.44.18;	author jb;	state Exp;
branches;
next	1.14;

1.14
date	97.08.29.14.02.14;	author peter;	state Exp;
branches;
next	1.13;

1.13
date	97.08.21.15.51.51;	author bde;	state Exp;
branches;
next	1.12;

1.12
date	97.08.17.21.24.06;	author andreas;	state Exp;
branches;
next	1.11;

1.11
date	97.04.10.16.33.22;	author bde;	state Exp;
branches;
next	1.10;

1.10
date	97.02.22.15.42.57;	author peter;	state Exp;
branches;
next	1.9;

1.9
date	97.01.14.05.47.11;	author jkh;	state Exp;
branches;
next	1.8;

1.8
date	96.10.24.18.00.43;	author markm;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	96.10.20.09.27.45;	author markm;	state Exp;
branches;
next	1.6;

1.6
date	96.10.20.09.06.06;	author markm;	state dead;
branches;
next	1.5;

1.5
date	96.08.30.21.20.12;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	96.05.07.23.14.38;	author wosch;	state Exp;
branches;
next	1.3;

1.3
date	95.11.26.09.51.42;	author bde;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	95.11.25.00.14.03;	author peter;	state Exp;
branches;
next	1.1;

1.1
date	95.11.13.19.13.19;	author markm;	state Exp;
branches;
next	;

1.22.2.1
date	2001.09.24.09.54.03;	author ru;	state Exp;
branches;
next	1.22.2.2;

1.22.2.2
date	2002.07.22.14.21.44;	author ru;	state Exp;
branches;
next	1.22.2.3;

1.22.2.3
date	2012.11.17.07.22.53;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1
date	99.08.29.14.28.49;	author peter;	state Exp;
branches;
next	;

1.8.2.1
date	98.09.11.14.27.01;	author dt;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	99.09.05.11.05.17;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	96.05.29.22.30.45;	author jkh;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	96.06.05.02.38.30;	author jkh;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	96.06.24.02.40.08;	author jkh;	state Exp;
branches;
next	1.3.2.4;

1.3.2.4
date	99.09.05.11.10.11;	author peter;	state Exp;
branches;
next	;


desc
@@


1.26
log
@Remove libgmp build infrastructure.
@
text
@#
# $FreeBSD: src/gnu/lib/libgmp/Makefile,v 1.25 2000/04/17 18:50:15 obrien Exp $
#

LIB=	gmp

SUBDIR=	doc

GMPDIR=	${.CURDIR}/../../../contrib/libgmp
.PATH: ${GMPDIR} ${GMPDIR}/mpn

.if ${MACHINE_ARCH} == "alpha"
.PATH: ${GMPDIR}/mpn/alpha ${GMPDIR}/mpn/generic

CFLAGS+=	-I${GMPDIR}/mpn/alpha

MPN_SRC_ASM=	add_n.s addmul_1.s lshift.s mul_1.s rshift.s sub_n.s submul_1.s udiv_qrnnd.S

.elif ${MACHINE_ARCH} == "i386"
.PATH: ${GMPDIR}/mpn/x86 ${GMPDIR}/mpn/generic

CFLAGS+=	-I${GMPDIR}/mpn/x86

MPN_SRC_ASM=	add_n.S addmul_1.S lshift.S mul_1.S rshift.S sub_n.S submul_1.S

.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
.PATH: ${GMPDIR}/mpn/mips3 ${GMPDIR}/mpn/generic

CFLAGS+=	-I${GMPDIR}/mpn/mips3

MPN_SRC_ASM=	add_n.s addmul_1.s lshift.s mul_1.s rshift.s sub_n.s submul_1.s

.elif ${MACHINE_ARCH} == "m68k"
.PATH: ${GMPDIR}/mpn/m68k ${GMPDIR}/mpn/generic

CFLAGS+=	-I${GMPDIR}/mpn/m68k

MPN_SRC_ASM=	add_n.S lshift.S rshift.S sub_n.S

.elif ${MACHINE_ARCH} == "arm32" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "ppc" ||  ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
.PATH: ${GMPDIR}/mpn/generic

MPN_SRC_ASM=
.endif

CFLAGS+=	-I${GMPDIR} -I${GMPDIR}/mpn/generic

MPN_SRC_C=	add_n.c addmul_1.c bdivmod.c cmp.c divmod_1.c divrem.c \
		divrem_1.c dump.c gcd.c gcd_1.c gcdext.c get_str.c hamdist.c \
		inlines.c lshift.c mod_1.c mul.c mul_1.c mul_n.c perfsqr.c \
		popcount.c pre_mod_1.c random2.c rshift.c scan0.c scan1.c \
		set_str.c sqrtrem.c mp_bases.c

MPZ_SRCS=	mpz/init.c mpz/set.c mpz/set_ui.c mpz/set_si.c mpz/set_str.c \
		mpz/set_d.c mpz/set_f.c mpz/set_q.c mpz/iset.c mpz/iset_ui.c \
		mpz/iset_si.c mpz/iset_str.c mpz/iset_d.c mpz/clear.c \
		mpz/get_ui.c mpz/get_si.c mpz/get_str.c mpz/get_d.c \
		mpz/size.c mpz/sizeinbase.c mpz/add.c mpz/add_ui.c \
		mpz/sub.c mpz/sub_ui.c mpz/mul.c mpz/mul_ui.c mpz/gcd.c \
		mpz/gcd_ui.c mpz/gcdext.c mpz/sqrt.c mpz/sqrtrem.c \
		mpz/powm.c mpz/powm_ui.c mpz/cmp.c mpz/cmp_ui.c mpz/cmp_si.c \
		mpz/mul_2exp.c mpz/fdiv_q_2exp.c mpz/fdiv_r_2exp.c \
		mpz/tdiv_q_2exp.c mpz/tdiv_r_2exp.c mpz/abs.c mpz/neg.c \
		mpz/com.c mpz/and.c mpz/ior.c mpz/inp_raw.c mpz/inp_str.c \
		mpz/out_raw.c mpz/out_str.c mpz/perfsqr.c mpz/random.c \
		mpz/random2.c mpz/pow_ui.c mpz/ui_pow_ui.c mpz/setbit.c \
		mpz/clrbit.c mpz/fac_ui.c mpz/pprime_p.c mpz/realloc.c \
		mpz/getlimbn.c mpz/popcount.c mpz/hamdist.c mpz/cdiv_qr.c \
		mpz/cdiv_q.c mpz/cdiv_r.c mpz/cdiv_qr_ui.c mpz/cdiv_q_ui.c \
		mpz/cdiv_r_ui.c mpz/cdiv_ui.c mpz/fdiv_qr.c mpz/fdiv_q.c \
		mpz/fdiv_r.c mpz/fdiv_qr_ui.c mpz/fdiv_q_ui.c mpz/fdiv_r_ui.c \
		mpz/fdiv_ui.c mpz/tdiv_qr.c mpz/tdiv_q.c mpz/tdiv_r.c \
		mpz/tdiv_qr_ui.c mpz/tdiv_q_ui.c mpz/tdiv_r_ui.c mpz/mod.c \
		mpz/divexact.c mpz/array_init.c mpz/scan0.c mpz/scan1.c \
		mpz/jacobi.c mpz/legendre.c mpz/invert.c

MPF_SRCS=	mpf/init.c mpf/init2.c mpf/set.c mpf/set_ui.c mpf/set_si.c \
		mpf/set_str.c mpf/set_d.c mpf/set_z.c mpf/iset.c \
		mpf/iset_ui.c mpf/iset_si.c mpf/iset_str.c mpf/iset_d.c \
		mpf/clear.c mpf/get_str.c mpf/dump.c mpf/size.c mpf/eq.c \
		mpf/reldiff.c mpf/sqrt.c mpf/random2.c mpf/inp_str.c \
		mpf/out_str.c mpf/add.c mpf/add_ui.c mpf/sub.c mpf/sub_ui.c \
		mpf/ui_sub.c mpf/mul.c mpf/mul_ui.c mpf/div.c mpf/div_ui.c \
		mpf/cmp.c mpf/cmp_ui.c mpf/cmp_si.c mpf/mul_2exp.c \
		mpf/div_2exp.c mpf/abs.c mpf/neg.c mpf/set_q.c mpf/get_d.c \
		mpf/set_dfl_prec.c mpf/set_prc.c mpf/set_prc_raw.c \
		mpf/get_prc.c mpf/ui_div.c mpf/sqrt_ui.c

MPQ_SRCS=	mpq/add.c mpq/canonicalize.c mpq/clear.c mpq/cmp.c \
		mpq/cmp_ui.c mpq/div.c mpq/get_d.c mpq/get_den.c mpq/get_num.c \
		mpq/init.c mpq/inv.c mpq/mul.c mpq/neg.c mpq/set.c \
		mpq/set_den.c mpq/set_num.c mpq/set_si.c mpq/set_ui.c \
		mpq/sub.c mpq/equal.c mpq/set_z.c

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_SRC_ASM} \
	asm-syntax.h sysdep.h

# Look though the generic C source for names that don't have assembly
# source version.
.for _src in ${MPN_SRC_C}
.if (${MPN_SRC_ASM:R:M${_src:R}} == "")
SRCS+=$(_src)
.endif
.endfor

SRCS+=	${MPZ_SRCS} ${MPF_SRCS} ${MPQ_SRCS}

.if defined(OBJFORMAT) && ${OBJFORMAT} == 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

asm-syntax.h:
	(echo "#define BSD_SYNTAX" ; \
		echo "#include \"syntax.h\"") > asm-syntax.h

CFLAGS+=	-DBROKEN_ALIGN

.endif

beforedepend all: mpz mpf mpq

CLEANFILES+=	sysdep.h asm-syntax.h

# Grrr. This package contains modules in separate subdirs that have the
# same name. Nasty hack to keep them from being found by being in
# .PATH:s
#
mpz mpf mpq:
	mkdir ${.TARGET}

CLEANDIRS+=	${.OBJDIR}/mpz \
		${.OBJDIR}/mpf \
		${.OBJDIR}/mpq

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${GMPDIR}/gmp.h ${DESTDIR}/usr/include

.include "Makefile.inc"
.include <bsd.lib.mk>
@


1.25
log
@Fix the .PATH style nits.  Other style nits left for later.
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/lib/libgmp/Makefile,v 1.24 2000/04/17 18:48:29 obrien Exp $
@


1.24
log
@Use the non-asm routines for IA-64, PPC, and arm32 ports.
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/lib/libgmp/Makefile,v 1.23 2000/04/15 20:41:04 steve Exp $
d10 1
a10 1
.PATH:	${GMPDIR} ${GMPDIR}/mpn
d13 1
a13 1
.PATH:		${GMPDIR}/mpn/alpha ${GMPDIR}/mpn/generic
d20 1
a20 1
.PATH:		${GMPDIR}/mpn/x86 ${GMPDIR}/mpn/generic
d27 1
a27 1
.PATH:		${GMPDIR}/mpn/mips3 ${GMPDIR}/mpn/generic
d34 1
a34 1
.PATH:		${GMPDIR}/mpn/m68k ${GMPDIR}/mpn/generic
d41 1
a41 1
.PATH:		${GMPDIR}/mpn/generic
@


1.23
log
@Use the non-asm routines (for now) on the sparc and sparc64 ports.
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/lib/libgmp/Makefile,v 1.22 1999/08/27 23:32:50 peter Exp $
d40 1
a40 1
.elif ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
@


1.22
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d40 4
@


1.22.2.1
log
@Style.
@
text
@d2 1
a2 1
# $FreeBSD: src/gnu/lib/libgmp/Makefile,v 1.22 1999/08/27 23:32:50 peter Exp $
d138 3
a140 1
CLEANDIRS+=	mpz mpf mpq
@


1.22.2.2
log
@MFC: bsd.incs.mk support and assorted header fixes:

Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/.

Install sys/netatm/*/*.h to /usr/include/netatm/*/.

Don't install compatibility symlinks for <machine/soundcard.h>
and <machine/joystick.h>.

Don't install IPFILTER headers.  Userland utilities fetch them
directly, and they were not visible in the SHARED=symlinks case.

Resurrect SHARED=symlinks in Makefile.inc1.

PR:		docs/29534, bin/28002
@
text
@d2 1
a2 1
# $FreeBSD$
d140 3
a142 1
INCS=		gmp.h
@


1.22.2.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/gnu/lib/libgmp/Makefile 100501 2002-07-22 14:21:52Z ru $
@


1.21
log
@Removed rotten, unused implicit rules.  The ld -O in one might have been
harmful if it were used.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.20 1998/12/16 04:59:53 imp Exp $
@


1.21.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.20
log
@Add support for building on MIPS based systems.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.19 1998/08/30 01:56:58 jb Exp $
a144 13

.S.o:
	${CC} ${SFLAGS} ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}

.s.o:
	${AS} ${SFLAGS} ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}

.S.po:
	${CC} -DPROF ${SFLAGS} ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}

.S.so:
	${CC} -fpic -DPIC ${SFLAGS} ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
	@@${LD} -O ${.TARGET} -x -r ${.TARGET}
@


1.19
log
@BINFORMAT -> OBJFORMAT ready for E-day.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.18 1998/05/24 21:51:50 eivind Exp $
d25 7
@


1.18
log
@Don't blow away parts of the sourcetree on a 'make clean'.  This was
only harmful for building from a read-only filesystem - the parts
blown away were old rm'ed directories.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.17 1998/05/15 06:42:01 jb Exp $
d99 1
a99 1
.if defined(BINFORMAT) && ${BINFORMAT} == elf
@


1.17
log
@Change the order of the include paths so that the architecture specific
directory is searched before the generic one. You can guess what was
happening.. all the world's assumed to be 32-bit.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.16 1998/03/12 13:03:05 bde Exp $
d131 3
a133 3
CLEANDIRS+=	${.OBJDIR}/mpz ${.CURDIR}/mpz \
		${.OBJDIR}/mpf ${.CURDIR}/mpf \
		${.OBJDIR}/mpq ${.CURDIR}/mpq
@


1.16
log
@Put sources in SRCS and don't depend on them in beforedepend.  IIRC,
this is to fix `make -j50' where `make -j18' worked.  The race may
just have been more likely to be lost for -j50.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.15 1998/01/25 09:44:18 jb Exp $
a11 2
CFLAGS+=	-I${GMPDIR} -I${GMPDIR}/mpn/generic

d34 2
@


1.15
log
@Modify for MACHINE_ARCH support instead of assuming just x86.
Added alpha and m68k stuff.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.14 1997/08/29 14:02:14 peter Exp $
d86 2
a87 1
	${MPN_SRC_ASM}
d120 1
a120 1
beforedepend all: mpz mpf mpq sysdep.h asm-syntax.h
@


1.14
log
@Insert first cut of hooks for compiling under ELF.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.13 1997/08/21 15:51:51 bde Exp $
d10 1
a10 1
.PATH:	${GMPDIR} ${GMPDIR}/mpn ${GMPDIR}/mpn/x86 ${GMPDIR}/mpn/generic
d12 1
a12 1
CFLAGS+=	-I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86
d14 11
a24 4
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 \
		scan0.c scan1.c popcount.c hamdist.c gcd_1.c pre_mod_1.c \
		perfsqr.c bdivmod.c gcd.c gcdext.c mp_bases.c
d28 14
a41 1
MPN_SRCS=	${MPN_SRC_C} ${MPN_SRC_ASM}
d86 11
a96 1
	${MPN_SRCS} ${MPZ_SRCS} ${MPF_SRCS} ${MPQ_SRCS}
d140 3
@


1.13
log
@Backed out previous commit.  mp.h is installed from libmp and should not
be installed from here.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.12 1997/08/17 21:24:06 andreas Exp $
d12 1
a12 2
CFLAGS+=	-I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86 \
		-DBROKEN_ALIGN
d68 10
d84 4
@


1.12
log
@during the ,beforeinstall' target mp.h has to be installed as well
to /usr/include. Otherwise chkey and newkey can't be compiled
properly during make world.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.11 1997/04/10 16:33:22 bde Exp $
a93 2
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${GMPDIR}/mp.h ${DESTDIR}/usr/include
@


1.11
log
@Fixed bogus existence test related to searching for a nearby obj
directory.  The object (= current) directory always exists, so
don't search for it.

Use ${.TARGET} instead of deprecated $@@.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.10 1997/02/22 15:42:57 peter Exp $
d94 2
@


1.10
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
# $Id$
d85 1
a85 5
.if exists(${.OBJDIR})
	mkdir ${.OBJDIR}/$@@
.else
	mkdir ${.CURDIR}/$@@
.endif
@


1.9
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.8
log
@Fix this so that dependancies work properly.
Thanks Andrey!
Submitted by:	ache
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.7 1996/10/20 09:27:45 markm Exp $
@


1.8.2.1
log
@MFC rev. 1.18: don't remove parts of source tree.

PR:	7677
Pointed out by:	bde
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.8 1996/10/24 18:00:43 markm Exp $
d91 3
a93 3
CLEANDIRS+=	${.OBJDIR}/mpz \
		${.OBJDIR}/mpf \
		${.OBJDIR}/mpq
@


1.8.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.7
log
@BMakefiles for gmp-2.0.2
Requested by: ache
Made world by: chuckr
@
text
@d2 1
a2 1
# $Id$
d69 4
a72 3
.ifmake all || depend
.BEGIN:
	cp -f ${GMPDIR}/mpn/bsd.h sysdep.h
d75 2
a76 1
.endif
d84 1
d86 1
a86 4
beforedepend:
	test -d ${.OBJDIR}/mpz || mkdir ${.OBJDIR}/mpz
	test -d ${.OBJDIR}/mpf || mkdir ${.OBJDIR}/mpf
	test -d ${.OBJDIR}/mpq || mkdir ${.OBJDIR}/mpq
d88 1
a88 4
beforedepend:
	test -d ${.CURDIR}/mpz || mkdir ${.CURDIR}/mpz
	test -d ${.OBJDIR}/mpf || mkdir ${.OBJDIR}/mpf
	test -d ${.OBJDIR}/mpq || mkdir ${.OBJDIR}/mpq
@


1.6
log
@Remove the old libgmp. Version 2.0.2 is about to hit prime time.
@
text
@d1 96
a96 40
# Makefile for libgmp
# $Id: Makefile,v 1.5 1996/08/30 21:20:12 peter Exp markm $

LIB=    gmp
SRCS=	$(GMP_SRCS)
CLEANFILES+=	cre-mparam cre-conv-tab gmp-mparam.h mp_bases.c

GMP_SRCS=	mp_bases.c $(MPZ_SRCS) $(MPQ_SRCS) $(MPN_SRCS) $(IMPL_SRCS)

CFLAGS+=	-I${.CURDIR} -I${.OBJDIR} -Wall -Wstrict-prototypes -DLOCALE

MPN_SRCS=	mpn_add.c mpn_sub.c mpn_cmp.c mpn_mul.c mpn_div.c mpn_dm_1.c \
		mpn_mod_1.c mpn_lshift.c mpn_rshift.c mpn_rshiftci.c mpn_sqrt.c

IMPL_SRCS=	memory.c mp_set_fns.c _mpz_set_str.c _mpz_get_str.c \
		mpz_realloc.c mp_clz_tab.c

MPZ_SRCS=	mpz_init.c mpz_set.c mpz_set_ui.c mpz_set_si.c mpz_set_str.c \
		mpz_iset.c mpz_iset_ui.c mpz_iset_si.c mpz_iset_str.c \
		mpz_clear.c mpz_get_ui.c mpz_get_si.c mpz_get_str.c \
		mpz_size.c mpz_sizeinb.c mpz_add.c mpz_add_ui.c mpz_sub.c \
		mpz_sub_ui.c mpz_mul.c mpz_mul_ui.c mpz_div.c mpz_div_ui.c \
		mpz_mod.c mpz_mod_ui.c mpz_dm.c mpz_dm_ui.c mpz_mdiv.c \
		mpz_mmod.c mpz_mdm.c mpz_mdiv_ui.c mpz_mmod_ui.c mpz_mdm_ui.c \
		mpz_gcd.c mpz_gcdext.c mpz_sqrt.c mpz_sqrtrem.c mpz_powm.c \
		mpz_powm_ui.c mpz_cmp.c mpz_cmp_ui.c mpz_cmp_si.c \
		mpz_mul_2exp.c mpz_div_2exp.c mpz_mod_2exp.c mpz_abs.c \
		mpz_neg.c mpz_com.c mpz_and.c mpz_ior.c mpz_inp_raw.c \
		mpz_inp_str.c mpz_out_raw.c mpz_out_str.c mpz_perfsqr.c \
		mpz_random.c mpz_random2.c mpz_pow_ui.c mpz_clrbit.c \
		mpz_fac_ui.c mpz_pprime_p.c

MPQ_SRCS=	mpq_init.c mpq_set.c mpq_set_ui.c mpq_set_si.c \
		mpq_set_num.c mpq_set_den.c mpq_get_num.c mpq_get_den.c \
		mpq_add.c mpq_sub.c mpq_mul.c mpq_div.c mpq_clear.c \
		mpq_cmp.c mpq_inv.c mpq_neg.c

SUBDIR+=	doc

beforedepend:	gmp-mparam.h mp_bases.c
d99 2
a100 8
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/gmp.h \
		${DESTDIR}/usr/include

cre-mparam: cre-mparam.c
	$(CC) $(CFLAGS) ${.CURDIR}/cre-mparam.c -o ${.TARGET}

cre-conv-tab: cre-conv-tab.c gmp-mparam.h
	$(CC) $(CFLAGS) -lm ${.CURDIR}/cre-conv-tab.c -o ${.TARGET}
d102 2
a103 1
cre-conv-tab: gmp-mparam.h
d105 2
a106 3
gmp-mparam.h: cre-mparam
	./cre-mparam > tmp-${.TARGET}
	mv -f tmp-${.TARGET} ${.TARGET}
d108 3
a110 3
mp_bases.c: cre-conv-tab
	./cre-conv-tab > tmp-${.TARGET}
	mv -f tmp-${.TARGET} ${.TARGET}
d112 1
@


1.5
log
@consistancy fixup

Submitted by: "Philippe Charnier" <charnier@@xp11.frmug.org>
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1996/05/07 23:14:38 wosch Exp $
@


1.4
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1995/11/26 09:51:42 bde Exp $
d43 2
a44 2
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.CURDIR}/gmp.h ${DESTDIR}/usr/include/
@


1.3
log
@Fixed beforeinstall rule.  .CURDIR was spelled .SRCDIR.

Changed beforeinstall rule to use `install -C' instead of `cmp -s'
and `install -c'.  `install -C' has exactly the right semantics
for installing headers and should be used elsewhere.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1995/11/25 00:14:03 peter Exp $
d56 1
a56 1
	mv tmp-${.TARGET} ${.TARGET}
d60 1
a60 1
	mv tmp-${.TARGET} ${.TARGET}
@


1.3.2.1
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1995/11/26 09:51:42 bde Exp $
d56 1
a56 1
	mv -f tmp-${.TARGET} ${.TARGET}
d60 1
a60 1
	mv -f tmp-${.TARGET} ${.TARGET}
@


1.3.2.2
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d56 1
a56 1
	mv tmp-${.TARGET} ${.TARGET}
d60 1
a60 1
	mv tmp-${.TARGET} ${.TARGET}
@


1.3.2.3
log
@Merge from HEAD.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3.2.2 1996/06/05 02:38:30 jkh Exp $
d56 1
a56 1
	mv -f tmp-${.TARGET} ${.TARGET}
d60 1
a60 1
	mv -f tmp-${.TARGET} ${.TARGET}
@


1.3.2.4
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.2
log
@Part two of a repository operation to sort out the libmp/libgmp builds.
After this commit, you should be able to build libmp and libgmp independently
and without being forced to do a make depend first..
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1 1995/11/13 19:13:19 markm Exp $
d43 2
a44 3
	cmp -s ${.SRCDIR}/gmp.h ${DESTDIR}/usr/include/gmp.h || \
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.SRCDIR}/gmp.h ${DESTDIR}/usr/include/gmp.h
@


1.1
log
@BBild libgmp from the sources already in ../libmp.
@
text
@d2 1
a2 1
# $Id$
a5 1
.PATH: ${.CURDIR}/../libmp
d8 1
a8 1
GMP_SRCS=	$(MPZ_SRCS) $(MPQ_SRCS) $(MPN_SRCS) $(IMPL_SRCS) mp_bases.c
d10 1
a10 1
CFLAGS+=	-I${.CURDIR}/../libmp -I${.OBJDIR} -Wall -Wstrict-prototypes -DLOCALE
d38 2
d43 1
a43 1
	cmp -s ${.CURDIR}/../libmp/gmp.h ${DESTDIR}/usr/include/gmp.h || \
d45 1
a45 1
		${.CURDIR}/../libmp/gmp.h ${DESTDIR}/usr/include/gmp.h
d48 4
a51 1
	$(CC) $(CFLAGS) ${.OODATE} -o ${.TARGET}
d53 1
a53 2
cre-conv-tab: cre-conv-tab.c
	$(CC) $(CFLAGS) -lm ${.OODATE} -o ${.TARGET}
@
