Put in proper address information for Poul-Henning Kamp.
[unix-history] / lib / libI77 / makefile
CommitLineData
bae7117f
WH
1.SUFFIXES: .c .o
2CC = cc
3CFLAGS = -O
4SHELL = /bin/sh
5
6# compile, then strip unnecessary symbols
7.c.o:
8 $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
9 ld -r -x -o $*.xxx $*.o
10 mv $*.xxx $*.o
11
12OBJ = Version.o backspace.o close.o dfe.o dolio.o due.o endfile.o err.o \
13 fmt.o fmtlib.o iio.o ilnw.o inquire.o lread.o lwrite.o open.o \
14 rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o uio.o \
15 util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o
16libI77.a: $(OBJ)
17 ar r libI77.a $?
18 ranlib libI77.a
19install: libI77.a
20 cp libI77.a /usr/lib/libI77.a
21 ranlib /usr/lib/libI77.a
22
23Version.o: Version.c
24 $(CC) -c Version.c
25
26# To compile with C++, first "make f2c.h"
27f2c.h: f2ch.add
28 cat /usr/include/f2c.h f2ch.add >f2c.h
29
30
31clean:
32 rm -f $(OBJ) libI77.a
33
34clobber: clean
35 rm -f libI77.a
36
37backspace.o: fio.h
38close.o: fio.h
39dfe.o: fio.h
40dfe.o: fmt.h
41due.o: fio.h
42endfile.o: fio.h rawio.h
43err.o: fio.h rawio.h
44fmt.o: fio.h
45fmt.o: fmt.h
46iio.o: fio.h
47iio.o: fmt.h
48ilnw.o: fio.h
49ilnw.o: lio.h
50inquire.o: fio.h
51lread.o: fio.h
52lread.o: fmt.h
53lread.o: lio.h
54lread.o: fp.h
55lwrite.o: fio.h
56lwrite.o: fmt.h
57lwrite.o: lio.h
58open.o: fio.h rawio.h
59rdfmt.o: fio.h
60rdfmt.o: fmt.h
61rdfmt.o: fp.h
62rewind.o: fio.h
63rsfe.o: fio.h
64rsfe.o: fmt.h
65rsli.o: fio.h
66rsli.o: lio.h
67rsne.o: fio.h
68rsne.o: lio.h
69sfe.o: fio.h
70sue.o: fio.h
71uio.o: fio.h
72util.o: fio.h
73wref.o: fio.h
74wref.o: fmt.h
75wref.o: fp.h
76wrtfmt.o: fio.h
77wrtfmt.o: fmt.h
78wsfe.o: fio.h
79wsfe.o: fmt.h
80wsle.o: fio.h
81wsle.o: fmt.h
82wsle.o: lio.h
83wsne.o: fio.h
84wsne.o: lio.h
85xwsne.o: fio.h
86xwsne.o: lio.h
87xwsne.o: fmt.h
88
89check:
90 xsum Notice README Version.c backspace.c close.c dfe.c dolio.c \
91 due.c endfile.c err.c f2ch.add fio.h fmt.c fmt.h fmtlib.c fp.h \
92 iio.c ilnw.c inquire.c lio.h lread.c lwrite.c makefile open.c \
93 rawio.h rdfmt.c rewind.c rsfe.c rsli.c rsne.c sfe.c sue.c \
94 typesize.c uio.c util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c \
95 xwsne.c >zap
96 cmp zap libI77.xsum && rm zap || diff libI77.xsum zap