1 # $Id: proto.make,v 1.8 1995/11/08 11:09:11 ceriel Exp $
3 #PARAMS do not remove this line
5 SRC_DIR = $(SRC_HOME)/util/ego/share
9 CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I.
10 CFLAGS=$(CPPFLAGS) $(COPTIONS)
11 UCFLAGS=$(CPPFLAGS) $(UCOPTIONS)
12 ULDFLAGS=$(ULDOPTIONS)
27 $(SRC_DIR)/stack_chg.c \
29 $(SRC_DIR)/init_glob.c
45 $(SRC_DIR)/stack_chg.h \
47 $(SRC_DIR)/init_glob.h \
52 OBS = alloc.$(SUF) cset.$(SUF) debug.$(SUF) \
53 files.$(SUF) go.$(SUF) global.$(SUF) lset.$(SUF) map.$(SUF) \
54 parser.$(SUF) get.$(SUF) put.$(SUF) aux.$(SUF) stack_chg.$(SUF) \
55 locals.$(SUF) init_glob.$(SUF)
57 all: classdefs.h $(SRC_DIR)/pop_push.h $(OBS)
58 $(AR) r share.$(LIBSUF) $(OBS)
59 $(RANLIB) share.$(LIBSUF)
62 -mkdir $(TARGET_HOME)/lib.bin/ego
63 cp share.$(LIBSUF) $(TARGET_HOME)/lib.bin/ego/share.$(LIBSUF)
64 $(RANLIB) $(TARGET_HOME)/lib.bin/ego/share.$(LIBSUF)
65 cp classdefs.h $(TARGET_HOME)/lib.bin/ego/classdefs.h
66 cp $(SRC_DIR)/pop_push.h $(TARGET_HOME)/lib.bin/ego/pop_push.h
69 -cmp share.$(LIBSUF) $(TARGET_HOME)/lib.bin/ego/share.$(LIBSUF)
70 -cmp classdefs.h $(TARGET_HOME)/lib.bin/ego/classdefs.h
71 -cmp $(SRC_DIR)/pop_push.h $(TARGET_HOME)/lib.bin/ego/pop_push.h
76 ./makeclassdef $(EMH)/em_mnem.h $(SRC_DIR)/cldefs.src > classdefs.h
79 $(SRC_DIR)/makecldef.c
80 $(UCC) $(UCFLAGS) $(ULDFLAGS) -o makeclassdef $(SRC_DIR)/makecldef.c
82 $(SRC_DIR)/pop_push.h: \
83 $(SRC_HOME)/etc/em_table $(SRC_DIR)/pop_push.awk
84 awk -f $(SRC_DIR)/pop_push.awk < $(SRC_HOME)/etc/em_table > $(SRC_DIR)/pop_push.h
88 $(UCC) $(UCFLAGS) $(ULDFLAGS) -o show $(SRC_DIR)/show.c $(UTIL_HOME)/lib.bin/em_data.$(ULIBSUF)
97 rm -f makeclassdef classdefs.h *.$(SUF) Out out nohup.out *.$(LIBSUF)
100 -mkdir $(TARGET_HOME)/lib.bin/ego
101 $(MK_LINT_LIB) share $(TARGET_HOME)/lib.bin/ego $(CPPFLAGS) $(CFILES)
103 depend: $(SRC_DIR)/pop_push.h classdefs.h
104 rm_deps Makefile >Makefile.new
105 for i in $(CFILES) ; do \
106 echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
107 echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
108 $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF): /" >> Makefile.new ; \
110 mv Makefile Makefile.old
111 mv Makefile.new Makefile
113 # do not remove the next line.
115 debug.$(SUF): $(SRC_DIR)/debug.c
116 $(CC) -c $(CFLAGS) $(SRC_DIR)/debug.c
117 debug.$(SUF): $(SRC_DIR)/global.h
118 debug.$(SUF): $(SRC_DIR)/debug.h
119 debug.$(SUF): $(SRC_DIR)/def.h
120 debug.$(SUF): $(SRC_DIR)/types.h
121 debug.$(SUF): $(EMH)/em_spec.h
122 global.$(SUF): $(SRC_DIR)/global.c
123 $(CC) -c $(CFLAGS) $(SRC_DIR)/global.c
124 global.$(SUF): $(SRC_DIR)/types.h
125 files.$(SUF): $(SRC_DIR)/files.c
126 $(CC) -c $(CFLAGS) $(SRC_DIR)/files.c
127 go.$(SUF): $(SRC_DIR)/go.c
128 $(CC) -c $(CFLAGS) $(SRC_DIR)/go.c
129 go.$(SUF): $(SRC_DIR)/go.h
130 go.$(SUF): $(SRC_DIR)/alloc.h
131 go.$(SUF): $(SRC_DIR)/map.h
132 go.$(SUF): $(SRC_DIR)/lset.h
133 go.$(SUF): $(SRC_DIR)/put.h
134 go.$(SUF): $(SRC_DIR)/get.h
135 go.$(SUF): $(SRC_DIR)/files.h
136 go.$(SUF): $(SRC_DIR)/global.h
137 go.$(SUF): $(SRC_DIR)/debug.h
138 go.$(SUF): $(SRC_DIR)/types.h
139 map.$(SUF): $(SRC_DIR)/map.c
140 $(CC) -c $(CFLAGS) $(SRC_DIR)/map.c
141 map.$(SUF): $(SRC_DIR)/map.h
142 map.$(SUF): $(SRC_DIR)/types.h
143 aux.$(SUF): $(SRC_DIR)/aux.c
144 $(CC) -c $(CFLAGS) $(SRC_DIR)/aux.c
145 aux.$(SUF): $(SRC_DIR)/lset.h
146 aux.$(SUF): $(SRC_DIR)/map.h
147 aux.$(SUF): $(SRC_DIR)/aux.h
148 aux.$(SUF): $(SRC_DIR)/alloc.h
149 aux.$(SUF): $(SRC_DIR)/global.h
150 aux.$(SUF): $(SRC_DIR)/debug.h
151 aux.$(SUF): $(SRC_DIR)/types.h
152 aux.$(SUF): $(EMH)/em_pseu.h
153 aux.$(SUF): $(EMH)/em_mes.h
154 get.$(SUF): $(SRC_DIR)/get.c
155 $(CC) -c $(CFLAGS) $(SRC_DIR)/get.c
156 get.$(SUF): $(SRC_DIR)/aux.h
157 get.$(SUF): $(SRC_DIR)/map.h
158 get.$(SUF): $(SRC_DIR)/alloc.h
159 get.$(SUF): $(SRC_DIR)/get.h
160 get.$(SUF): $(SRC_DIR)/cset.h
161 get.$(SUF): $(SRC_DIR)/lset.h
162 get.$(SUF): $(SRC_DIR)/global.h
163 get.$(SUF): $(SRC_DIR)/debug.h
164 get.$(SUF): $(SRC_DIR)/def.h
165 get.$(SUF): $(SRC_DIR)/types.h
166 get.$(SUF): $(EMH)/em_mes.h
167 get.$(SUF): $(EMH)/em_pseu.h
168 get.$(SUF): $(EMH)/em_mnem.h
169 get.$(SUF): $(EMH)/em_spec.h
170 put.$(SUF): $(SRC_DIR)/put.c
171 $(CC) -c $(CFLAGS) $(SRC_DIR)/put.c
172 put.$(SUF): $(SRC_DIR)/put.h
173 put.$(SUF): $(SRC_DIR)/alloc.h
174 put.$(SUF): $(SRC_DIR)/lset.h
175 put.$(SUF): $(SRC_DIR)/map.h
176 put.$(SUF): $(SRC_DIR)/def.h
177 put.$(SUF): $(SRC_DIR)/debug.h
178 put.$(SUF): $(SRC_DIR)/global.h
179 put.$(SUF): $(SRC_DIR)/types.h
180 put.$(SUF): $(EMH)/em_spec.h
181 put.$(SUF): $(EMH)/em_pseu.h
182 alloc.$(SUF): $(SRC_DIR)/alloc.c
183 $(CC) -c $(CFLAGS) $(SRC_DIR)/alloc.c
184 alloc.$(SUF): $(SRC_DIR)/alloc.h
185 alloc.$(SUF): $(SRC_DIR)/debug.h
186 alloc.$(SUF): $(SRC_DIR)/types.h
187 lset.$(SUF): $(SRC_DIR)/lset.c
188 $(CC) -c $(CFLAGS) $(SRC_DIR)/lset.c
189 lset.$(SUF): $(SRC_DIR)/debug.h
190 lset.$(SUF): $(SRC_DIR)/alloc.h
191 lset.$(SUF): $(SRC_DIR)/lset.h
192 lset.$(SUF): $(SRC_DIR)/types.h
193 cset.$(SUF): $(SRC_DIR)/cset.c
194 $(CC) -c $(CFLAGS) $(SRC_DIR)/cset.c
195 cset.$(SUF): $(SRC_DIR)/global.h
196 cset.$(SUF): $(SRC_DIR)/debug.h
197 cset.$(SUF): $(SRC_DIR)/alloc.h
198 cset.$(SUF): $(SRC_DIR)/cset.h
199 cset.$(SUF): $(SRC_DIR)/types.h
200 parser.$(SUF): $(SRC_DIR)/parser.c
201 $(CC) -c $(CFLAGS) $(SRC_DIR)/parser.c
202 parser.$(SUF): ./classdefs.h
203 parser.$(SUF): $(SRC_DIR)/aux.h
204 parser.$(SUF): $(SRC_DIR)/lset.h
205 parser.$(SUF): $(SRC_DIR)/global.h
206 parser.$(SUF): $(SRC_DIR)/alloc.h
207 parser.$(SUF): $(SRC_DIR)/debug.h
208 parser.$(SUF): $(SRC_DIR)/types.h
209 parser.$(SUF): $(EMH)/em_mnem.h
210 parser.$(SUF): $(EMH)/em_spec.h
211 stack_chg.$(SUF): $(SRC_DIR)/stack_chg.c
212 $(CC) -c $(CFLAGS) $(SRC_DIR)/stack_chg.c
213 stack_chg.$(SUF): $(SRC_DIR)/pop_push.h
214 stack_chg.$(SUF): $(SRC_DIR)/global.h
215 stack_chg.$(SUF): $(SRC_DIR)/debug.h
216 stack_chg.$(SUF): $(SRC_DIR)/types.h
217 stack_chg.$(SUF): $(EMH)/em_mnem.h
218 stack_chg.$(SUF): $(EMH)/em_spec.h
219 locals.$(SUF): $(SRC_DIR)/locals.c
220 $(CC) -c $(CFLAGS) $(SRC_DIR)/locals.c
221 locals.$(SUF): $(SRC_DIR)/locals.h
222 locals.$(SUF): $(SRC_DIR)/alloc.h
223 locals.$(SUF): $(SRC_DIR)/aux.h
224 locals.$(SUF): $(SRC_DIR)/get.h
225 locals.$(SUF): $(SRC_DIR)/def.h
226 locals.$(SUF): $(SRC_DIR)/cset.h
227 locals.$(SUF): $(SRC_DIR)/lset.h
228 locals.$(SUF): $(SRC_DIR)/global.h
229 locals.$(SUF): $(SRC_DIR)/debug.h
230 locals.$(SUF): $(SRC_DIR)/types.h
231 locals.$(SUF): $(EMH)/em_mes.h
232 locals.$(SUF): $(EMH)/em_pseu.h
233 locals.$(SUF): $(EMH)/em_spec.h
234 locals.$(SUF): $(EMH)/em_mnem.h
235 init_glob.$(SUF): $(SRC_DIR)/init_glob.c
236 $(CC) -c $(CFLAGS) $(SRC_DIR)/init_glob.c
237 init_glob.$(SUF): $(SRC_DIR)/map.h
238 init_glob.$(SUF): $(SRC_DIR)/alloc.h
239 init_glob.$(SUF): $(SRC_DIR)/global.h
240 init_glob.$(SUF): $(SRC_DIR)/debug.h
241 init_glob.$(SUF): $(SRC_DIR)/types.h