summaryrefslogtreecommitdiffstats
path: root/contrib/libgmp/mpz/tests/Makefile.in
blob: 5a0cf599e109995d3bf3173b0597cd4c1a34afce (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Makefile for mpz/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-mul.c t-tdiv.c t-tdiv_ui.c t-fdiv.c t-fdiv_ui.c t-gcd.c \
 t-gcd2.c dive.c t-sqrtrem.c convert.c io.c logic.c t-powm.c t-powm_ui.c \
  reuse.c
TEST_OBJS = t-mul.o t-tdiv.o t-tdiv_ui.o t-fdiv.o t-fdiv_ui.o t-gcd.o \
 t-gcd2.o dive.o t-sqrtrem.o convert.o io.o logic.o t-powm.o t-powm_ui.o \
 reuse.o
TESTS = t-mul t-tdiv t-tdiv_ui t-fdiv t-fdiv_ui t-gcd t-gcd2 \
 dive t-sqrtrem convert io logic t-powm t-powm_ui reuse

check: Makefile st-mul st-tdiv st-tdiv_ui st-fdiv st-fdiv_ui st-gcd st-gcd2 st-dive \
  st-sqrtrem st-convert st-io st-logic st-powm st-powm_ui st-reuse
	@echo "The tests passed."

st-mul: t-mul
	./t-mul
	touch $@
st-tdiv: t-tdiv
	./t-tdiv
	touch $@
st-tdiv_ui: t-tdiv_ui
	./t-tdiv_ui
	touch $@
st-fdiv: t-fdiv
	./t-fdiv
	touch $@
st-fdiv_ui: t-fdiv_ui
	./t-fdiv_ui
	touch $@
st-gcd: t-gcd
	./t-gcd
	touch $@
st-gcd2: t-gcd2
	./t-gcd2
	touch $@
st-dive: dive
	./dive
	touch $@
st-sqrtrem: t-sqrtrem
	./t-sqrtrem
	touch $@
st-convert: convert
	./convert
	touch $@
st-io: io
	./io
	touch $@
st-logic: logic
	./logic
	touch $@
st-powm: t-powm
	./t-powm
	touch $@
st-powm_ui: t-powm_ui
	./t-powm_ui
	touch $@
st-reuse: reuse
	./reuse
	touch $@

t-mul: t-mul.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-tdiv: t-tdiv.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-tdiv_ui: t-tdiv_ui.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-fdiv: t-fdiv.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-fdiv_ui: t-fdiv_ui.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-gcd: t-gcd.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-gcd2: t-gcd2.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
dive: dive.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-sqrtrem: t-sqrtrem.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
convert: convert.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
io: io.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
logic: logic.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-powm: t-powm.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
t-powm_ui: t-powm_ui.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
reuse: reuse.o $(TEST_LIBS)
	$(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)

t-mul.o: $(srcdir)/t-mul.c
t-tdiv.o: $(srcdir)/t-tdiv.c
t-tdiv_ui.o: $(srcdir)/t-tdiv_ui.c
t-fdiv.o: $(srcdir)/t-fdiv.c
t-fdiv_ui.o: $(srcdir)/t-fdiv_ui.c
t-gcd.o: $(srcdir)/t-gcd.c
t-gcd2.o: $(srcdir)/t-gcd2.c
dive.o: $(srcdir)/dive.c
t-sqrtrem.o: $(srcdir)/t-sqrtrem.c
convert.o: $(srcdir)/convert.c
io.o: $(srcdir)/io.c
logic.o: $(srcdir)/logic.c
t-powm.o: $(srcdir)/t-powm.c
t-powm_ui.o: $(srcdir)/t-powm_ui.c
reuse.o: $(srcdir)/reuse.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