1986-03-05 16:58:40 +00:00
|
|
|
HOME=../..
|
|
|
|
|
1986-02-04 17:37:41 +00:00
|
|
|
TBL=tbl
|
1987-03-31 07:51:34 +00:00
|
|
|
NROFF=nroff
|
|
|
|
SUF=pr
|
1988-05-04 10:14:48 +00:00
|
|
|
TARGET=-Tlp
|
1987-03-31 07:51:34 +00:00
|
|
|
|
|
|
|
head: ../em.$(SUF)
|
1986-03-05 16:58:40 +00:00
|
|
|
|
1986-02-04 17:37:41 +00:00
|
|
|
FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \
|
|
|
|
types.nr descr.nr env.nr traps.nr mach.nr assem.nr \
|
|
|
|
app.int.nr app.codes.nr app.exam.nr cont.nr
|
1986-03-05 16:58:40 +00:00
|
|
|
|
1988-03-15 11:37:00 +00:00
|
|
|
IOP=$(HOME)/etc/ip_spec.t# # to construct itables from
|
1984-06-29 11:29:28 +00:00
|
|
|
|
1987-03-31 07:51:34 +00:00
|
|
|
../em.$(SUF): $(FILES) itables dispatdummy em.i Makefile
|
1988-05-04 10:14:48 +00:00
|
|
|
$(TBL) $(FILES) | $(NROFF) $(TARGET) > ../em.$(SUF)
|
1985-01-31 22:38:00 +00:00
|
|
|
|
1987-03-31 07:51:34 +00:00
|
|
|
app.codes.pr: app.codes.nr itables dispatdummy
|
1986-03-05 16:58:40 +00:00
|
|
|
|
1986-02-04 17:37:41 +00:00
|
|
|
itables: $(IOP) ip.awk
|
1986-02-27 14:57:35 +00:00
|
|
|
awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables
|
1984-06-29 11:29:28 +00:00
|
|
|
|
1987-03-31 07:51:34 +00:00
|
|
|
dispatdummy: $(IOP) mkdispatch
|
|
|
|
mkdispatch < $(IOP) > dispatdummy
|
|
|
|
sed -f dispat1.sed < dispatdummy | $(TBL) > dispat1
|
|
|
|
sed -f dispat2.sed < dispatdummy | $(TBL) > dispat2
|
|
|
|
sed -f dispat3.sed < dispatdummy | $(TBL) > dispat3
|
|
|
|
|
|
|
|
mkdispatch: mkdispatch.c
|
|
|
|
cc -I$(HOME)/util/ass -I$(HOME)/h -o mkdispatch mkdispatch.c $(HOME)/lib/em_data.a
|
|
|
|
|
1984-06-29 11:29:28 +00:00
|
|
|
.SUFFIXES : .pr .nr
|
1986-02-04 17:37:41 +00:00
|
|
|
.nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@
|
1984-06-29 11:29:28 +00:00
|
|
|
|
1986-02-27 14:57:35 +00:00
|
|
|
clean:
|
1987-03-31 07:51:34 +00:00
|
|
|
rm -f *.pr itables *.out dispatdummy dispat? *.o mkdispatch
|