Debian Codegraph @

runtime/gdtoa/makefile

raw symbols SCIP
1 # /****************************************************************
2 # Copyright (C) 1998 by Lucent Technologies
3 # All Rights Reserved
4 #
5 # Permission to use, copy, modify, and distribute this software and
6 # its documentation for any purpose and without fee is hereby
7 # granted, provided that the above copyright notice appear in all
8 # copies and that both that the copyright notice and this
9 # permission notice and warranty disclaimer appear in supporting
10 # documentation, and that the name of Lucent or any of its entities
11 # not be used in advertising or publicity pertaining to
12 # distribution of the software without specific, written prior
13 # permission.
14 #
15 # LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
17 # IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
18 # SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
20 # IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
22 # THIS SOFTWARE.
23 #
24 # ****************************************************************/
25
26 .SUFFIXES: .c .o
27 CC = cc
28 CFLAGS = -g
29
30 .c.o:
31 $(CC) -c $(CFLAGS) $*.c
32
33 # invoke "make Printf" to add printf.o to gdtoa.a (if desired)
34
35 all: arith.h gd_qnan.h gdtoa.a
36
37 arith.h: arithchk.c
38 $(CC) $(CFLAGS) arithchk.c || $(CC) -DNO_LONG_LONG $(CFLAGS) arithchk.c
39 ./a.out >arith.h
40 rm -f a.out arithchk.o
41
42 gd_qnan.h: arith.h qnan.c
43 $(CC) $(CFLAGS) qnan.c
44 ./a.out >gd_qnan.h
45 rm -f a.out qnan.o
46
47 gdtoa.a: dmisc.c\
48 dtoa.c\
49 g_Qfmt.c\
50 g_Qfmt_p.c\
51 g__fmt.c\
52 g_ddfmt.c\
53 g_ddfmt_p.c\
54 g_dfmt.c\
55 g_dfmt_p.c\
56 g_ffmt.c\
57 g_ffmt_p.c\
58 g_xLfmt.c\
59 g_xLfmt_p.c\
60 g_xfmt.c\
61 g_xfmt_p.c\
62 gdtoa.c\
63 gethex.c\
64 gmisc.c\
65 hd_init.c\
66 hexnan.c\
67 misc.c\
68 smisc.c\
69 strtoIQ.c\
70 strtoId.c\
71 strtoIdd.c\
72 strtoIf.c\
73 strtoIg.c\
74 strtoIx.c\
75 strtoIxL.c\
76 strtod.c\
77 strtodI.c\
78 strtodg.c\
79 strtof.c\
80 strtopQ.c\
81 strtopd.c\
82 strtopdd.c\
83 strtopf.c\
84 strtopx.c\
85 strtopxL.c\
86 strtorQ.c\
87 strtord.c\
88 strtordd.c\
89 strtorf.c\
90 strtorx.c\
91 strtorxL.c\
92 sum.c\
93 ulp.c
94 $(CC) -c $(CFLAGS) $?
95 x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
96 ranlib gdtoa.a || true
97
98 Printf: all printf.c
99 $(CC) -c $(CFLAGS) printf.c
100 ar ruv gdtoa.a printf.o
101 rm printf.o
102 touch Printf
103
104 # If your system lacks ranlib, you do not need it.
105
106 xs0 = README\
107 arithchk.c\
108 dmisc.c\
109 dtoa.c\
110 g_Qfmt.c\
111 g_Qfmt_p.c\
112 g__fmt.c\
113 g_ddfmt.c\
114 g_ddfmt_p.c\
115 g_dfmt.c\
116 g_dfmt_p.c\
117 g_ffmt.c\
118 g_ffmt_p.c\
119 g_xLfmt.c\
120 g_xLfmt_p.c\
121 g_xfmt.c\
122 g_xfmt_p.c\
123 gdtoa.c\
124 gdtoa.h\
125 gdtoa_fltrnds.h\
126 gdtoaimp.h\
127 gethex.c\
128 gmisc.c\
129 hd_init.c\
130 hexnan.c\
131 makefile\
132 misc.c\
133 printf.c\
134 printf.c0\
135 qnan.c\
136 smisc.c\
137 stdio1.h\
138 strtoIQ.c\
139 strtoId.c\
140 strtoIdd.c\
141 strtoIf.c\
142 strtoIg.c\
143 strtoIx.c\
144 strtoIxL.c\
145 strtod.c\
146 strtodI.c\
147 strtodg.c\
148 strtodnrp.c\
149 strtof.c\
150 strtopQ.c\
151 strtopd.c\
152 strtopdd.c\
153 strtopf.c\
154 strtopx.c\
155 strtopxL.c\
156 strtorQ.c\
157 strtord.c\
158 strtordd.c\
159 strtorf.c\
160 strtorx.c\
161 strtorxL.c\
162 sum.c\
163 ulp.c
164
165 # "make -r xsum.out" to check for transmission errors; source for xsum is
166 # netlib's "xsum.c from f2c", e.g.,
167 # ftp://netlib.bell-labs.com/netlib/f2c/xsum.c.gz
168
169 xsum.out: xsum0.out $(xs0)
170 xsum $(xs0) >xsum1.out
171 cmp xsum0.out xsum1.out && mv xsum1.out xsum.out || diff xsum[01].out
172
173 clean:
174 rm -f arith.h gd_qnan.h *.[ao] Printf xsum.out xsum1.out