Commit | Line | Data |
---|---|---|
bae7117f WH |
1 | .SUFFIXES: .c .o |
2 | CC = cc | |
3 | CFLAGS = -O | |
4 | SHELL = /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 | ||
12 | OBJ = 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 | |
16 | libI77.a: $(OBJ) | |
17 | ar r libI77.a $? | |
18 | ranlib libI77.a | |
19 | install: libI77.a | |
20 | cp libI77.a /usr/lib/libI77.a | |
21 | ranlib /usr/lib/libI77.a | |
22 | ||
23 | Version.o: Version.c | |
24 | $(CC) -c Version.c | |
25 | ||
26 | # To compile with C++, first "make f2c.h" | |
27 | f2c.h: f2ch.add | |
28 | cat /usr/include/f2c.h f2ch.add >f2c.h | |
29 | ||
30 | ||
31 | clean: | |
32 | rm -f $(OBJ) libI77.a | |
33 | ||
34 | clobber: clean | |
35 | rm -f libI77.a | |
36 | ||
37 | backspace.o: fio.h | |
38 | close.o: fio.h | |
39 | dfe.o: fio.h | |
40 | dfe.o: fmt.h | |
41 | due.o: fio.h | |
42 | endfile.o: fio.h rawio.h | |
43 | err.o: fio.h rawio.h | |
44 | fmt.o: fio.h | |
45 | fmt.o: fmt.h | |
46 | iio.o: fio.h | |
47 | iio.o: fmt.h | |
48 | ilnw.o: fio.h | |
49 | ilnw.o: lio.h | |
50 | inquire.o: fio.h | |
51 | lread.o: fio.h | |
52 | lread.o: fmt.h | |
53 | lread.o: lio.h | |
54 | lread.o: fp.h | |
55 | lwrite.o: fio.h | |
56 | lwrite.o: fmt.h | |
57 | lwrite.o: lio.h | |
58 | open.o: fio.h rawio.h | |
59 | rdfmt.o: fio.h | |
60 | rdfmt.o: fmt.h | |
61 | rdfmt.o: fp.h | |
62 | rewind.o: fio.h | |
63 | rsfe.o: fio.h | |
64 | rsfe.o: fmt.h | |
65 | rsli.o: fio.h | |
66 | rsli.o: lio.h | |
67 | rsne.o: fio.h | |
68 | rsne.o: lio.h | |
69 | sfe.o: fio.h | |
70 | sue.o: fio.h | |
71 | uio.o: fio.h | |
72 | util.o: fio.h | |
73 | wref.o: fio.h | |
74 | wref.o: fmt.h | |
75 | wref.o: fp.h | |
76 | wrtfmt.o: fio.h | |
77 | wrtfmt.o: fmt.h | |
78 | wsfe.o: fio.h | |
79 | wsfe.o: fmt.h | |
80 | wsle.o: fio.h | |
81 | wsle.o: fmt.h | |
82 | wsle.o: lio.h | |
83 | wsne.o: fio.h | |
84 | wsne.o: lio.h | |
85 | xwsne.o: fio.h | |
86 | xwsne.o: lio.h | |
87 | xwsne.o: fmt.h | |
88 | ||
89 | check: | |
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 |