|
|
1.1 root 1: #
2: # Makefile for INGRES EQUEL runtime library
3: #
4: # @(#)Makefile 8.3 12/18/85
5: #
6:
7: INGRES= ../..
8: H= ../h
9: LIB= $(INGRES)/lib
10:
11: OBJS= IIw_left.o IIw_right.o IIcvar.o IIgettup.o IIn_get.o IIn_ret.o \
12: IIingres.o IIretrieve.o IIsetup.o IIflushtup.o IIsync.o \
13: IIwrite.o IIexit.o IIsyserr.o IIconvert.o IIerror.o IIp_err.o\
14: IIgetc.o IIresync.o IIreadinp.o IIpb_get.o IIpb_put.o IIpb_read.o \
15: IIpb_rphys.o IIpb_flush.o IIpb_write.o IIpb_wphys.o IIpb_prime.o \
16: IIitos.o IIconcatv.o IIbmove.o IIlength.o IIatoi.o IIsequal.o
17: SRCS1= IIw_left.c IIw_right.c IIcvar.c IIgettup.c IIn_get.c IIn_ret.c \
18: IIingres.c IIretrieve.c IIsetup.c IIflushtup.c IIsync.c \
19: IIwrite.c IIexit.c IIsyserr.c IIconvert.c IIerror.c IIp_err.c\
20: IIgetc.c IIresync.c IIreadinp.c IIpb_get.c IIpb_put.c IIpb_read.c \
21: IIpb_rphys.c IIpb_flush.c IIpb_write.c IIpb_wphys.c IIpb_prime.c \
22: IIitos.c IIconcatv.c IIbmove.c IIlength.c IIatoi.c IIsequal.c
23: HDRS= IIglobals.h
24: SRCS= $(SRCS1)
25:
26: SYSLIB= /usr/local/lib
27:
28: CFLAGS= -I$H -I../ctlmod -O
29: LINTFLAGS= -huc -I$H -I../ctlmod
30: AR= -ar
31: ARFLAGS=rvu
32: RANLIB= ranlib
33: CP= cp
34: CHMOD= chmod
35: CHOWN= -chown
36: LIBMODE=664
37: GET= sccs get
38: REL=
39: LINT= lint
40: PR= print
41: VGRIND= csh /usr/ucb/vgrind
42: HEADER= 'Equel Runtime Library'
43:
44: libq.a: $(OBJS)
45: $(AR) $(ARFLAGS) $@ $?
46: $(CHMOD) $(LIBMODE) libq.a
47: $(RANLIB) libq.a
48:
49: install: $(LIB)/libq.a
50:
51: $(LIB)/libq.a: libq.a
52: $(CP) libq.a $(LIB)/libq.a
53: $(RANLIB) $(LIB)/libq.a
54:
55: sysinstall: $(SYSLIB)/libq.a
56:
57: $(SYSLIB)/libq.a: libq.a
58: $(CP) libq.a $(SYSLIB)/libq.a
59: $(CHOWN) ingres $(SYSLIB)/libq.a
60: $(RANLIB) $(SYSLIB)/libq.a
61:
62: sources: $(SRCS) $(HDRS)
63:
64: $(SRCS):
65: $(GET) $(REL) $@
66:
67: new:
68: rm -f libq.a
69:
70: clean:
71: rm -f *.o
72: rm -f a.out core libq.a
73:
74: lint:
75: $(LINT) $(LINTFLAGS) $(SRCS1)
76:
77: print: sources
78: $(PR) Makefile TraceFlags *.[hm] *.[csy]
79:
80: vgrind: sources
81: cp /dev/null index
82: $(VGRIND) -h "$(HEADER) (Release 8)" -n Makefile
83: $(VGRIND) -h "$(HEADER) (Release 8)" *.[hm] *.[csy]
84: sed /SCCSID/d < index > tmp
85: mv tmp index
86: $(VGRIND) -h "$(HEADER) (Release 8)" -x index
87:
88: tags: sources
89: -fgrep ../ tags > othertags
90: ctags $(SRCS) $(HDRS)
91: sort -o tags tags othertags
92: -rm -f othertags
93:
94: #
95: # DANGER DANGER DANGER DANGER DANGER DANGER
96: # The following two entries should NOT be executed by the user.
97: # These entries are only for the Makefile in conf to construct
98: # the system tag files.
99: #
100: systags:
101: ctags $(SRCS) $(HDRS)
102: sed "s/ / libq\//" tags > systags
103: cat systags >> ../tags
104:
105: #
106: # We assume that systags has already been done.
107: #
108: installtags:
109: sed "/ libq/d" ../tags | sed "s/ / ..\//" > othertags
110: sort -o tags tags othertags
111: -rm -f othertags systags
112:
113: depend:
114: grep '^#[ ]*include' $(SRCS) | sed -n -f ../h/depend.sed > makedep
115: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
116: echo '$$r makedep' >>eddep
117: echo 'w' >>eddep
118: cp Makefile Makefile.bak
119: ed - Makefile < eddep
120: rm eddep makedep
121: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
122: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
123: echo '# see make depend above' >> Makefile
124:
125: # DO NOT DELETE THIS LINE -- make depend uses it
126:
127: IIw_left.o:$H/ingres.h
128: IIw_left.o:../equel/constants.h
129: IIw_left.o:IIglobals.h
130: IIw_left.o:$H/errors.h
131: IIw_right.o:$H/ingres.h
132: IIw_right.o:../equel/constants.h
133: IIw_right.o:IIglobals.h
134: IIw_right.o:$H/errors.h
135: IIcvar.o:$H/ingres.h
136: IIcvar.o:$H/symbol.h
137: IIcvar.o:IIglobals.h
138: IIgettup.o:$H/ingres.h
139: IIgettup.o:$H/symbol.h
140: IIgettup.o:IIglobals.h
141: IIgettup.o:$H/errors.h
142: IIn_get.o:$H/ingres.h
143: IIn_get.o:$H/symbol.h
144: IIn_get.o:IIglobals.h
145: IIn_ret.o:$H/ingres.h
146: IIn_ret.o:$H/symbol.h
147: IIn_ret.o:IIglobals.h
148: IIn_ret.o:$H/errors.h
149: IIingres.o:$H/ingres.h
150: IIingres.o:$H/symbol.h
151: IIingres.o:$H/opsys.h
152: IIingres.o:$H/aux.h
153: IIingres.o:IIglobals.h
154: IIretrieve.o:$H/ingres.h
155: IIretrieve.o:$H/symbol.h
156: IIretrieve.o:IIglobals.h
157: IIsetup.o:$H/ingres.h
158: IIsetup.o:$H/symbol.h
159: IIsetup.o:IIglobals.h
160: IIflushtup.o:$H/ingres.h
161: IIflushtup.o:$H/aux.h
162: IIflushtup.o:$H/symbol.h
163: IIflushtup.o:IIglobals.h
164: IIsync.o:$H/ingres.h
165: IIsync.o:$H/symbol.h
166: IIsync.o:IIglobals.h
167: IIwrite.o:$H/ingres.h
168: IIwrite.o:$H/symbol.h
169: IIwrite.o:IIglobals.h
170: IIexit.o:$H/ingres.h
171: IIexit.o:$H/symbol.h
172: IIexit.o:IIglobals.h
173: IIconvert.o:$H/ingres.h
174: IIconvert.o:$H/symbol.h
175: IIerror.o:$H/ingres.h
176: IIerror.o:$H/symbol.h
177: IIerror.o:IIglobals.h
178: IIp_err.o:$H/ingres.h
179: IIp_err.o:$H/aux.h
180: IIp_err.o:$H/version.h
181: IIp_err.o:IIglobals.h
182: IIgetc.o:$H/ingres.h
183: IIgetc.o:IIglobals.h
184: IIresync.o:$H/ingres.h
185: IIresync.o:IIglobals.h
186: IIreadinp.o:$H/useful.h
187: IIreadinp.o:$H/ingres.h
188: IIreadinp.o:$H/aux.h
189: IIreadinp.o:IIglobals.h
190: IIreadinp.o:$H/errors.h
191: IIpb_get.o:$H/useful.h
192: IIpb_put.o:$H/useful.h
193: IIpb_read.o:$H/ingres.h
194: IIpb_read.o:IIglobals.h
195: IIpb_write.o:$H/ingres.h
196: IIpb_write.o:IIglobals.h
197: IIpb_prime.o:$H/symbol.h
198: # DEPENDENCIES MUST END AT END OF FILE
199: # IF YOU PUT STUFF HERE IT WILL GO AWAY
200: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.