1 # Makefile for GNU MP/mpf functions
2 # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
4 # This file is part of the GNU MP Library.
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.
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.
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,
30 #### host and target specific makefile fragments come in here.
33 MPF_SRCS = init.c init2.c set.c set_ui.c set_si.c set_str.c set_d.c set_z.c \
34 iset.c iset_ui.c iset_si.c iset_str.c iset_d.c clear.c get_str.c \
35 dump.c size.c eq.c reldiff.c sqrt.c random2.c inp_str.c out_str.c \
36 add.c add_ui.c sub.c sub_ui.c ui_sub.c mul.c mul_ui.c div.c div_ui.c \
37 cmp.c cmp_ui.c cmp_si.c mul_2exp.c div_2exp.c abs.c neg.c set_q.c get_d.c \
38 set_dfl_prec.c set_prc.c set_prc_raw.c get_prc.c ui_div.c sqrt_ui.c
39 MPF_OBJS = init.o init2.o set.o set_ui.o set_si.o set_str.o set_d.o set_z.o \
40 iset.o iset_ui.o iset_si.o iset_str.o iset_d.o clear.o get_str.o \
41 dump.o size.o eq.o reldiff.o sqrt.o random2.o inp_str.o out_str.o \
42 add.o add_ui.o sub.o sub_ui.o ui_sub.o mul.o mul_ui.o div.o div_ui.o \
43 cmp.o cmp_ui.o cmp_si.o mul_2exp.o div_2exp.o abs.o neg.o set_q.o get_d.o \
44 set_dfl_prec.o set_prc.o set_prc_raw.o get_prc.o ui_div.o sqrt_ui.o
46 LATER_OBJS = inp_raw.o out_raw.o random.o pow_ui.o fac_ui.o
48 INCLUDES = -I. -I.. -I../mpn -I$(srcdir)/..
50 libmpf.a: Makefile $(MPF_OBJS)
52 $(AR) $(AR_FLAGS) $@ $(MPF_OBJS)
55 $(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $<
60 distclean maintainer-clean: clean
61 rm -f Makefile config.status
64 Makefile: $(srcdir)/Makefile.in
65 $(SHELL) ./config.status
67 H = $(srcdir)/../gmp.h $(srcdir)/../gmp-impl.h ../mpn/gmp-mparam.h
69 abs.o: $(srcdir)/abs.c $(H)
70 add.o: $(srcdir)/add.c $(H)
71 add_ui.o: $(srcdir)/add_ui.c $(H)
72 clear.o: $(srcdir)/clear.c $(H)
73 cmp.o: $(srcdir)/cmp.c $(H)
74 cmp_si.o: $(srcdir)/cmp_si.c $(H)
75 cmp_ui.o: $(srcdir)/cmp_ui.c $(H)
76 eq.o: $(srcdir)/eq.c $(H)
77 div.o: $(srcdir)/div.c $(H) $(srcdir)/../longlong.h
78 div_2exp.o: $(srcdir)/div_2exp.c $(H)
79 div_ui.o: $(srcdir)/div_ui.c $(H) $(srcdir)/../longlong.h
80 dump.o: $(srcdir)/dump.c $(H)
81 get_d.o: $(srcdir)/get_d.c $(H)
82 get_prc.o: $(srcdir)/get_prc.c $(H)
83 get_str.o: $(srcdir)/get_str.c $(H) $(srcdir)/../longlong.h
84 init.o: $(srcdir)/init.c $(H)
85 init2.o: $(srcdir)/init2.c $(H)
86 inp_str.o: $(srcdir)/inp_str.c $(H)
87 iset.o: $(srcdir)/iset.c $(H)
88 iset_d.o: $(srcdir)/iset_d.c $(H)
89 iset_si.o: $(srcdir)/iset_si.c $(H)
90 iset_str.o: $(srcdir)/iset_str.c $(H)
91 iset_ui.o: $(srcdir)/iset_ui.c $(H)
92 mul.o: $(srcdir)/mul.c $(H)
93 mul_2exp.o: $(srcdir)/mul_2exp.c $(H)
94 mul_ui.o: $(srcdir)/mul_ui.c $(H)
95 neg.o: $(srcdir)/neg.c $(H)
96 out_str.o: $(srcdir)/out_str.c $(H)
97 random2.o: $(srcdir)/random2.c $(H)
98 reldiff.o: $(srcdir)/reldiff.c $(H)
99 set.o: $(srcdir)/set.c $(H)
100 set_d.o: $(srcdir)/set_d.c $(H)
101 set_dfl_prec.o: $(srcdir)/set_dfl_prec.c $(H)
102 set_prc.o: $(srcdir)/set_prc.c $(H)
103 set_prc_raw.o: $(srcdir)/set_prc_raw.c $(H)
104 set_q.o: $(srcdir)/set_q.c $(H)
105 set_si.o: $(srcdir)/set_si.c $(H)
106 set_str.o: $(srcdir)/set_str.c $(H) $(srcdir)/../longlong.h
107 set_ui.o: $(srcdir)/set_ui.c $(H)
108 set_z.o: $(srcdir)/set_z.c $(H)
109 size.o: $(srcdir)/size.c $(H)
110 sqrt.o: $(srcdir)/sqrt.c $(H)
111 sqrt_ui.o: $(srcdir)/sqrt_ui.c $(H)
112 sub.o: $(srcdir)/sub.c $(H)
113 sub_ui.o: $(srcdir)/sub_ui.c $(H)
114 ui_div.o: $(srcdir)/ui_div.c $(H) $(srcdir)/../longlong.h
115 ui_sub.o: $(srcdir)/ui_sub.c $(H)