Deleted Added
full compact
makefile (187808) makefile (219557)
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

--- 16 unchanged lines hidden (view full) ---

25
26.SUFFIXES: .c .o
27CC = cc
28CFLAGS = -g
29
30.c.o:
31 $(CC) -c $(CFLAGS) $*.c
32
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

--- 16 unchanged lines hidden (view full) ---

25
26.SUFFIXES: .c .o
27CC = cc
28CFLAGS = -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
33all: arith.h gd_qnan.h gdtoa.a
34
35arith.h: arithchk.c
36 $(CC) $(CFLAGS) arithchk.c || $(CC) -DNO_LONG_LONG $(CFLAGS) arithchk.c
37 ./a.out >arith.h
38 rm -f a.out arithchk.o
39
40gd_qnan.h: arith.h qnan.c
41 $(CC) $(CFLAGS) qnan.c
42 ./a.out >gd_qnan.h
43 rm -f a.out qnan.o
44
35all: arith.h gd_qnan.h gdtoa.a
36
37arith.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
42gd_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
45gdtoa.a: dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c g_ffmt.c\
46 g_xLfmt.c g_xfmt.c gdtoa.c gethex.c gmisc.c hd_init.c hexnan.c\
47 misc.c smisc.c strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c\
48 strtoIx.c strtoIxL.c strtod.c strtodI.c strtodg.c strtof.c strtopQ.c\
49 strtopd.c strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c\
50 strtord.c strtordd.c strtorf.c strtorx.c strtorxL.c sum.c ulp.c
47gdtoa.a: dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c\
48 g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gethex.c gmisc.c hd_init.c\
49 hexnan.c misc.c smisc.c strtoIQ.c strtoId.c strtoIdd.c\
50 strtoIf.c strtoIg.c strtoIx.c strtoIxL.c strtod.c strtodI.c\
51 strtodg.c strtof.c strtopQ.c strtopd.c strtopdd.c strtopf.c\
52 strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c strtorf.c\
53 strtorx.c strtorxL.c sum.c ulp.c
51 $(CC) -c $(CFLAGS) $?
52 x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
53 ranlib gdtoa.a || true
54
54 $(CC) -c $(CFLAGS) $?
55 x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
56 ranlib gdtoa.a || true
57
58Printf: all printf.c
59 $(CC) -c $(CFLAGS) printf.c
60 ar ruv gdtoa.a printf.o
61 rm printf.o
62 touch Printf
63
55# If your system lacks ranlib, you do not need it.
56
64# If your system lacks ranlib, you do not need it.
65
57xs0 = README arithchk.c dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c\
58 g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gdtoa.h gdtoa_fltrnds.h gdtoaimp.h\
59 gethex.c gmisc.c hd_init.c hexnan.c makefile misc.c qnan.c smisc.c\
60 strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c strtoIx.c strtoIxL.c\
61 strtod.c strtodI.c strtodg.c strtodnrp.c strtof.c strtopQ.c strtopd.c\
62 strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c\
63 strtorf.c strtorx.c strtorxL.c sum.c ulp.c
66xs0 = README arithchk.c dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c\
67 g_dfmt.c g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gdtoa.h\
68 gdtoa_fltrnds.h gdtoaimp.h gethex.c gmisc.c hd_init.c hexnan.c\
69 makefile misc.c printf.c printf.c0 qnan.c smisc.c stdio1.h\
70 strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c strtoIx.c\
71 strtoIxL.c strtod.c strtodI.c strtodg.c strtodnrp.c strtof.c\
72 strtopQ.c strtopd.c strtopdd.c strtopf.c strtopx.c strtopxL.c\
73 strtorQ.c strtord.c strtordd.c strtorf.c strtorx.c strtorxL.c\
74 sum.c ulp.c
64
75
65# "make xsum.out" to check for transmission errors; source for xsum is
76# "make -r xsum.out" to check for transmission errors; source for xsum is
66# netlib's "xsum.c from f2c", e.g.,
67# ftp://netlib.bell-labs.com/netlib/f2c/xsum.c.gz
68
69xsum.out: xsum0.out $(xs0)
70 xsum $(xs0) >xsum1.out
71 cmp xsum0.out xsum1.out && mv xsum1.out xsum.out || diff xsum[01].out
72
73clean:
77# netlib's "xsum.c from f2c", e.g.,
78# ftp://netlib.bell-labs.com/netlib/f2c/xsum.c.gz
79
80xsum.out: xsum0.out $(xs0)
81 xsum $(xs0) >xsum1.out
82 cmp xsum0.out xsum1.out && mv xsum1.out xsum.out || diff xsum[01].out
83
84clean:
74 rm -f arith.h gd_qnan.h *.[ao] xsum.out xsum1.out
85 rm -f arith.h gd_qnan.h *.[ao] Printf xsum.out xsum1.out