Makefile 1002 B

123456789101112131415161718192021222324252627282930313233343536
  1. HOME=../..
  2. TBL=tbl
  3. NROFF=nroff
  4. SUF=pr
  5. head: ../em.$(SUF)
  6. FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \
  7. types.nr descr.nr env.nr traps.nr mach.nr assem.nr \
  8. app.int.nr app.codes.nr app.exam.nr cont.nr
  9. IOP=$(HOME)/util/ass/ip_spec.t# # to construct itables from
  10. ../em.$(SUF): $(FILES) itables dispatdummy em.i Makefile
  11. $(TBL) $(FILES) | $(NROFF) > ../em.$(SUF)
  12. app.codes.pr: app.codes.nr itables dispatdummy
  13. itables: $(IOP) ip.awk
  14. awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables
  15. dispatdummy: $(IOP) mkdispatch
  16. mkdispatch < $(IOP) > dispatdummy
  17. sed -f dispat1.sed < dispatdummy | $(TBL) > dispat1
  18. sed -f dispat2.sed < dispatdummy | $(TBL) > dispat2
  19. sed -f dispat3.sed < dispatdummy | $(TBL) > dispat3
  20. mkdispatch: mkdispatch.c
  21. cc -I$(HOME)/util/ass -I$(HOME)/h -o mkdispatch mkdispatch.c $(HOME)/lib/em_data.a
  22. .SUFFIXES : .pr .nr
  23. .nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@
  24. clean:
  25. rm -f *.pr itables *.out dispatdummy dispat? *.o mkdispatch