summaryrefslogtreecommitdiffstats
path: root/contrib/libgmp/mpq/tests/Makefile.in
blob: d7921c0f36c8ed1704833396a76510135bd122a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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
OpenPOWER on IntegriCloud