[d697527] | 1 | ## Define the configuration variables.
|
---|
| 2 |
|
---|
| 3 | Build = build
|
---|
| 4 | Figures = figures
|
---|
| 5 | TeXLIB = .:../../LaTeXmacros:${Build}:
|
---|
| 6 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
|
---|
| 7 | BibTeX = BIBINPUTS=../../bibliography: && export BIBINPUTS && bibtex
|
---|
| 8 |
|
---|
| 9 | MAKEFLAGS = --no-print-directory # --silent
|
---|
| 10 | VPATH = ${Build} ${Figures}
|
---|
| 11 |
|
---|
| 12 | ## Define the text source files.
|
---|
| 13 |
|
---|
| 14 | SOURCES = ${addsuffix .tex, \
|
---|
| 15 | Paper \
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | FIGURES = ${addsuffix .tex, \
|
---|
| 19 | AddressSpace \
|
---|
| 20 | AllocatorComponents \
|
---|
| 21 | AllocatedObject \
|
---|
| 22 | IntExtFragmentation \
|
---|
| 23 | MemoryFragmentation \
|
---|
| 24 | ContigFragmentation \
|
---|
| 25 | NonContigFragmentation \
|
---|
| 26 | ProgramFalseSharing \
|
---|
| 27 | AllocInducedActiveFalseSharing \
|
---|
| 28 | AllocInducedPassiveFalseSharing \
|
---|
| 29 | SingleHeap \
|
---|
| 30 | SharedHeaps \
|
---|
| 31 | PerThreadHeap \
|
---|
| 32 | MultipleHeapsStorage \
|
---|
| 33 | UserKernelHeaps \
|
---|
| 34 | MultipleHeapsOwnership \
|
---|
| 35 | MultipleHeapsNoOwnership \
|
---|
| 36 | ObjectHeaders \
|
---|
| 37 | Container \
|
---|
| 38 | ContainerNoOwnershipFreelist \
|
---|
| 39 | ContainerOwnershipFreelist \
|
---|
| 40 | ContainerFalseSharing1 \
|
---|
| 41 | ContainerFalseSharing2 \
|
---|
| 42 | ContainerNoOwnership \
|
---|
| 43 | ContainerOwnership \
|
---|
| 44 | SuperContainers \
|
---|
| 45 | FreeListAmongContainers \
|
---|
| 46 | FreeListWithinContainers \
|
---|
| 47 | PrivatePublicHeaps \
|
---|
| 48 | AllocDS1 \
|
---|
| 49 | AllocDS2 \
|
---|
| 50 | llheap \
|
---|
| 51 | Alignment1 \
|
---|
| 52 | Alignment2 \
|
---|
| 53 | Alignment2Impl \
|
---|
| 54 | FakeHeader \
|
---|
| 55 | Header \
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | PICTURES = ${addsuffix .pstex, \
|
---|
| 59 | MultipleHeapsOwnershipStorage \
|
---|
| 60 | PrivatePublicHeaps \
|
---|
| 61 | RemoteFreeList \
|
---|
| 62 | }
|
---|
| 63 |
|
---|
| 64 | PROGRAMS = ${addsuffix .tex, \
|
---|
| 65 | }
|
---|
| 66 |
|
---|
| 67 | GRAPHS = ${addsuffix .tex, \
|
---|
| 68 | }
|
---|
| 69 |
|
---|
| 70 | ## Define the documents that need to be made.
|
---|
| 71 |
|
---|
| 72 | DOCUMENT = Paper.pdf
|
---|
| 73 | BASE = ${basename ${DOCUMENT}}
|
---|
| 74 |
|
---|
| 75 | # Directives #
|
---|
| 76 |
|
---|
| 77 | .PHONY : all clean # not file names
|
---|
| 78 |
|
---|
| 79 | all : ${DOCUMENT}
|
---|
| 80 |
|
---|
| 81 | clean :
|
---|
| 82 | @rm -frv ${DOCUMENT} ${BASE}.ps WileyNJD-AMA.bst ${BASE}.out.ps ${Build}
|
---|
| 83 |
|
---|
| 84 | # File Dependencies #
|
---|
| 85 |
|
---|
| 86 | ${DOCUMENT} : ${BASE}.ps
|
---|
| 87 | ps2pdf $<
|
---|
| 88 |
|
---|
| 89 | ${BASE}.ps : ${BASE}.dvi
|
---|
| 90 | dvips ${Build}/$< -o $@
|
---|
| 91 |
|
---|
| 92 | ${BASE}.dvi : Makefile ${BASE}.out.ps WileyNJD-AMA.bst ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
|
---|
| 93 | local.bib ../../bibliography/pl.bib | ${Build}
|
---|
| 94 | # Must have *.aux file containing citations for bibtex
|
---|
| 95 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
| 96 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 97 | # Some citations reference others so run again to resolve these citations
|
---|
| 98 | ${LaTeX} ${basename $@}.tex
|
---|
| 99 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 100 | # Run again to finish citations
|
---|
| 101 | ${LaTeX} ${basename $@}.tex
|
---|
| 102 |
|
---|
| 103 | ## Define the default recipes.
|
---|
| 104 |
|
---|
| 105 | ${Build} :
|
---|
| 106 | mkdir -p ${Build}
|
---|
| 107 |
|
---|
| 108 | ${BASE}.out.ps : | ${Build}
|
---|
| 109 | ln -fs ${Build}/Paper.out.ps .
|
---|
| 110 |
|
---|
| 111 | WileyNJD-AMA.bst :
|
---|
| 112 | ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
|
---|
| 113 |
|
---|
| 114 | %.tex : %.fig | ${Build}
|
---|
| 115 | fig2dev -L eepic $< > ${Build}/$@
|
---|
| 116 |
|
---|
| 117 | %.ps : %.fig | ${Build}
|
---|
| 118 | fig2dev -L ps $< > ${Build}/$@
|
---|
| 119 |
|
---|
| 120 | %.pstex : %.fig | ${Build}
|
---|
| 121 | fig2dev -L pstex $< > ${Build}/$@
|
---|
| 122 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
| 123 |
|
---|
| 124 | # Local Variables: #
|
---|
| 125 | # compile-command: "make" #
|
---|
| 126 | # End: #
|
---|