|
|
1.1 root 1: #
2: # Makefile for INGRES EQUEL precompiler
3: #
4: # @(#)Makefile 8.2 12/18/85
5: #
6:
7: INGRES= ../..
8: H= ../h
9: LIB= $(INGRES)/lib
10: BIN= $(INGRES)/bin
11: SYSBIN= /usr/local
12:
13: OBJS= main.o yylex.o grammar.o cvar.o include.o name.o getkey.o \
14: number.o operator.o prtout.o string.o comment.o retrieve.o display.o \
15: getch.o cmap.o yyerror.o nalloc.o
16: HDRS= constants.h globals.h
17: SRCS= main.c yylex.c grammar.y cvar.c include.c name.c getkey.c \
18: number.c operator.c prtout.c string.c comment.c retrieve.c display.c \
19: getch.c cmap.c yyerror.c nalloc.c tokens.y
20:
21: GUTIL= $(LIB)/gutil
22: # include -lm on the VAX
23: LIBS= $(GUTIL) -lm
24:
25: CFLAGS= -I$H -O
26: LINTFLAGS= -huc -I$H
27: LDFLAGS=
28: YFLAGS= -d
29: GET= sccs get
30: REL=
31: PR= pr
32: LINT= lint
33: VGRIND= csh /usr/ucb/vgrind
34: HEADER= Equel Precompiler
35: CP= cp
36: CHMOD= chmod
37: CHOWN= -chown
38: BINMODE=755
39:
40: equel: $(OBJS)
41: $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o equel
42: $(CHMOD) $(BINMODE) equel
43: ls -l equel; size equel
44:
45: new:
46: rm -f equel
47:
48: clean:
49: rm -f *.o
50: rm -f a.out y.tab.c y.tab.h core equel grammar.c
51:
52: install: $(BIN)/equel
53:
54: $(BIN)/equel: equel
55: $(CP) equel $(BIN)/equel
56:
57: sysinstall: $(SYSBIN)/equel
58: $(CP) equel $(SYSBIN)/equel
59: $(CHOWN) ingres $(SYSBIN)/equel
60:
61: lint:
62: $(LINT) $(LINTFLAGS) $(SRCS)
63:
64: print: sources
65: $(PR) Makefile TraceFlags *.[hm] *.[csy]
66:
67: vgrind: sources
68: cp /dev/null index
69: $(VGRIND) -h "$(HEADER) (Release 8)" -n Makefile
70: $(VGRIND) -h "$(HEADER) (Release 8)" *.[hm] *.[csy]
71: sed /SCCSID/d < index > tmp
72: mv tmp index
73: $(VGRIND) -h "$(HEADER) (Release 8)" -x index
74:
75: tags: sources
76: -fgrep ../ tags > othertags
77: ctags $(SRCS) $(HDRS)
78: sort -o tags tags othertags
79: -rm -f othertags
80:
81: #
82: # DANGER DANGER DANGER DANGER DANGER DANGER
83: # The following two entries should NOT be executed by the user.
84: # These entries are only for the Makefile in conf to construct
85: # the system tag files.
86: #
87: systags:
88: ctags $(SRCS) $(HDRS)
89:
90: #
91: # We assume that systags has already been done.
92: #
93: installtags:
94: sed "/ equel/d" ../tags | sed "s/ / ..\//" > othertags
95: sort -o tags tags othertags
96: -rm -f othertags systags
97:
98: sources: $(SRCS) $(HDRS)
99:
100: $(HDRS):
101: $(GET) $(REL) $@
102: $(SRCS):
103: $(GET) $(REL) $@
104:
105: y.tab.h: grammar.c
106:
107: depend:
108: grep '^#[ ]*include' $(SRCS) | sed -n -f ../h/depend.sed > makedep
109: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
110: echo '$$r makedep' >>eddep
111: echo 'w' >>eddep
112: cp Makefile Makefile.bak
113: ed - Makefile < eddep
114: rm eddep makedep
115: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
116: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
117: echo '# see make depend above' >> Makefile
118:
119: # DO NOT DELETE THIS LINE -- make depend uses it
120:
121: main.o:constants.h
122: main.o:globals.h
123: yylex.o:constants.h
124: yylex.o:globals.h
125: yylex.o:y.tab.h
126: grammar.o:constants.h
127: grammar.o:globals.h
128: grammar.o:tokens.y
129: cvar.o:constants.h
130: cvar.o:globals.h
131: include.o:constants.h
132: include.o:globals.h
133: name.o:constants.h
134: name.o:globals.h
135: name.o:y.tab.h
136: getkey.o:constants.h
137: getkey.o:globals.h
138: number.o:constants.h
139: number.o:globals.h
140: number.o:y.tab.h
141: operator.o:constants.h
142: operator.o:globals.h
143: operator.o:y.tab.h
144: prtout.o:constants.h
145: prtout.o:globals.h
146: string.o:constants.h
147: string.o:globals.h
148: string.o:y.tab.h
149: comment.o:constants.h
150: comment.o:globals.h
151: retrieve.o:constants.h
152: retrieve.o:globals.h
153: display.o:constants.h
154: display.o:globals.h
155: getch.o:constants.h
156: getch.o:globals.h
157: cmap.o:constants.h
158: yyerror.o:constants.h
159: yyerror.o:globals.h
160: yyerror.o:y.tab.h
161: # DEPENDENCIES MUST END AT END OF FILE
162: # IF YOU PUT STUFF HERE IT WILL GO AWAY
163: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.