|
|
1.1 root 1: #
2: # Makefile for INGRES database utilities
3: #
4: # @(#)Makefile 7.1 2/5/81
5: #
6:
7: INGRES= ../..
8: H= ../h
9: LIB= $(INGRES)/lib
10: BIN= $(INGRES)/bin
11:
12: CTLMOD= $(LIB)/ctlmod
13: IUTIL= $(LIB)/iutil
14: GUTIL= $(LIB)/gutil
15: DBULIB= $(LIB)/dbulib
16:
17: LIBS= $(CTLMOD) $(IUTIL) $(GUTIL)
18: NLIBS= $(CTLMOD) $(LIB)/naccess $(IUTIL) $(GUTIL)
19: LIBS1= $(CTLMOD) $(DBULIB) $(IUTIL) $(GUTIL)
20: NOBJS= nmodify.o
21: OBJS= index.o create.o modify.o modupdate.o destroy.o \
22: udestroy.o copy.o purgetup.o print.o rupdate.o \
23: help.o save.o update.o convert.o secupdate.o \
24: rdwrbatch.o resetrel.o seq_atts.o \
25: get_p_tid.o display.o pr_prot.o pr_tree.o rmqm.o
26: OOBJS= index.o create.o modupdate.o destroy.o udestroy.o \
27: purgetup.o print.o rupdate.o help.o save.o update.o convert.o \
28: secupdate.o rdwrbatch.o resetrel.o seq_atts.o \
29: get_p_tid.o copy.o
30: SRCS= index.c create.c modupdate.c destroy.c udestroy.c \
31: purgetup.c print.c rupdate.c help.c save.c update.c convert.c \
32: secupdate.c rdwrbatch.c resetrel.c seq_atts.c \
33: get_p_tid.c copy.c modify.c ksort.c \
34: display.c rmqm.c pr_prot.c pr_tree.c
35:
36: AR= -ar
37: ARFLAGS=rvu
38: RANLIB= ranlib
39: CFLAGS= -I$H -O
40: LDFLAGS=-z
41: CP= cp
42: CHMOD= chmod
43: LIBMODE=664
44: BINMODE=4740
45: ROMODE= 444
46: GET= sccs get
47: REL=
48: PR= print
49: VGRIND= csh /usr/ucb/vgrind
50: HEADER= Database Utilities
51:
52: dbulib: $(OBJS)
53: $(AR) $(ARFLAGS) dbulib $?
54: $(CHMOD) $(LIBMODE) dbulib
55: $(RANLIB) dbulib
56:
57: install: $(LIB)/dbulib $(BIN)/ksort7
58:
59: $(LIB)/dbulib: dbulib
60: $(CP) dbulib $(LIB)/dbulib
61: $(RANLIB) $(LIB)/dbulib
62:
63: $(BIN)/ksort7: ksort
64: $(CP) ksort $(BIN)/ksort7; $(CHMOD) $(BINMODE) $(BIN)/ksort7
65:
66: alldbu: $(OBJS) config.o
67: $(CC) config.o $(OBJS) $(LDFLAGS) $(LIBS) -o alldbu
68: $(CHMOD) $(BINMODE) alldbu
69:
70: nalldbu:$(OOBJS) $(NOBJS) config.o
71: $(CC) config.o $(NOBJS) $(OOBJS) $(LDFLAGS) $(NLIBS) -o nalldbu
72: chmod 4700 nalldbu
73:
74: ksort: ksort.o $(LIBS)
75: $(CC) [email protected] $(LDFLAGS) $(LIBS) -o $@
76: $(CHMOD) $(BINMODE) ksort
77:
78: new:
79: rm -f dbulib alldbu
80:
81: clean:
82: rm -f *.o overlay?
83: rm -f dbulib ksort alldbu a.out core
84:
85: sources: $(SRCS)
86:
87: $(SRCS):
88: $(GET) $(REL) SCCS/s.$@
89:
90: print: sources
91: $(PR) Makefile TraceFlags *.[hm] *.[csy]
92:
93: vgrind: sources
94: cp /dev/null index
95: $(VGRIND) -h "$(HEADER) (Release 7)" -n Makefile TraceFlags
96: $(VGRIND) -h "$(HEADER) (Release 7)" *.[csy]
97: $(VGRIND) -h "$(HEADER) (Release 7)" -x index
98:
99: config.c: ../conf/SCCS/s.alldbu.c
100: rm -f config.c
101: $(GET) $(REL) -p ../conf/SCCS/s.alldbu.c > config.c
102: $(CHMOD) $(ROMODE) config.c
103:
104: depend:
105: grep '^#[ ]*include' $(SRCS) | sed -n -f ../h/depend.sed > makedep
106: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
107: echo '$$r makedep' >>eddep
108: echo 'w' >>eddep
109: cp Makefile Makefile.bak
110: ed - Makefile < eddep
111: rm eddep makedep
112: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
113: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
114: echo '# see make depend above' >> Makefile
115:
116: # DO NOT DELETE THIS LINE -- make depend uses it
117:
118: index.o:$H/pv.h
119: index.o:$H/func.h
120: index.o:$H/symbol.h
121: index.o:$H/ingres.h
122: index.o:$H/aux.h
123: index.o:$H/catalog.h
124: index.o:$H/access.h
125: index.o:$H/lock.h
126: create.o:$H/pv.h
127: create.o:$H/ingres.h
128: create.o:$H/access.h
129: create.o:$H/aux.h
130: create.o:$H/catalog.h
131: create.o:$H/symbol.h
132: create.o:$H/lock.h
133: create.o:$H/func.h
134: modupdate.o:$H/pv.h
135: modupdate.o:$H/ingres.h
136: modupdate.o:$H/aux.h
137: modupdate.o:$H/catalog.h
138: modupdate.o:$H/access.h
139: modupdate.o:$H/opsys.h
140: destroy.o:$H/pv.h
141: destroy.o:$H/ingres.h
142: destroy.o:$H/aux.h
143: destroy.o:$H/catalog.h
144: destroy.o:$H/func.h
145: udestroy.o:$H/ingres.h
146: udestroy.o:$H/aux.h
147: udestroy.o:$H/catalog.h
148: purgetup.o:$H/ingres.h
149: print.o:$H/pv.h
150: print.o:$H/ingres.h
151: print.o:$H/access.h
152: print.o:$H/aux.h
153: print.o:$H/lock.h
154: print.o:$H/func.h
155: rupdate.o:$H/pv.h
156: rupdate.o:$H/ingres.h
157: rupdate.o:$H/func.h
158: help.o:$H/pv.h
159: help.o:$H/ingres.h
160: help.o:$H/aux.h
161: help.o:$H/catalog.h
162: help.o:$H/access.h
163: help.o:$H/func.h
164: save.o:$H/pv.h
165: save.o:$H/ingres.h
166: save.o:$H/aux.h
167: save.o:$H/func.h
168: save.o:$H/opsys.h
169: update.o:$H/ingres.h
170: update.o:$H/resp.h
171: update.o:$H/aux.h
172: update.o:$H/symbol.h
173: update.o:$H/access.h
174: convert.o:$H/ingres.h
175: convert.o:$H/symbol.h
176: secupdate.o:$H/ingres.h
177: secupdate.o:$H/aux.h
178: secupdate.o:$H/catalog.h
179: secupdate.o:$H/symbol.h
180: secupdate.o:$H/access.h
181: rdwrbatch.o:$H/ingres.h
182: rdwrbatch.o:$H/aux.h
183: rdwrbatch.o:$H/symbol.h
184: rdwrbatch.o:$H/access.h
185: resetrel.o:$H/pv.h
186: resetrel.o:$H/ingres.h
187: resetrel.o:$H/aux.h
188: resetrel.o:$H/access.h
189: resetrel.o:$H/func.h
190: seq_atts.o:$H/ingres.h
191: seq_atts.o:$H/access.h
192: get_p_tid.o:$H/ingres.h
193: get_p_tid.o:$H/catalog.h
194: copy.o:$H/func.h
195: copy.o:$H/pv.h
196: copy.o:$H/ingres.h
197: copy.o:$H/aux.h
198: copy.o:$H/access.h
199: copy.o:$H/symbol.h
200: copy.o:$H/lock.h
201: modify.o:$H/ingres.h
202: modify.o:$H/pv.h
203: modify.o:$H/aux.h
204: modify.o:$H/access.h
205: modify.o:$H/lock.h
206: modify.o:$H/opsys.h
207: modify.o:$H/func.h
208: ksort.o:$H/ingres.h
209: ksort.o:$H/aux.h
210: ksort.o:$H/symbol.h
211: ksort.o:$H/access.h
212: ksort.o:$H/func.h
213: display.o:$H/ingres.h
214: display.o:$H/aux.h
215: display.o:$H/catalog.h
216: display.o:$H/tree.h
217: display.o:$H/symbol.h
218: display.o:$H/access.h
219: display.o:$H/func.h
220: display.o:$H/pv.h
221: rmqm.o:$H/pv.h
222: rmqm.o:$H/ingres.h
223: rmqm.o:$H/access.h
224: rmqm.o:$H/aux.h
225: rmqm.o:$H/catalog.h
226: rmqm.o:$H/symbol.h
227: rmqm.o:$H/func.h
228: pr_prot.o:$H/ingres.h
229: pr_prot.o:$H/tree.h
230: pr_prot.o:$H/aux.h
231: pr_prot.o:$H/catalog.h
232: pr_prot.o:$H/symbol.h
233: pr_tree.o:$H/symbol.h
234: pr_tree.o:$H/ingres.h
235: pr_tree.o:$H/tree.h
236: pr_tree.o:$H/aux.h
237: # DEPENDENCIES MUST END AT END OF FILE
238: # IF YOU PUT STUFF HERE IT WILL GO AWAY
239: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.