Makefile 1019 B

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