|
|
1.1 root 1: #
2: # Copyright (c) 1980 Regents of the University of California.
3: # All rights reserved. The Berkeley software License Agreement
4: # specifies the terms and conditions for redistribution.
5: #
6: # @(#)Makefile 5.5 (Berkeley) 4/25/86
7: #
8:
9: # Makefile for f77 I/O lib, libI77.a
10:
11: CFLAGS = -O
12:
13: DEST = $(DESTDIR)/usr/lib
14:
15: DESTDIR =
16:
17: EXTHDRS =
18:
19: FFLAGS = -O
20:
21: HDRS = f_errno.h \
22: fio.h \
23: fiodefs.h \
24: format.h \
25: lio.h \
26: nmlio.h
27:
28: LIBRARY = libI77.a
29:
30: LIBRARY_P = libI77_p.a
31:
32: MAKEFILE = Makefile
33:
34: OBJS = backspace.o \
35: c_dfe.o \
36: c_iio.o \
37: c_sfe.o \
38: close.o \
39: dofio.o \
40: dolio.o \
41: douio.o \
42: due.o \
43: endfile.o \
44: err.o \
45: f77_abort.o \
46: f_errlist.o \
47: fmt.o \
48: fmtlib.o \
49: inquire.o \
50: lread.o \
51: lwrite.o \
52: open.o \
53: rdfe.o \
54: rdfmt.o \
55: rewind.o \
56: rfi.o \
57: rsfe.o \
58: rsli.o \
59: rsnmle.o \
60: sue.o \
61: util.o \
62: wdfe.o \
63: wfi.o \
64: wrtfmt.o \
65: wsfe.o \
66: wsli.o \
67: wsnmle.o
68:
69: OLDDIR = $(DESTDIR)/usr/old/lib
70:
71: PRINT = pr
72:
73: SRCS = backspace.c \
74: c_dfe.c \
75: c_iio.c \
76: c_sfe.c \
77: close.c \
78: dofio.c \
79: dolio.c \
80: douio.c \
81: due.c \
82: endfile.c \
83: err.c \
84: f77_abort.c \
85: f_errlist.c \
86: fmt.c \
87: fmtlib.c \
88: inquire.c \
89: lread.c \
90: lwrite.c \
91: open.c \
92: rdfe.c \
93: rdfmt.c \
94: rewind.c \
95: rfi.c \
96: rsfe.c \
97: rsli.c \
98: rsnmle.c \
99: sue.c \
100: util.c \
101: wdfe.c \
102: wfi.c \
103: wrtfmt.c \
104: wsfe.c \
105: wsli.c \
106: wsnmle.c
107:
108: all: $(LIBRARY) $(LIBRARY_P) libI66.o
109:
110: $(LIBRARY): $(OBJS) Version
111: @echo -n "Loading $(LIBRARY) ... "
112: @ar cru $(LIBRARY) $(OBJS) Version
113: @ranlib $(LIBRARY)
114: @echo "done"
115:
116: $(LIBRARY_P): $(OBJS) Version
117: @echo -n "Loading $(LIBRARY_P) ... "
118: @cd profiled; ar cru ../$(LIBRARY_P) $(OBJS) Version
119: @ranlib $(LIBRARY_P)
120: @echo "done"
121:
122: Version: $(SRCS) mkvers
123: @rm -f Version.c
124: ./mkvers $(LIBRARY) $(SRCS) > Version.c
125: $(CC) -c Version.c
126: mv Version.o Version
127: @rm -f profiled/Version
128: ln Version profiled/Version
129:
130: mkvers: mkvers.c
131: @$(CC) mkvers.c -o mkvers
132:
133: clean:; @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P) libI66.o
134:
135: depend:; @echo Construct dependencies manually
136:
137: extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF
138: @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF
139:
140: index:; @ctags -wx $(HDRS) $(SRCS)
141:
142: install: $(LIBRARY) $(LIBRARY_P) libI66.o
143: install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
144: ranlib $(DEST)/$(LIBRARY)
145: install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
146: ranlib $(DEST)/$(LIBRARY_P)
147: install -m 644 -c libI66.o $(DEST)/libI66.a
148:
149: library: $(LIBRARY) $(LIBRARY_P)
150:
151: print:; @$(PRINT) $(HDRS) $(SRCS)
152:
153: tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
154:
155: update: $(DEST)/$(LIBRARY)
156:
157: $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
158: @-ar xo $(DEST)/$(LIBRARY)
159: @cd profiled; -ar xo $(DEST)/$(LIBRARY_P)
160: @make -f $(MAKEFILE) DEST=$(DEST) install clean
161:
162: f_errlist.o: f_errlist.c
163: $(CC) $(CFLAGS) -c f_errlist.c
164: @rm -f profiled/f_errlist.o
165: ln f_errlist.o profiled/f_errlist.o
166: .c.o:
167: $(CC) -p $(CFLAGS) -c $*.c
168: -ld -x -r $*.o
169: mv a.out profiled/$*.o
170: $(CC) $(CFLAGS) -c $*.c
171: -ld -x -r $*.o
172: mv a.out $*.o
173:
174: backspace.o: fio.h f_errno.h fiodefs.h backspace.c
175: c_dfe.o: fio.h f_errno.h fiodefs.h c_dfe.c
176: rdfe.o: fio.h f_errno.h fiodefs.h rdfe.c
177: wdfe.o: fio.h f_errno.h fiodefs.h wdfe.c
178: due.o: fio.h f_errno.h fiodefs.h due.c
179: rfi.o: fio.h f_errno.h fiodefs.h rfi.c
180: wfi.o: fio.h f_errno.h fiodefs.h wfi.c
181: rsli.o: fio.h f_errno.h fiodefs.h lio.h rsli.c
182: wsli.o: fio.h f_errno.h fiodefs.h lio.h wsli.c
183: c_iio.o: fio.h f_errno.h fiodefs.h lio.h c_iio.c
184: inquire.o: fio.h f_errno.h fiodefs.h inquire.c
185: rewind.o: fio.h f_errno.h fiodefs.h rewind.c
186: rdfmt.o: fio.h f_errno.h fiodefs.h format.h rdfmt.c
187: sue.o: fio.h f_errno.h fiodefs.h sue.c
188: douio.o: fio.h f_errno.h fiodefs.h douio.c
189: rsfe.o: fio.h f_errno.h fiodefs.h rsfe.c
190: wsfe.o: fio.h f_errno.h fiodefs.h wsfe.c
191: c_sfe.o: fio.h f_errno.h fiodefs.h c_sfe.c
192: fmt.o: fio.h f_errno.h fiodefs.h format.h fmt.c
193: dofio.o: fio.h f_errno.h fiodefs.h format.h dofio.c
194: lwrite.o: fio.h f_errno.h fiodefs.h lio.h lwrite.c
195: lread.o: fio.h f_errno.h fiodefs.h lio.h lread.c
196: dolio.o: fio.h f_errno.h fiodefs.h lio.h dolio.c
197: open.o: fio.h f_errno.h fiodefs.h open.c
198: close.o: fio.h f_errno.h fiodefs.h close.c
199: util.o: fio.h f_errno.h fiodefs.h util.c
200: endfile.o: fio.h f_errno.h fiodefs.h endfile.c
201: wrtfmt.o: fio.h f_errno.h fiodefs.h format.h wrtfmt.c
202: err.o: fio.h f_errno.h fiodefs.h err.c
203: fmtlib.o: fio.h f_errno.h fiodefs.h fmtlib.c
204: f77_abort.o: fio.h f_errno.h fiodefs.h f77_abort.c
205: rsnmle.o: fio.h f_errno.h fiodefs.h lio.h nmlio.h rsnmle.c
206: wsnmle.o: fio.h f_errno.h fiodefs.h lio.h nmlio.h wsnmle.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.