Skip to content
Snippets Groups Projects
Commit e96d6441 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Merged Makefile from report with root level.

parent feb72343
No related branches found
No related tags found
No related merge requests found
BUILD=build/ BUILD=build/
CLEAN=*.pyc src/*.pyc src/optimize/*.pycrm -f parser.out parsetab.py CLEAN=*.pyc src/*.pyc src/optimize/*.pyc parser.out parsetab.py
# Fix pdflatex search path # Fix pdflatex search path
TGT_DIR := TGT_DIR := report
TGT_DOC :=
# Default target is 'all'. The 'build' target is defined here so that all # Default target is 'all'. The 'build' target is defined here so that all
# sub rules.mk can add prerequisites to the 'build' target. # sub rules.mk can add prerequisites to the 'build' target.
all: all:
build: build:
d := tests/ d := report/
include base.mk include base.mk
include $(d)/rules.mk include $(d)/rules.mk
.PHONY: doc d := tests/
include base.mk
include $(d)/rules.mk
all: doc build all: report
clean: clean:
rm -rf $(CLEAN) rm -rf $(CLEAN)
......
RM=rm -rf
all: report.pdf
%.pdf: %.tex
pdflatex $^
pdflatex $^
clean:
$(RM) *.pdf *.aux *.log *.out *.toc *.snm *.nav
\documentclass[10pt,a4paper]{article} \documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc} \usepackage[latin1]{inputenc}
\usepackage{amsmath} \usepackage{amsmath,amsfonts,amssymb,booktabs,graphicx,listings,subfigure}
\usepackage{amsfonts} \usepackage{float,hyperref}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{subfigure}
\usepackage{float}
\usepackage{hyperref}
\title{Peephole Optimizer} \title{Peephole Optimizer}
\author{Jayke Meijer (6049885), Richard Torenvliet (6138861), Tadde\"us Kroes \author{Jayke Meijer (6049885), Richard Torenvliet (6138861), Tadde\"us Kroes
(6054129)} (6054129)}
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents
\pagebreak \pagebreak
\section{Introduction} \section{Introduction}
...@@ -81,7 +76,7 @@ These are optimizations that simply look for a certain statement or pattern of ...@@ -81,7 +76,7 @@ These are optimizations that simply look for a certain statement or pattern of
statements, and optimize these. For example, statements, and optimize these. For example,
\begin{verbatim} \begin{verbatim}
mov $regA,$regB mov $regA,$regB
instr $regA, $regA,... instr $regA, $regA,...
\end{verbatim} \end{verbatim}
can be optimized into can be optimized into
\begin{verbatim} \begin{verbatim}
...@@ -184,7 +179,7 @@ more efficiently by shifting left a number of times. An example: ...@@ -184,7 +179,7 @@ more efficiently by shifting left a number of times. An example:
optimization for any multiplication with a power of two. optimization for any multiplication with a power of two.
There are a number of such cases, all of which are once again stated in There are a number of such cases, all of which are once again stated in
appendix \ref{opt}. appendix \ref{opt}.
\section{Implementation} \section{Implementation}
...@@ -372,4 +367,5 @@ mult $regA, $regB, 0 -> li $regA, 0 ...@@ -372,4 +367,5 @@ mult $regA, $regB, 0 -> li $regA, 0
mult $regA, $regB, 2 -> sll $regA, $regB, 1 mult $regA, $regB, 2 -> sll $regA, $regB, 1
\end{verbatim} \end{verbatim}
\end{document} \end{document}
CLEAN := $(CLEAN) report/*.pdf report/*.aux report/*.log \
report/*.out report/*.toc report/*.snm report/*.nav
report: report/report.pdf
report/%.pdf: report/%.tex
cd report; \
pdflatex report.tex; \
pdflatex report.tex
TESTS=$(wildcard tests/test_*.py) TESTS=$(wildcard tests/test_*.py)
COVERAGE_OUTPUT_DIR := coverage COVERAGE_OUTPUT_DIR := coverage
OMIT := /usr/share/pyshared/*,test*,*__init__.py OMIT := /usr/share/pyshared/*,test*,*__init__.py
CLEAN := $(CLEAN) tests/*.pyc
ifeq ($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage) ifeq ($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
COVERAGE=/usr/bin/python-coverage COVERAGE=/usr/bin/python-coverage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment