home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-02-23 | 2.2 KB | 65 lines |
- # 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.
-
- CC = gcc -mstubs
-
- TEST_LIBS = ../libgmp
- OPT = -O2 -DARCH
- CFLAGS = -I. -I.. $(OPT)
-
- TEST_SRCS = c.tst-mul c.tst-dm c.tst-dm_ui c.tst-mdm c.tst-mdm_ui c.tst-gcd \
- c.tstsqrtrem c.tstconvert
- TEST_OBJS = o.tst-mul o.tst-dm o.tst-dm_ui o.tst-mdm o.tst-mdm_ui o.tst-gcd \
- o.tstsqrtrem o.tstconvert
- TESTS = tst-mul tst-dm tst-dm_ui tst-mdm tst-mdm_ui tst-gcd \
- tstsqrtrem tstconvert
-
- tests: $(TESTS)
- $(dolines i,$(TESTS), run @.$i)
-
- tst-mul: c.tst-mul
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tst-dm: c.tst-dm
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tst-dm_ui: c.tst-dm_ui
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tst-mdm: c.tst-mdm
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tst-mdm_ui: c.tst-mdm_ui
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tst-gcd: c.tst-gcd
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tstsqrtrem: c.tstsqrtrem
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
- tstconvert: c.tstconvert
- $(CC) $(CFLAGS) -o $@ $@.c -l$(TEST_LIBS)
-
- $(TEST_PREFIX)clean:
- rm -f $(TESTS) $(TEST_OBJS)
-
- o.tstconvert : c.tstconvert ^.h.gmp h.urandom
- o.tst-dm : c.tst-dm ^.h.gmp h.urandom
- o.tst-dm_ui : c.tst-dm_ui ^.h.gmp h.urandom
- o.tst-gcd : c.tst-gcd ^.h.gmp h.urandom
- o.tst-mdm : c.tst-mdm ^.h.gmp h.urandom
- o.tst-mdm_ui : c.tst-mdm_ui ^.h.gmp h.urandom
- o.tst-mul : c.tst-mul ^.h.gmp ^.h.gmp-impl ^.h.gmp-mparam ^.h.longlong h.urandom
- o.tstsqrtrem : c.tstsqrtrem ^.h.gmp h.urandom
-