Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / libgmp / mpq / tests / Makefile.in
1 # Makefile for mpq/tests for GNU MP
2
3 srcdir = .
4
5 CC = gcc
6
7 TEST_LIBS = ../../libgmp.a
8 INCLUDES = -I../../mpn -I$(srcdir)/../..
9 CFLAGS = -g -O
10
11 .c.o:
12         $(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $<
13
14 TEST_SRCS = t-cmp.c t-cmp_ui.c t-get_d.c
15 TEST_OBJS = t-cmp.o t-cmp_ui.o t-get_d.o
16 TESTS = t-cmp t-cmp_ui t-get_d
17
18 check: Makefile st-cmp st-cmp_ui st-get_d
19         @echo "The tests passed."
20
21 st-cmp: t-cmp
22         ./t-cmp
23         touch $@
24 st-cmp_ui: t-cmp_ui
25         ./t-cmp_ui
26         touch $@
27 st-get_d: t-get_d
28         ./t-get_d
29         touch $@
30
31 t-cmp: t-cmp.o $(TEST_LIBS)
32         $(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
33 t-cmp_ui: t-cmp_ui.o $(TEST_LIBS)
34         $(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
35 t-get_d: t-get_d.o $(TEST_LIBS)
36         $(CC) -o $@ $@.o $(TEST_LIBS) $(CFLAGS)
37
38 t-cmp.o: $(srcdir)/t-cmp.c
39 t-cmp_ui.o: $(srcdir)/t-cmp_ui.c
40 t-get_d.o: $(srcdir)/t-get_d.c
41
42 clean mostlyclean:
43         rm -f *.o st-* $(TESTS)
44 distclean maintainer-clean: clean
45         rm -f Makefile config.status
46
47 Makefile: $(srcdir)/Makefile.in
48         $(SHELL) ./config.status