source: project/release/4/fpio/tags/1.6/makefile @ 31232

Last change on this file since 31232 was 31232, checked in by Ivan Raikov, 7 years ago

fpio release 1.6

File size: 2.4 KB
Line 
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
27CC = cc
28CFLAGS = -g -DINFNAN_CHECK -fPIC
29
30.c.o:
31        $(CC) -c $(CFLAGS) $*.c
32
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
45gdtoa.a: dmisc.c dtoa.c  g_dfmt.c g_ffmt.c \
46         gdtoa.c gethex.c gmisc.c hd_init.c hexnan.c \
47         misc.c smisc.c strtoId.c strtoIf.c \
48         strtod.c strtof.c strtodg.c \
49         strtord.c strtorf.c sum.c ulp.c g__fmt.c
50        $(CC) -c $(CFLAGS) $?
51        x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
52        ranlib gdtoa.a || true
53
54# If your system lacks ranlib, you do not need it.
55
56xs0 = arithchk.c  g_dfmt.c  gdtoaimp.h  makefile \
57misc.c  README   strtod.c  strtof.c \
58strtoIf.c  strtorf.c  ulp.c dmisc.c \
59gdtoa.h g_ffmt.c qnan.c  smisc.c  strtodg.c  \
60strtoId.c  strtord.c  sum.c g__fmt.c
61
62# "make xsum.out" to check for transmission errors; source for xsum is
63# netlib's "xsum.c from f2c", e.g.,
64# ftp://netlib.bell-labs.com/netlib/f2c/xsum.c.gz
65
66xsum.out: xsum0.out $(xs0)
67        xsum $(xs0) >xsum1.out
68        cmp xsum0.out xsum1.out && mv xsum1.out xsum.out || diff xsum[01].out
69
70clean:
71        rm -f arith.h gd_qnan.h *.[ao] xsum.out xsum1.out *~
Note: See TracBrowser for help on using the repository browser.