freebsd-dev/contrib/libgmp/mpq/tests/Makefile.in
Mark Murray aa9bc17601 Clean import of libgmp 2.0.2, with only the non-x86 bits removed.
BMakefiles and other bits will follow.

Requested by:	Andrey Chernov
Made world by:	Chuck Robey
1996-10-20 08:49:26 +00:00

49 lines
972 B
Makefile

# Makefile for mpq/tests for GNU MP
srcdir = .
CC = gcc
TEST_LIBS = ../../libgmp.a
INCLUDES = -I../../mpn -I$(srcdir)/../..
CFLAGS = -g -O
.c.o:
$(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $<
TEST_SRCS = t-cmp.c t-cmp_ui.c t-get_d.c
TEST_OBJS = t-cmp.o t-cmp_ui.o t-get_d.o
TESTS = t-cmp t-cmp_ui t-get_d
check: Makefile st-cmp st-cmp_ui st-get_d
@echo "The tests passed."
st-cmp: t-cmp
./t-cmp
touch $@
st-cmp_ui: t-cmp_ui
./t-cmp_ui
touch $@
st-get_d: t-get_d
./t-get_d
touch $@
t-cmp: t-cmp.o $(TEST_LIBS)
$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-cmp_ui: t-cmp_ui.o $(TEST_LIBS)
$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-get_d: t-get_d.o $(TEST_LIBS)
$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-cmp.o: $(srcdir)/t-cmp.c
t-cmp_ui.o: $(srcdir)/t-cmp_ui.c
t-get_d.o: $(srcdir)/t-get_d.c
clean mostlyclean:
rm -f *.o st-* $(TESTS)
distclean maintainer-clean: clean
rm -f Makefile config.status
Makefile: $(srcdir)/Makefile.in
$(SHELL) ./config.status