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