OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gen_or1k_isa/] [Makefile] - Rev 1778

Go to most recent revision | Compare with Previous | Blame | View Log


all: generate_isa generate_sum

gen_or1k_isa: sources/gen_or1k_isa.c sources/or32.c sources/or1k_isadesc.h sources/opcode/or32.h Makefile
        gcc -O2 -o gen_or1k_isa sources/or32.c sources/gen_or1k_isa.c

chop_html: sources/chop_html.c Makefile
        gcc -O2 -o chop_html sources/chop_html.c

generate_ref: gen_or1k_isa 
        ./gen_or1k_isa -r 2 > tmp/body.tex
        latex tmp/body.tex; mv body.* tmp; dvips -o result/or1k_isa_ref.ps tmp/body.dvi
        rm -f texput.log
        pdflatex tmp/body.tex; mv body.* tmp; mv tmp/body.pdf result/or1k_isa_ref.pdf

generate_isa: gen_or1k_isa chop_html sources/header.tex
        ./gen_or1k_isa > tmp/body.tex
        cat sources/header.tex tmp/body.tex > tmp/isa.tex
        latex tmp/isa.tex; mv isa.* tmp; dvips -o result/or1k_isa.ps tmp/isa.dvi
        rm -f texput.log
        ./ps2pdf result/or1k_isa.ps result/or1k_isa.pdf
        pslatex tmp/isa.tex; mv isa.* tmp; dvips -o result/or1k_isa_distiller.ps tmp/isa.dvi
        rm -f texput.log
        cp sources/main1.html tmp/main1.html
        ./l2h tmp/isa.tex
        ./chop_html
        cat tmp/main1.html tmp/main2.html > result/or1k_isa.html
        cp tmp/hf.html result/hf.html
        cp sources/filelist.xml result/filelist.xml

generate_sum: gen_or1k_isa chop_html sources/header.tex
        ./gen_or1k_isa -s 2 > tmp/body.tex
        cat sources/header.tex tmp/body.tex > tmp/sum.tex
        latex tmp/sum.tex; mv sum.* tmp; dvips -o result/or1k_sum.ps tmp/sum.dvi
        rm -f texput.log
        ./ps2pdf result/or1k_sum.ps result/or1k_sum.pdf
        pslatex tmp/sum.tex; mv sum.* tmp; dvips -o result/or1k_sum_distiller.ps tmp/sum.dvi
        rm -f texput.log
        cp sources/main1.html tmp/main1.html
        ./l2h tmp/sum.tex
        cp tmp/sum.html result/or1k_sum.html

distclean: clean
        rm -f gen_or1k_isa
        rm -f result/*

clean:
        rm -f tmp/*

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.