modified to generate dispatch tables automatically
This commit is contained in:
		
							parent
							
								
									b578202876
								
							
						
					
					
						commit
						8e4718c760
					
				
					 1 changed files with 17 additions and 17 deletions
				
			
		|  | @ -1,9 +1,10 @@ | ||||||
| HOME=../.. | HOME=../.. | ||||||
| 
 | 
 | ||||||
| head:   doc.pr |  | ||||||
| 
 |  | ||||||
| NROFF=nroff |  | ||||||
| TBL=tbl | TBL=tbl | ||||||
|  | NROFF=nroff | ||||||
|  | SUF=pr | ||||||
|  | 
 | ||||||
|  | head:   ../em.$(SUF) | ||||||
| 
 | 
 | ||||||
| FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \
 | 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 \
 | 	types.nr descr.nr env.nr traps.nr mach.nr assem.nr \
 | ||||||
|  | @ -11,26 +12,25 @@ FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \ | ||||||
| 
 | 
 | ||||||
| IOP=$(HOME)/util/ass/ip_spec.t#			# to construct itables from | IOP=$(HOME)/util/ass/ip_spec.t#			# to construct itables from | ||||||
| 
 | 
 | ||||||
| doc.pr: $(FILES) itables em.i Makefile | ../em.$(SUF):	$(FILES) itables dispatdummy em.i Makefile | ||||||
| 	$(TBL) $(FILES) | $(NROFF) >doc.pr | 		$(TBL) $(FILES) | $(NROFF) > ../em.$(SUF) | ||||||
| 
 | 
 | ||||||
| distr:	$(FILES) itables em.i | app.codes.pr: app.codes.nr itables dispatdummy | ||||||
| 	tbl $(FILES) | nroff -Tlp >doc.pr |  | ||||||
| 
 |  | ||||||
| opr:	doc.pr |  | ||||||
| 	make pr | opr |  | ||||||
| 
 |  | ||||||
| pr: |  | ||||||
| 	@make "NROFF="$(NROFF) TBL=$(TBL) doc.pr >makepr.out 2>&1 |  | ||||||
| 	@cat doc.pr |  | ||||||
| 
 |  | ||||||
| app.codes.pr: app.codes.nr itables |  | ||||||
| 
 | 
 | ||||||
| itables: $(IOP) ip.awk | itables: $(IOP) ip.awk | ||||||
| 	awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables | 	awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables | ||||||
| 
 | 
 | ||||||
|  | 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 | ||||||
|  | 
 | ||||||
| .SUFFIXES : .pr .nr | .SUFFIXES : .pr .nr | ||||||
| .nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@ | .nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@ | ||||||
| 
 | 
 | ||||||
| clean: | clean: | ||||||
| 	rm -f *.pr itables *.out | 	rm -f *.pr itables *.out dispatdummy dispat? *.o mkdispatch | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue