|
|
1.1 root 1: #
2: # Makefile for INGRES support routines
3: #
4: # @(#)Makefile 8.10 2/10/86
5: #
6:
7: INGRES= ../..
8: H= ../h
9: LIB= $(INGRES)/lib
10: BIN= $(INGRES)/bin
11: SYSBIN= /usr/local
12:
13: ALL= creatdb destroydb helpr printr purge \
14: restore usersetup ingres printadmin \
15: ingreslock copydb ingconv sysmod
16: SRCS= creatdb.c destroydb.c error.c helpr.c ingres.y \
17: printr.c purge.c subs.c usersetup.c \
18: indconv.q restore.c copydb.q prvect.c printadmin.c \
19: demodb.sh initsocket.c ildr.c ingconv.q
20: HDRS= ildr.h
21:
22: CTLMOD= $(LIB)/ctlmod
23: IUTIL= $(LIB)/iutil
24: GUTIL= $(LIB)/gutil
25: DBULIB= $(LIB)/dbulib
26: LIBS1= $(GUTIL)
27: LIBS2= $(IUTIL) $(GUTIL)
28: LIBS4= $(DBULIB) $(IUTIL) $(GUTIL) $(CTLMOD)
29: LIBS4= externs.o $(DBULIB) $(IUTIL) $(CTLMOD) $(GUTIL) $(IUTIL)
30:
31: CFLAGS= -O -I$H -I../ctlmod
32: EQUEL= $(BIN)/equel
33: LDFLAGS=
34: CP= cp
35: CHMOD= chmod
36: BINMODE=751
37: SUMODE= 4751
38: ROMODE= 444
39: SHMODE= 755
40: CHOWN= -chown
41: GET= sccs get
42: REL=
43: PR= print
44: VGRIND= csh /usr/ucb/vgrind
45: HEADER= Support Programs
46:
47: .SUFFIXES: .q
48:
49: .q.c:
50: $(EQUEL) $<
51:
52: .q.o:
53: $(EQUEL) $<
54: $(CC) $(CFLAGS) -c $*.c
55:
56: all: $(ALL) demodb.sh
57:
58: copydb: copydb.o $(LIBS1)
59: $(CC) $(LDFLAGS) copydb.o $(LIBS1) $(LIB)/libq.a -o copydb
60: $(CHMOD) $(BINMODE) copydb
61: ls -l copydb; size copydb
62:
63: ingconv: ingconv.o $(LIBS1)
64: $(CC) $(LDFLAGS) ingconv.o $(LIBS1) $(LIB)/libq.a -o ingconv
65: $(CHMOD) $(SUMODE) ingconv
66: ls -l ingconv; size ingconv
67:
68: creatdb: creatdb.o error.o prvect.o $(LIBS4)
69: $(CC) $(LDFLAGS) creatdb.o error.o prvect.o $(LIBS4) -lm -o creatdb
70: $(CHMOD) $(SUMODE) creatdb
71: ls -l creatdb; size creatdb
72:
73: destroydb: destroydb.o $(LIBS4)
74: $(CC) $(LDFLAGS) destroydb.o $(LIBS4) -lm -o destroydb
75: $(CHMOD) $(SUMODE) destroydb
76: ls -l destroydb; size destroydb
77:
78: helpr: helpr.o externs.o error.o prvect.o $(LIBS4)
79: $(CC) $(LDFLAGS) helpr.o externs.o error.o prvect.o $(LIBS4) -lm -o helpr
80: $(CHMOD) $(SUMODE) helpr
81: ls -l helpr; size helpr
82:
83: indconv: indconv.o $(LIBS2)
84: $(CC) indconv.o $(LIB)/equel $(LIBS2) -o indconv
85: $(CHMOD) $(BINMODE) indconv
86: ls -l indconv; size indconv
87:
88: ingres: ingres.o $(LIBS2)
89: $(CC) ingres.o $(LDFLAGS) $(LIBS2) -o ingres
90: $(CHMOD) $(SUMODE) ingres
91: ls -l ingres; size ingres
92: rm -f sysmod
93: $(CP) ingres sysmod
94: $(CHMOD) $(SUMODE) sysmod
95:
96: sysmod: ingres
97:
98: ingres.o: ingres.c
99: $(CC) $(CFLAGS) -I../ctlmod -c ingres.c
100:
101: ingreslock: ildr.o initsocket.o
102: $(CC) $(CFLAGS) -o ingreslock ildr.o initsocket.o
103: $(CHMOD) $(BINMODE) ingreslock
104: ls -l ingreslock ; size ingreslock
105:
106: printadmin: printadmin.o $(LIBS2)
107: $(CC) $(LDFLAGS) printadmin.o $(LIBS2) -o printadmin
108: $(CHMOD) $(SUMODE) printadmin
109: ls -l printadmin; size printadmin
110:
111: printr: printr.o error.o prvect.o $(LIBS4)
112: $(CC) $(LDFLAGS) printr.o error.o prvect.o $(LIBS4) -lm -o printr
113: $(CHMOD) $(SUMODE) printr
114: ls -l printr; size printr
115:
116: purge: purge.o externs.o subs.o error.o $(LIBS4)
117: $(CC) $(LDFLAGS) externs.o purge.o subs.o error.o $(LIBS4) -lm -o purge
118: $(CHMOD) $(SUMODE) purge
119: ls -l purge; size purge
120:
121: restore: restore.o externs.o subs.o error.o $(LIBS4)
122: $(CC) $(LDFLAGS) restore.o externs.o subs.o error.o $(LIBS4) -lm -o restore
123: $(CHMOD) $(SUMODE) restore
124: ls -l restore; size restore
125:
126: usersetup: usersetup.o $(LIBS1)
127: $(CC) $(LDFLAGS) usersetup.o $(LIBS1) -o usersetup
128: $(CHMOD) 700 usersetup
129:
130: new:
131: rm -f $(ALL)
132:
133: clean:
134: rm -f *.o
135: rm -f $(ALL) ingconv.c copydb.c copydb5.c indconv.c ingres.c a.out core y.tab.c
136:
137: install: $(BIN)/creatdb $(BIN)/destroydb $(BIN)/helpr
138: install: $(BIN)/printr $(BIN)/purge $(BIN)/restore
139: install: $(BIN)/usersetup $(BIN)/ingres $(BIN)/printadmin
140: install: $(BIN)/demodb $(BIN)/ingreslock $(BIN)/copydb
141: install: $(BIN)/ingconv
142:
143: $(BIN)/creatdb: creatdb
144: $(CP) creatdb $(BIN)/creatdb; $(CHMOD) $(SUMODE) $(BIN)/creatdb
145: $(BIN)/destroydb: destroydb
146: $(CP) destroydb $(BIN)/destroydb; $(CHMOD) $(SUMODE) $(BIN)/destroydb
147: $(BIN)/helpr: helpr
148: $(CP) helpr $(BIN)/helpr; $(CHMOD) $(SUMODE) $(BIN)/helpr
149: $(BIN)/indconv: indconv
150: $(CP) indconv $(BIN)/indconv; $(CHMOD) $(BINMODE) $(BIN)/indconv
151: $(BIN)/printr: printr
152: $(CP) printr $(BIN)/printr; $(CHMOD) $(SUMODE) $(BIN)/printr
153: $(BIN)/purge: purge
154: $(CP) purge $(BIN)/purge; $(CHMOD) $(SUMODE) $(BIN)/purge
155: $(BIN)/restore: restore
156: $(CP) restore $(BIN)/restore; $(CHMOD) $(SUMODE) $(BIN)/restore
157: $(BIN)/usersetup: usersetup
158: $(CP) usersetup $(BIN)/usersetup; $(CHMOD) 700 $(BIN)/usersetup
159: $(BIN)/ingres: ingres
160: $(CP) ingres $(BIN)/ingres; $(CHMOD) $(SUMODE) $(BIN)/ingres
161: $(CP) $(BIN)/ingres $(BIN)/sysmod ; $(CHMOD) $(SUMODE) $(BIN)/sysmod
162: $(BIN)/printadmin: printadmin
163: $(CP) printadmin $(BIN)/printadmin; $(CHMOD) $(SUMODE) $(BIN)/printadmin
164: $(BIN)/demodb: demodb.sh
165: $(CP) demodb.sh $(BIN)/demodb; $(CHMOD) $(SHMODE) $(BIN)/demodb
166:
167: $(BIN)/ingreslock: ingreslock
168: $(CP) ingreslock $(BIN)/ingreslock ; $(CHMOD) $(BINMODE) $(BIN)/ingreslock
169: $(BIN)/copydb: copydb
170: $(CP) copydb $(BIN)/copydb ; $(CHMOD) $(BINMODE) $(BIN)/copydb
171:
172: $(BIN)/ingconv: ingconv
173: $(CP) ingconv $(BIN)/ingconv ; $(CHMOD) $(SUMODE) $(BIN)/ingconv
174:
175: sysinstall:
176: sysinstall: $(SYSBIN)/ingres $(SYSBIN)/creatdb $(SYSBIN)/destroydb $(SYSBIN)/demodb
177: sysinstall: $(SYSBIN)/purge $(SYSBIN)/restore $(SYSBIN)/copydb
178: sysinstall: $(SYSBIN)/printr $(SYSBIN)/helpr $(SYSBIN)/ingconv
179:
180: $(SYSBIN)/ingres: ingres
181: $(CP) ingres $(SYSBIN)/ingres
182: $(CHOWN) ingres $(SYSBIN)/ingres; $(CHMOD) $(SUMODE) $(SYSBIN)/ingres
183: $(CP) sysmod $(SYSBIN)/sysmod
184: $(CHOWN) ingres $(SYSBIN)/sysmod; $(CHMOD) $(SUMODE) $(SYSBIN)/sysmod
185: $(SYSBIN)/creatdb: creatdb
186: $(CP) creatdb $(SYSBIN)/creatdb
187: $(CHOWN) ingres $(SYSBIN)/creatdb; $(CHMOD) $(SUMODE) $(SYSBIN)/creatdb
188: $(SYSBIN)/destroydb: destroydb
189: $(CP) destroydb $(SYSBIN)/destroydb
190: $(CHOWN) ingres $(SYSBIN)/destroydb; $(CHMOD) $(SUMODE) $(SYSBIN)/destroydb
191: $(SYSBIN)/demodb: demodb.sh
192: $(CP) demodb.sh $(SYSBIN)/demodb
193: $(CHOWN) ingres $(SYSBIN)/demodb; $(CHMOD) $(SHMODE) $(SYSBIN)/demodb
194: $(SYSBIN)/purge: purge
195: $(CP) purge $(SYSBIN)/purge
196: $(CHOWN) ingres $(SYSBIN)/purge; $(CHMOD) $(SUMODE) $(SYSBIN)/purge
197: $(SYSBIN)/restore: restore
198: $(CP) restore $(SYSBIN)/restore
199: $(CHOWN) ingres $(SYSBIN)/restore; $(CHMOD) $(SUMODE) $(SYSBIN)/restore
200: $(SYSBIN)/printr: printr
201: $(CP) printr $(SYSBIN)/printr
202: $(CHOWN) ingres $(SYSBIN)/printr; $(CHMOD) $(SUMODE) $(SYSBIN)/printr
203: $(SYSBIN)/helpr: helpr
204: $(CP) helpr $(SYSBIN)/helpr
205: $(CHOWN) ingres $(SYSBIN)/helpr; $(CHMOD) $(SUMODE) $(SYSBIN)/helpr
206: $(SYSBIN)/copydb: copydb
207: $(CP) copydb $(SYSBIN)/copydb ; $(CHMOD) $(BINMODE) $(SYSBIN)/copydb
208: $(SYSBIN)/ingconv: ingconv
209: $(CP) ingconv $(SYSBIN)/ingconv ; $(CHMOD) $(SUMODE) $(SYSBIN)/ingconv
210:
211: sources: $(SRCS)
212:
213: $(SRCS):
214: $(GET) $(REL) $@
215:
216: print: sources
217: $(PR) Makefile TraceFlags *.[hm] *.[csy]
218:
219: vgrind: sources
220: cp /dev/null index
221: $(VGRIND) -h "$(HEADER) (Release 8)" -n Makefile
222: $(VGRIND) -h "$(HEADER) (Release 8)" $(SRCS) $(HDRS)
223: sed /SCCSID/d < index > tmp
224: mv tmp index
225: $(VGRIND) -h "$(HEADER) (Release 8)" -x index
226:
227: tags: sources
228: -fgrep ../ tags > othertags
229: ctags $(SRCS) $(HDRS)
230: sort -o tags tags othertags
231: -rm -f othertags
232:
233: #
234: # DANGER DANGER DANGER DANGER DANGER DANGER
235: # The following two entries should NOT be executed by the user.
236: # These entries are only for the Makefile in conf to construct
237: # the system tag files.
238: #
239: systags:
240: ctags $(SRCS) $(HDRS)
241: sed "s/ / support\//" tags > systags
242: cat systags >> ../tags
243:
244: #
245: # We assume that systags has already been done.
246: #
247: installtags:
248: sed "/ support/d" ../tags | sed "s/ / ..\//" > othertags
249: sort -o tags tags othertags
250: -rm -f othertags systags
251: depend:
252: grep '^#[ ]*include' $(SRCS) | sed -n -f ../h/depend.sed > makedep
253: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
254: echo '$$r makedep' >>eddep
255: echo 'w' >>eddep
256: cp Makefile Makefile.bak
257: ed - Makefile < eddep
258: rm eddep makedep
259: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
260: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
261: echo '# see make depend above' >> Makefile
262:
263: # DO NOT DELETE THIS LINE -- make depend uses it
264:
265: creatdb.o:$H/ingres.h
266: creatdb.o:$H/aux.h
267: creatdb.o:$H/version.h
268: creatdb.o:$H/access.h
269: creatdb.o:$H/symbol.h
270: creatdb.o:$H/opsys.h
271: creatdb.o:$H/pv.h
272: creatdb.o:$H/sccs.h
273: destroydb.o:$H/ingres.h
274: destroydb.o:$H/aux.h
275: destroydb.o:$H/access.h
276: destroydb.o:$H/sccs.h
277: error.o:$H/ingres.h
278: error.o:$H/aux.h
279: error.o:$H/sccs.h
280: helpr.o:$H/ingres.h
281: helpr.o:$H/aux.h
282: helpr.o:$H/access.h
283: helpr.o:$H/lock.h
284: helpr.o:$H/pv.h
285: helpr.o:$H/sccs.h
286: ingres.o:$H/ingres.h
287: ingres.o:$H/aux.h
288: ingres.o:$H/version.h
289: ingres.o:$H/access.h
290: ingres.o:$H/lock.h
291: ingres.o:$H/opsys.h
292: ingres.o:$H/sccs.h
293: printr.o:$H/ingres.h
294: printr.o:$H/aux.h
295: printr.o:$H/access.h
296: printr.o:$H/lock.h
297: printr.o:$H/pv.h
298: printr.o:$H/sccs.h
299: purge.o:$H/ingres.h
300: purge.o:$H/aux.h
301: purge.o:$H/lock.h
302: purge.o:$H/pv.h
303: purge.o:$H/sccs.h
304: purge.o:$H/opsys.h
305: subs.o:$H/ingres.h
306: subs.o:$H/aux.h
307: subs.o:$H/access.h
308: subs.o:$H/lock.h
309: subs.o:$H/sccs.h
310: subs.o:$H/opsys.h
311: usersetup.o:$H/ingres.h
312: usersetup.o:$H/aux.h
313: usersetup.o:$H/opsys.h
314: usersetup.o:$H/sccs.h
315: indconv.o:$H/sccs.h
316: restore.o:$H/ingres.h
317: restore.o:$H/aux.h
318: restore.o:$H/catalog.h
319: restore.o:$H/access.h
320: restore.o:$H/batch.h
321: restore.o:$H/opsys.h
322: restore.o:$H/lock.h
323: restore.o:$H/symbol.h
324: restore.o:$H/resp.h
325: restore.o:$H/sccs.h
326: copydb.o:$H/useful.h
327: copydb.o:$H/sccs.h
328: prvect.o:$H/tree.h
329: prvect.o:$H/pv.h
330: prvect.o:$H/sccs.h
331: printadmin.o:$H/ingres.h
332: printadmin.o:$H/access.h
333: printadmin.o:$H/sccs.h
334: initsocket.o:$H/sccs.h
335: ildr.o:$H/ildr.h
336: ildr.o:$H/sccs.h
337: ingconv.o:$H/ingres.h
338: ingconv.o:$H/access.h
339: ingconv.o:$H/sccs.h
340: # DEPENDENCIES MUST END AT END OF FILE
341: # IF YOU PUT STUFF HERE IT WILL GO AWAY
342: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.