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 | AllocatorComponents \ |
---|
20 | AllocatedObject \ |
---|
21 | IntExtFragmentation \ |
---|
22 | MemoryFragmentation \ |
---|
23 | ContigFragmentation \ |
---|
24 | NonContigFragmentation \ |
---|
25 | ProgramFalseSharing \ |
---|
26 | AllocInducedActiveFalseSharing \ |
---|
27 | AllocInducedPassiveFalseSharing \ |
---|
28 | SingleHeap \ |
---|
29 | SharedHeaps \ |
---|
30 | PerThreadHeap \ |
---|
31 | MultipleHeapsStorage \ |
---|
32 | UserKernelHeaps \ |
---|
33 | MultipleHeapsOwnership \ |
---|
34 | MultipleHeapsNoOwnership \ |
---|
35 | ObjectHeaders \ |
---|
36 | Container \ |
---|
37 | ContainerNoOwnershipFreelist \ |
---|
38 | ContainerOwnershipFreelist \ |
---|
39 | ContainerFalseSharing1 \ |
---|
40 | ContainerFalseSharing2 \ |
---|
41 | ContainerNoOwnership \ |
---|
42 | ContainerOwnership \ |
---|
43 | SuperContainers \ |
---|
44 | FreeListAmongContainers \ |
---|
45 | FreeListWithinContainers \ |
---|
46 | PrivatePublicHeaps \ |
---|
47 | AllocDS1 \ |
---|
48 | AllocDS2 \ |
---|
49 | llheap \ |
---|
50 | Alignment1 \ |
---|
51 | Alignment2 \ |
---|
52 | Alignment2Impl \ |
---|
53 | FakeHeader \ |
---|
54 | Header \ |
---|
55 | } |
---|
56 | |
---|
57 | PICTURES = ${addsuffix .pstex, \ |
---|
58 | AddressSpace \ |
---|
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: # |
---|