Merge from vendor branch OPENSSL:
[dragonfly.git] / contrib / libgmp / mpq / Makefile.in
1 # Makefile for GNU MP/mpq functions
2 # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
3
4 # This file is part of the GNU MP Library.
5
6 # The GNU MP Library is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Library General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or (at your
9 # option) any later version.
10
11 # The GNU MP Library is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
14 # License for more details.
15
16 # You should have received a copy of the GNU Library General Public License
17 # along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19 # MA 02111-1307, USA.
20
21 srcdir = .
22
23 CC = gcc
24
25 CFLAGS = -g -O
26 AR = ar
27 AR_FLAGS = rc
28 SHELL = /bin/sh
29
30 #### host and target specific makefile fragments come in here.
31 ###
32
33 MPQ_SRCS = add.c canonicalize.c clear.c cmp.c cmp_ui.c div.c get_d.c \
34  get_den.c get_num.c init.c inv.c mul.c neg.c set.c set_den.c set_num.c \
35  set_si.c set_ui.c sub.c equal.c set_z.c
36 MPQ_OBJS = add.o canonicalize.o clear.o cmp.o cmp_ui.o div.o get_d.o \
37  get_den.o get_num.o init.o inv.o mul.o neg.o set.o set_den.o set_num.o \
38  set_si.o set_ui.o sub.o equal.o set_z.o
39
40 INCLUDES = -I. -I.. -I../mpn -I$(srcdir)/..
41
42 libmpq.a: Makefile $(MPQ_OBJS)
43         rm -f $@
44         $(AR) $(AR_FLAGS) $@ $(MPQ_OBJS)
45
46 .c.o:
47         $(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $<
48
49 clean mostlyclean:
50         rm -f *.o libmpq.a
51         -cd tests; $(MAKE) $@
52 distclean maintainer-clean: clean
53         rm -f Makefile config.status
54         -cd tests; $(MAKE) $@
55
56 Makefile: $(srcdir)/Makefile.in
57         $(SHELL) ./config.status
58
59 H = $(srcdir)/../gmp.h $(srcdir)/../gmp-impl.h ../mpn/gmp-mparam.h
60
61 add.o: $(srcdir)/add.c $(H)
62 canonicalize.o: $(srcdir)/canonicalize.c $(H)
63 clear.o: $(srcdir)/clear.c $(H)
64 cmp.o: $(srcdir)/cmp.c $(H) $(srcdir)/../longlong.h
65 cmp_ui.o: $(srcdir)/cmp_ui.c $(H)
66 div.o: $(srcdir)/div.c $(H)
67 equal.o: $(srcdir)/equal.c $(H)
68 get_d.o: $(srcdir)/get_d.c $(H) $(srcdir)/../longlong.h
69 get_den.o: $(srcdir)/get_den.c $(H)
70 get_num.o: $(srcdir)/get_num.c $(H)
71 init.o: $(srcdir)/init.c $(H)
72 inv.o: $(srcdir)/inv.c $(H)
73 mul.o: $(srcdir)/mul.c $(H)
74 neg.o: $(srcdir)/neg.c $(H)
75 set.o: $(srcdir)/set.c $(H)
76 set_den.o: $(srcdir)/set_den.c $(H)
77 set_num.o: $(srcdir)/set_num.c $(H)
78 set_si.o: $(srcdir)/set_si.c $(H)
79 set_ui.o: $(srcdir)/set_ui.c $(H)
80 set_z.o: $(srcdir)/set_z.c $(H)
81 sub.o: $(srcdir)/sub.c $(H)