|
|
1.1 root 1: #
2: # Makefile for tty monitor
3: #
4: # @(#)Makefile 7.1 2/5/81
5: #
6:
7: INGRES= ../..
8: LIB= $(INGRES)/lib
9: H= ../h
10:
11: CTLMOD= $(LIB)/ctlmod
12: IUTIL= $(LIB)/iutil
13: GUTIL= $(LIB)/gutil
14: LIBS= $(CTLMOD) $(IUTIL) $(GUTIL)
15:
16: OBJS= ttymon.o monitor.o clear.o edit.o go.o trapquery.o \
17: print.o quit.o shell.o eval.o writeout.o xwait.o \
18: clrline.o prompt.o getch.o branch.o newdirec.o \
19: include.o getfilenm.o expr.o mcall.o mac.o buf.o \
20: syscntrl.o
21: SRCS= ttymon.c monitor.c clear.c edit.c go.c trapquery.c \
22: print.c quit.c shell.c eval.c writeout.c xwait.c \
23: clrline.c prompt.c getch.c branch.c newdirec.c \
24: include.c getfilenm.c expr.c mcall.c mac.c buf.c \
25: syscntrl.c buf.h monitor.h
26:
27: CFLAGS= -I$H -O -I../ctlmod
28: LDFLAGS=-z
29: BIN= $(INGRES)/bin
30: GET= sccs get
31: REL=
32: AR= -ar
33: ARFLAGS=rvu
34: RANLIB= ranlib
35: PR= print
36: VGRIND= csh /usr/ucb/vgrind
37: HEADER= Terminal Monitor
38: CP= cp
39: CHMOD= chmod
40: LIBMODE=664
41: BINMODE=751
42: ROMODE= 444
43:
44: monlib: $(OBJS)
45: $(AR) $(ARFLAGS) monlib $?
46: $(CHMOD) $(LIBMODE) monlib
47: $(RANLIB) monlib
48:
49: install: $(LIB)/monitor
50:
51: $(LIB)/monitor: monlib
52: $(CP) monlib $(LIB)/monitor
53: $(RANLIB) $(LIB)/monitor
54:
55: monitor: $(OBJS) config.o
56: $(CC) $(LDFLAGS) config.o $(OBJS) $(OTHERS) $(LIBS) -o monitor
57: $(CHMOD) $(BINMODE) monitor
58: ls -l monitor; size monitor
59:
60: new:
61: rm -f monlib monitor
62:
63: clean:
64: rm -f a.out monitor monlib core
65: rm -f *.o
66:
67: sources: $(SRCS)
68:
69: $(SRCS):
70: $(GET) $(REL) SCCS/s.$@
71:
72: print: sources
73: $(PR) Makefile TraceFlags *.[hm] *.[csy]
74:
75: vgrind: sources
76: cp /dev/null index
77: $(VGRIND) -h "$(HEADER) (Release 7)" -n Makefile TraceFlags
78: $(VGRIND) -h "$(HEADER) (Release 7)" *.[hm] *.[csy]
79: $(VGRIND) -h "$(HEADER) (Release 7)" -x index
80:
81: config.c: ../conf/SCCS/s.monitor.c
82: rm -f config.c
83: $(GET) $(REL) -p ../conf/SCCS/s.monitor.c > config.c
84: $(CHMOD) $(ROMODE) config.c
85:
86: depend:
87: grep '^#[ ]*include' $(SRCS) | sed -n -f ../h/depend.sed > makedep
88: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
89: echo '$$r makedep' >>eddep
90: echo 'w' >>eddep
91: cp Makefile Makefile.bak
92: ed - Makefile < eddep
93: rm eddep makedep
94: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
95: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
96: echo '# see make depend above' >> Makefile
97:
98: # DO NOT DELETE THIS LINE -- make depend uses it
99:
100: ttymon.o:monitor.h
101: ttymon.o:$H/ingres.h
102: ttymon.o:$H/version.h
103: ttymon.o:$H/opsys.h
104: ttymon.o:$H/pv.h
105: ttymon.o:$H/func.h
106: monitor.o:monitor.h
107: monitor.o:$H/ingres.h
108: monitor.o:$H/aux.h
109: clear.o:monitor.h
110: clear.o:$H/ingres.h
111: clear.o:$H/aux.h
112: edit.o:monitor.h
113: edit.o:$H/ingres.h
114: edit.o:$H/aux.h
115: edit.o:$H/opsys.h
116: go.o:monitor.h
117: go.o:$H/ingres.h
118: go.o:$H/aux.h
119: go.o:$H/resp.h
120: go.o:$H/symbol.h
121: go.o:$H/pv.h
122: trapquery.o:monitor.h
123: trapquery.o:$H/trace.h
124: trapquery.o:$H/resp.h
125: print.o:monitor.h
126: print.o:$H/ingres.h
127: print.o:$H/aux.h
128: quit.o:monitor.h
129: quit.o:$H/ingres.h
130: quit.o:$H/aux.h
131: shell.o:monitor.h
132: shell.o:$H/ingres.h
133: shell.o:$H/aux.h
134: shell.o:$H/opsys.h
135: eval.o:monitor.h
136: eval.o:$H/ingres.h
137: eval.o:$H/aux.h
138: writeout.o:monitor.h
139: writeout.o:$H/ingres.h
140: writeout.o:$H/aux.h
141: xwait.o:monitor.h
142: xwait.o:$H/ingres.h
143: xwait.o:$H/aux.h
144: clrline.o:monitor.h
145: clrline.o:$H/ingres.h
146: clrline.o:$H/aux.h
147: prompt.o:monitor.h
148: prompt.o:$H/ingres.h
149: prompt.o:$H/aux.h
150: getch.o:monitor.h
151: getch.o:$H/ingres.h
152: getch.o:$H/aux.h
153: branch.o:monitor.h
154: branch.o:$H/ingres.h
155: branch.o:$H/aux.h
156: newdirec.o:monitor.h
157: newdirec.o:$H/ingres.h
158: newdirec.o:$H/aux.h
159: include.o:monitor.h
160: include.o:$H/ingres.h
161: include.o:$H/aux.h
162: getfilenm.o:monitor.h
163: getfilenm.o:$H/ingres.h
164: getfilenm.o:$H/aux.h
165: expr.o:$H/ingres.h
166: mcall.o:$H/ingres.h
167: mac.o:$H/useful.h
168: mac.o:buf.h
169: buf.o:buf.h
170: syscntrl.o:monitor.h
171: syscntrl.o:$H/func.h
172: monitor.h:$H/useful.h
173: # DEPENDENCIES MUST END AT END OF FILE
174: # IF YOU PUT STUFF HERE IT WILL GO AWAY
175: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.