head	1.5;
access;
symbols
	RELENG_2_1_7_RELEASE:1.2.2.3
	RELENG_2_1_6_1_RELEASE:1.2.2.3
	RELENG_2_1_6_RELEASE:1.2.2.3
	RELENG_2_1_5_RELEASE:1.2.2.3
	RELENG_2_1_0:1.2.0.2
	gmp_1_3_2:1.1.1.1
	GNU:1.1.1;
locks; strict;
comment	@# @;


1.5
date	96.10.20.09.23.37;	author markm;	state dead;
branches;
next	1.4;

1.4
date	96.06.24.04.22.37;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	96.03.04.16.06.03;	author markm;	state Exp;
branches;
next	1.2;

1.2
date	95.11.13.18.42.23;	author markm;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	95.11.12.14.40.41;	author markm;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	95.11.12.14.40.41;	author markm;	state Exp;
branches;
next	;

1.2.2.1
date	96.05.29.22.30.49;	author jkh;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	96.06.05.02.38.32;	author jkh;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	96.06.24.02.40.24;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Remove the old libgmp. Version 2.0.2 is about to hit prime time.
@
text
@# Makefile for tests for GNU MP

# Copyright (C) 1991, 1993 Free Software Foundation, Inc.

# This file is part of the GNU MP Library.

# The GNU MP Library is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# The GNU MP Library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with the GNU MP Library; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

.PATH: ${.CURDIR}/.. ${.OBJDIR} ${.OBJDIR}/../libgmp

CC = gcc

TEST_LIBS = -lgmp
OPT = -O -g
CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -I${.OBJDIR}/.. -I${.CURDIR}/../libgmp -I${.OBJDIR}/../libgmp $(OPT)

TEST_SRCS = tst-mul.c tst-dm.c tst-dm_ui.c tst-mdm.c tst-mdm_ui.c tst-gcd.c \
 tst-sqrtrem.c tst-convert.c
TEST_OBJS = tst-mul.o tst-dm.o tst-dm_ui.o tst-mdm.o tst-mdm_ui.o tst-gcd.o \
 tst-sqrtrem.o tst-convert.o
TESTS = tst-mul tst-dm tst-dm_ui tst-mdm tst-mdm_ui tst-gcd \
 tst-sqrtrem tst-convert

tests: $(TESTS)
	for i in $(TESTS); do echo $$i; ./$$i; done

tst-mul: tst-mul.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-dm: tst-dm.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-dm_ui: tst-dm_ui.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-mdm: tst-mdm.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-mdm_ui: tst-mdm_ui.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-gcd: tst-gcd.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-sqrtrem: tst-sqrtrem.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)
tst-convert: tst-convert.o $(TEST_LIBS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(TEST_LIBS)

$(TEST_PREFIX)clean:
	rm -f $(TESTS) $(TEST_OBJS) core

tst-convert.o : tst-convert.c gmp.h urandom.h 
tst-dm.o : tst-dm.c gmp.h urandom.h 
tst-dm_ui.o : tst-dm_ui.c gmp.h urandom.h 
tst-gcd.o : tst-gcd.c gmp.h urandom.h 
tst-mdm.o : tst-mdm.c gmp.h urandom.h 
tst-mdm_ui.o : tst-mdm_ui.c gmp.h urandom.h 
tst-mul.o : tst-mul.c gmp.h gmp-impl.h gmp-mparam.h longlong.h urandom.h 
tst-sqrtrem.o : tst-sqrtrem.c gmp.h urandom.h 
@


1.4
log
@Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
@
text
@@


1.3
log
@ Make "make tests" actually work. This is an extremely crude hack, but
 I figure that as this is not part of any automated processes, WTH.
@
text
@d21 1
a21 1
.PATH: ${.CURDIR}/.. ${.CURDIR}/../obj ${.CURDIR}/../libgmp/obj
d27 1
a27 1
CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../obj -I${.CURDIR}/../libgmp -I${.CURDIR}/../libgmp/obj $(OPT)
@


1.2
log
@Make the tests work. libmp and libgmp must be installed for this
to work.
@
text
@d27 1
a27 1
CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../obj -I${.CURDIR}/../libgmp/obj $(OPT)
d59 8
a66 8
tst-convert.o : tst-convert.c ../gmp.h urandom.h 
tst-dm.o : tst-dm.c ../gmp.h urandom.h 
tst-dm_ui.o : tst-dm_ui.c ../gmp.h urandom.h 
tst-gcd.o : tst-gcd.c ../gmp.h urandom.h 
tst-mdm.o : tst-mdm.c ../gmp.h urandom.h 
tst-mdm_ui.o : tst-mdm_ui.c ../gmp.h urandom.h 
tst-mul.o : tst-mul.c ../gmp.h ../gmp-impl.h ../gmp-mparam.h ../longlong.h urandom.h 
tst-sqrtrem.o : tst-sqrtrem.c ../gmp.h urandom.h 
@


1.2.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
@d27 1
a27 1
CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../obj -I${.CURDIR}/../libgmp -I${.CURDIR}/../libgmp/obj $(OPT)
d59 8
a66 8
tst-convert.o : tst-convert.c gmp.h urandom.h 
tst-dm.o : tst-dm.c gmp.h urandom.h 
tst-dm_ui.o : tst-dm_ui.c gmp.h urandom.h 
tst-gcd.o : tst-gcd.c gmp.h urandom.h 
tst-mdm.o : tst-mdm.c gmp.h urandom.h 
tst-mdm_ui.o : tst-mdm_ui.c gmp.h urandom.h 
tst-mul.o : tst-mul.c gmp.h gmp-impl.h gmp-mparam.h longlong.h urandom.h 
tst-sqrtrem.o : tst-sqrtrem.c gmp.h urandom.h 
@


1.2.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
@d27 1
a27 1
CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../obj -I${.CURDIR}/../libgmp/obj $(OPT)
d59 8
a66 8
tst-convert.o : tst-convert.c ../gmp.h urandom.h 
tst-dm.o : tst-dm.c ../gmp.h urandom.h 
tst-dm_ui.o : tst-dm_ui.c ../gmp.h urandom.h 
tst-gcd.o : tst-gcd.c ../gmp.h urandom.h 
tst-mdm.o : tst-mdm.c ../gmp.h urandom.h 
tst-mdm_ui.o : tst-mdm_ui.c ../gmp.h urandom.h 
tst-mul.o : tst-mul.c ../gmp.h ../gmp-impl.h ../gmp-mparam.h ../longlong.h urandom.h 
tst-sqrtrem.o : tst-sqrtrem.c ../gmp.h urandom.h 
@


1.2.2.3
log
@Merge from HEAD.
@
text
@d27 1
a27 1
CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../obj -I${.CURDIR}/../libgmp -I${.CURDIR}/../libgmp/obj $(OPT)
d59 8
a66 8
tst-convert.o : tst-convert.c gmp.h urandom.h 
tst-dm.o : tst-dm.c gmp.h urandom.h 
tst-dm_ui.o : tst-dm_ui.c gmp.h urandom.h 
tst-gcd.o : tst-gcd.c gmp.h urandom.h 
tst-mdm.o : tst-mdm.c gmp.h urandom.h 
tst-mdm_ui.o : tst-mdm_ui.c gmp.h urandom.h 
tst-mul.o : tst-mul.c gmp.h gmp-impl.h gmp-mparam.h longlong.h urandom.h 
tst-sqrtrem.o : tst-sqrtrem.c gmp.h urandom.h 
@


1.1
log
@Initial revision
@
text
@d21 2
d25 1
a25 1
TEST_LIBS = ../libgmp.a
d27 1
a27 1
CFLAGS = -I. -I.. $(OPT)
@


1.1.1.1
log
@GNU MP (Multiprecision) library. This is needed by secure RPC (being
done by Bill Paul) and various other BSD programs.
Obtained from:FSF
@
text
@@
