Add verable RESOLVE to determine which resolver is used
[unix-history] / usr / src / usr.bin / f77 / libI77 / Makefile
CommitLineData
1e83e228 1#
161423a6
RE
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#
387fb5ba 6# @(#)Makefile 5.2 (Berkeley) %G%
161423a6
RE
7#
8
9# Makefile for f77 I/O lib, libI77.a
1e83e228
RC
10
11CFLAGS = -O
12
13DEST = $(DESTDIR)/usr/lib
14
15DESTDIR =
16
17EXTHDRS =
18
19FFLAGS = -O
20
21HDRS = f_errno.h \
22 fio.h \
23 fiodefs.h \
24 format.h \
25 lio.h
26
27LIBRARY = libI77.a
28
29LIBRARY_P = libI77_p.a
30
31MAKEFILE = Makefile
32
33OBJS = backspace.o \
553ac84e
DL
34 c_dfe.o \
35 c_iio.o \
36 c_sfe.o \
1e83e228 37 close.o \
1e83e228
RC
38 dofio.o \
39 dolio.o \
40 douio.o \
41 due.o \
42 endfile.o \
43 err.o \
387fb5ba 44 f77_abort.o \
1e83e228
RC
45 f_errlist.o \
46 fmt.o \
47 fmtlib.o \
1e83e228
RC
48 inquire.o \
49 lread.o \
50 lwrite.o \
387fb5ba 51 no_lg.o \
1e83e228 52 open.o \
553ac84e 53 rdfe.o \
1e83e228
RC
54 rdfmt.o \
55 rewind.o \
553ac84e
DL
56 rfi.o \
57 rsfe.o \
58 rsli.o \
1e83e228
RC
59 sue.o \
60 util.o \
553ac84e
DL
61 wdfe.o \
62 wfi.o \
63 wrtfmt.o \
64 wsfe.o \
65 wsli.o
1e83e228
RC
66
67OLDDIR = $(DESTDIR)/usr/old/lib
68
69PRINT = pr
70
71SRCS = backspace.c \
553ac84e
DL
72 c_dfe.c \
73 c_iio.c \
74 c_sfe.c \
1e83e228 75 close.c \
1e83e228
RC
76 dofio.c \
77 dolio.c \
78 douio.c \
79 due.c \
80 endfile.c \
81 err.c \
387fb5ba 82 f77_abort.c \
1e83e228
RC
83 f_errlist.c \
84 fmt.c \
85 fmtlib.c \
1e83e228
RC
86 inquire.c \
87 lread.c \
88 lwrite.c \
387fb5ba 89 no_lg.c \
1e83e228 90 open.c \
553ac84e 91 rdfe.c \
1e83e228
RC
92 rdfmt.c \
93 rewind.c \
553ac84e
DL
94 rfi.c \
95 rsfe.c \
96 rsli.c \
1e83e228
RC
97 sue.c \
98 util.c \
553ac84e
DL
99 wdfe.c \
100 wfi.c \
101 wrtfmt.c \
102 wsfe.c \
103 wsli.c
1e83e228
RC
104
105all: $(LIBRARY) $(LIBRARY_P) libI66.o
106
107$(LIBRARY): $(OBJS) Version
108 @echo -n "Loading $(LIBRARY) ... "
109 @ar cru $(LIBRARY) $(OBJS) Version
110 @ranlib $(LIBRARY)
111 @echo "done"
112
113$(LIBRARY_P): $(OBJS) Version
114 @echo -n "Loading $(LIBRARY_P) ... "
115 @cd profiled; ar cru ../$(LIBRARY_P) $(OBJS) Version
116 @ranlib $(LIBRARY_P)
117 @echo "done"
118
119Version: $(SRCS) mkvers
120 @rm -f Version.c
121 ./mkvers $(LIBRARY) $(SRCS) > Version.c
122 $(CC) -c Version.c
123 mv Version.o Version
124 @rm -f profiled/Version
125 ln Version profiled/Version
126
127mkvers: mkvers.c
128 @$(CC) mkvers.c -o mkvers
129
130clean:; @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P)
131
132depend:; @echo Construct dependencies manually
133
134extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF
135 @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF
136
137index:; @ctags -wx $(HDRS) $(SRCS)
138
139install: $(LIBRARY) $(LIBRARY_P) libI66.o
140 install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
141 ranlib $(DEST)/$(LIBRARY)
142 install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
143 ranlib $(DEST)/$(LIBRARY_P)
144 install -m 644 -c libI66.o $(DEST)/libI66.a
145
146library: $(LIBRARY) $(LIBRARY_P)
147
148print:; @$(PRINT) $(HDRS) $(SRCS)
149
150tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
151
152update: $(DEST)/$(LIBRARY)
153
154$(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
155 @-ar xo $(DEST)/$(LIBRARY)
156 @cd profiled; -ar xo $(DEST)/$(LIBRARY_P)
157 @make -f $(MAKEFILE) DEST=$(DEST) install clean
158
159f_errlist.o: f_errlist.c
160 $(CC) $(CFLAGS) -c f_errlist.c
161 @rm -f profiled/f_errlist.o
162 ln f_errlist.o profiled/f_errlist.o
163.c.o:
164 $(CC) -p $(CFLAGS) -c $*.c
165 -ld -x -r $*.o
166 mv a.out profiled/$*.o
167 $(CC) $(CFLAGS) -c $*.c
168 -ld -x -r $*.o
169 mv a.out $*.o
170
7029897d 171backspace.o: fio.h f_errno.h fiodefs.h backspace.c
553ac84e
DL
172c_dfe.o: fio.h f_errno.h fiodefs.h c_dfe.c
173rdfe.o: fio.h f_errno.h fiodefs.h rdfe.c
174wdfe.o: fio.h f_errno.h fiodefs.h wdfe.c
7029897d 175due.o: fio.h f_errno.h fiodefs.h due.c
553ac84e
DL
176rfi.o: fio.h f_errno.h fiodefs.h rfi.c
177wfi.o: fio.h f_errno.h fiodefs.h wfi.c
178rsli.o: fio.h f_errno.h fiodefs.h lio.h rsli.c
179wsli.o: fio.h f_errno.h fiodefs.h lio.h wsli.c
180c_iio.o: fio.h f_errno.h fiodefs.h lio.h c_iio.c
7029897d
DL
181inquire.o: fio.h f_errno.h fiodefs.h inquire.c
182rewind.o: fio.h f_errno.h fiodefs.h rewind.c
183rdfmt.o: fio.h f_errno.h fiodefs.h format.h rdfmt.c
184sue.o: fio.h f_errno.h fiodefs.h sue.c
185douio.o: fio.h f_errno.h fiodefs.h douio.c
553ac84e
DL
186rsfe.o: fio.h f_errno.h fiodefs.h rsfe.c
187wsfe.o: fio.h f_errno.h fiodefs.h wsfe.c
188c_sfe.o: fio.h f_errno.h fiodefs.h c_sfe.c
7029897d
DL
189fmt.o: fio.h f_errno.h fiodefs.h format.h fmt.c
190dofio.o: fio.h f_errno.h fiodefs.h format.h dofio.c
191lwrite.o: fio.h f_errno.h fiodefs.h lio.h lwrite.c
192lread.o: fio.h f_errno.h fiodefs.h lio.h lread.c
193dolio.o: fio.h f_errno.h fiodefs.h lio.h dolio.c
194open.o: fio.h f_errno.h fiodefs.h open.c
195close.o: fio.h f_errno.h fiodefs.h close.c
196util.o: fio.h f_errno.h fiodefs.h util.c
197endfile.o: fio.h f_errno.h fiodefs.h endfile.c
198wrtfmt.o: fio.h f_errno.h fiodefs.h format.h wrtfmt.c
553ac84e 199err.o: fio.h f_errno.h fiodefs.h err.c
7029897d 200fmtlib.o: fio.h f_errno.h fiodefs.h fmtlib.c
387fb5ba
JB
201f77_abort.o: fio.h f_errno.h fiodefs.h f77_abort.c
202no_lg.o: no_lg.c