|
|
1.1 root 1: #
2: # Makefile for the INGRES control module
3: #
4: # @(#)Makefile 8.4 4/22/86
5: #
6:
7: INGRES= ../..
8: H= ../h
9: LIB= $(INGRES)/lib
10:
11: OBJS= main.o error.o proc_err.o initp.o setp.o resetp.o \
12: init_qt.o call.o sysdump.o mapvars.o \
13: do_seq.o readinput.o do_st.o send_off.o call_fn.o \
14: readmon.o readqry.o writeqry.o range.o treepr.o \
15: pb_prime.o pb_get.o pb_tput.o pb_put.o pb_flush.o \
16: pb_read.o pb_write.o pb_rphys.o pb_wphys.o pb_dump.o \
17: cm_reset.o cm_cleanup.o cm_close.o \
18: prvect.o getp.o monitor.o av_files.o
19: HDRS= pipes.h proc.h state.h ctlmod.h
20: SRCS1= main.c error.c proc_err.c initp.c setp.c resetp.c \
21: init_qt.c call.c sysdump.c mapvars.c \
22: do_seq.c readinput.c do_st.c send_off.c call_fn.c \
23: readmon.c readqry.c writeqry.c range.c treepr.c
24: SRCS2= pb_prime.c pb_get.c pb_tput.c pb_put.c pb_flush.c \
25: pb_read.c pb_write.c pb_rphys.c pb_wphys.c pb_dump.c \
26: cm_reset.c cm_cleanup.c cm_close.c \
27: prvect.c getp.c monitor.c av_files.c
28:
29: CFLAGS= -O -I$H
30: LINTFLAGS= -huc -I$H
31: LINT= lint
32: PR= print
33: VGRIND= csh /usr/ucb/vgrind
34: HEADER= Control Module
35: CTAGS= ctags
36: AR= -ar
37: ARFLAGS=rvu
38: RANLIB= ranlib
39: GET= sccs get
40: CP= cp
41: CHMOD= chmod
42: LIBMODE=664
43:
44: all: ctlmod
45:
46: ctlmod: $(OBJS)
47: $(AR) $(ARFLAGS) ctlmod $?
48: $(CHMOD) $(LIBMODE) ctlmod
49: $(RANLIB) ctlmod
50:
51: install: $(LIB)/ctlmod
52:
53: $(LIB)/ctlmod: ctlmod
54: $(CP) ctlmod $(LIB)/ctlmod
55: $(RANLIB) $(LIB)/ctlmod
56:
57: new:
58: rm -f ctlmod
59:
60: clean:
61: rm -f *.o
62: rm -f a.out ctlmod core
63:
64: sources: $(HDRS) $(SRCS1) $(SRCS2)
65:
66: $(HDRS):
67: $(GET) $(REL) $@
68: $(SRCS1):
69: $(GET) $(REL) $@
70: $(SRCS2):
71: $(GET) $(REL) $@
72:
73: ctags:
74: $(CTAGS) *.c
75:
76: print: sources
77: $(PR) Makefile TraceFlags *.[hm] *.[csy]
78:
79: lint:
80: $(LINT) $(LINTFLAGS) $(SRCS1) $(SRCS2)
81:
82: vgrind: sources
83: cp /dev/null index
84: $(VGRIND) -h "$(HEADER) (Release 8)" -n Makefile TraceFlags
85: $(VGRIND) -h "$(HEADER) (Release 8)" *.[hm] *.[csy]
86: sed /SCCSID/d < index > tmp
87: mv tmp index
88: $(VGRIND) -h "$(HEADER) (Release 8)" -x index
89:
90: tags: sources
91: -fgrep ../ tags > othertags
92: ctags $(SRCS) $(HDRS)
93: sort -o tags tags othertags
94: -rm -f othertags
95:
96: #
97: # DANGER DANGER DANGER DANGER DANGER DANGER
98: # The following two entries should NOT be executed by the user.
99: # These entries are only for the Makefile in conf to construct
100: # the system tag files.
101: #
102: systags:
103: ctags $(SRCS1) $(SRCS2) $(HDRS)
104: sed "s/ / ctlmod\//" tags > systags
105: cat systags >> ../tags
106:
107: #
108: # We assume that systags has already been done.
109: #
110: installtags:
111: sed "/ ctlmod/d" ../tags | sed "s/ / ..\//" > othertags
112: sort -o tags tags othertags
113: -rm -f othertags systags
114:
115:
116: depend:
117: grep '^#[ ]*include' $(SRCS1) $(SRCS2) | sed -n -f ../h/depend.sed > makedep
118: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
119: echo '$$r makedep' >>eddep
120: echo 'w' >>eddep
121: cp Makefile Makefile.bak
122: ed - Makefile < eddep
123: rm eddep makedep
124: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
125: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
126: echo '# see make depend above' >> Makefile
127:
128: # DO NOT DELETE THIS LINE -- make depend uses it
129:
130: main.o:ctlmod.h
131: main.o:pipes.h
132: main.o:$H/resp.h
133: main.o:$H/ingres.h
134: main.o:$H/aux.h
135: main.o:$H/lock.h
136: main.o:$H/sccs.h
137: error.o:ctlmod.h
138: error.o:pipes.h
139: error.o:$H/pv.h
140: error.o:$H/sccs.h
141: proc_err.o:ctlmod.h
142: proc_err.o:pipes.h
143: proc_err.o:$H/sccs.h
144: initp.o:ctlmod.h
145: initp.o:$H/ingres.h
146: initp.o:$H/aux.h
147: initp.o:$H/tree.h
148: initp.o:$H/sccs.h
149: setp.o:ctlmod.h
150: setp.o:$H/ingres.h
151: setp.o:$H/tree.h
152: setp.o:$H/aux.h
153: setp.o:$H/sccs.h
154: resetp.o:ctlmod.h
155: resetp.o:$H/ingres.h
156: resetp.o:$H/tree.h
157: resetp.o:$H/sccs.h
158: init_qt.o:ctlmod.h
159: init_qt.o:$H/ingres.h
160: init_qt.o:$H/aux.h
161: init_qt.o:$H/tree.h
162: init_qt.o:$H/sccs.h
163: call.o:ctlmod.h
164: call.o:pipes.h
165: call.o:$H/resp.h
166: call.o:$H/ingres.h
167: call.o:$H/aux.h
168: call.o:$H/tree.h
169: call.o:$H/sccs.h
170: sysdump.o:ctlmod.h
171: sysdump.o:$H/tree.h
172: sysdump.o:$H/sccs.h
173: mapvars.o:$H/ingres.h
174: mapvars.o:$H/symbol.h
175: mapvars.o:$H/tree.h
176: mapvars.o:$H/sccs.h
177: do_seq.o:ctlmod.h
178: do_seq.o:pipes.h
179: do_seq.o:$H/resp.h
180: do_seq.o:$H/sccs.h
181: readinput.o:ctlmod.h
182: readinput.o:pipes.h
183: readinput.o:$H/resp.h
184: readinput.o:$H/ingres.h
185: readinput.o:$H/aux.h
186: readinput.o:$H/tree.h
187: readinput.o:$H/sccs.h
188: do_st.o:ctlmod.h
189: do_st.o:pipes.h
190: do_st.o:$H/sccs.h
191: send_off.o:ctlmod.h
192: send_off.o:pipes.h
193: send_off.o:$H/symbol.h
194: send_off.o:$H/tree.h
195: send_off.o:$H/resp.h
196: send_off.o:$H/sccs.h
197: call_fn.o:ctlmod.h
198: call_fn.o:$H/resp.h
199: call_fn.o:$H/sccs.h
200: readmon.o:ctlmod.h
201: readmon.o:pipes.h
202: readmon.o:$H/sccs.h
203: readqry.o:ctlmod.h
204: readqry.o:$H/ingres.h
205: readqry.o:$H/aux.h
206: readqry.o:$H/tree.h
207: readqry.o:$H/symbol.h
208: readqry.o:$H/sccs.h
209: readqry.o:$H/errors.h
210: writeqry.o:$H/ingres.h
211: writeqry.o:$H/aux.h
212: writeqry.o:$H/tree.h
213: writeqry.o:$H/symbol.h
214: writeqry.o:$H/sccs.h
215: range.o:$H/ingres.h
216: range.o:$H/symbol.h
217: range.o:$H/range.h
218: range.o:$H/tree.h
219: range.o:$H/sccs.h
220: range.o:$H/errors.h
221: treepr.o:$H/ingres.h
222: treepr.o:$H/symbol.h
223: treepr.o:$H/tree.h
224: treepr.o:$H/aux.h
225: treepr.o:$H/sccs.h
226: pb_prime.o:ctlmod.h
227: pb_prime.o:pipes.h
228: pb_prime.o:$H/sccs.h
229: pb_get.o:ctlmod.h
230: pb_get.o:pipes.h
231: pb_get.o:$H/sccs.h
232: pb_tput.o:ctlmod.h
233: pb_tput.o:pipes.h
234: pb_tput.o:$H/sccs.h
235: pb_put.o:ctlmod.h
236: pb_put.o:pipes.h
237: pb_put.o:$H/sccs.h
238: pb_flush.o:ctlmod.h
239: pb_flush.o:pipes.h
240: pb_flush.o:$H/sccs.h
241: pb_read.o:ctlmod.h
242: pb_read.o:pipes.h
243: pb_read.o:$H/sccs.h
244: pb_write.o:ctlmod.h
245: pb_write.o:pipes.h
246: pb_write.o:$H/sccs.h
247: pb_rphys.o:pipes.h
248: pb_rphys.o:$H/sccs.h
249: pb_wphys.o:$H/useful.h
250: pb_wphys.o:pipes.h
251: pb_wphys.o:$H/sccs.h
252: pb_dump.o:pipes.h
253: pb_dump.o:$H/sccs.h
254: cm_reset.o:ctlmod.h
255: cm_reset.o:$H/sccs.h
256: cm_cleanup.o:ctlmod.h
257: cm_cleanup.o:$H/sccs.h
258: cm_close.o:ctlmod.h
259: cm_close.o:$H/sccs.h
260: prvect.o:ctlmod.h
261: prvect.o:$H/tree.h
262: prvect.o:$H/pv.h
263: prvect.o:$H/sccs.h
264: getp.o:ctlmod.h
265: getp.o:$H/pv.h
266: getp.o:$H/sccs.h
267: monitor.o:$H/useful.h
268: monitor.o:$H/opsys.h
269: monitor.o:$H/pmon.h
270: monitor.o:$H/sccs.h
271: av_files.o:$H/ingres.h
272: av_files.o:$H/aux.h
273: av_files.o:$H/opsys.h
274: av_files.o:ctlmod.h
275: av_files.o:$H/sccs.h
276: # DEPENDENCIES MUST END AT END OF FILE
277: # IF YOU PUT STUFF HERE IT WILL GO AWAY
278: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.