Index: doc/papers/llheap/Makefile
===================================================================
--- doc/papers/llheap/Makefile	(revision d69752711fac0e68cc2a2c774b76b636a3cff37c)
+++ doc/papers/llheap/Makefile	(revision d69752711fac0e68cc2a2c774b76b636a3cff37c)
@@ -0,0 +1,126 @@
+## Define the configuration variables.
+
+Build = build
+Figures = figures
+TeXLIB = .:../../LaTeXmacros:${Build}:
+LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
+BibTeX = BIBINPUTS=../../bibliography: && export BIBINPUTS && bibtex
+
+MAKEFLAGS = --no-print-directory # --silent
+VPATH = ${Build} ${Figures}
+
+## Define the text source files.
+
+SOURCES = ${addsuffix .tex, \
+Paper \
+}
+
+FIGURES = ${addsuffix .tex, \
+AddressSpace \
+AllocatorComponents \
+AllocatedObject \
+IntExtFragmentation \
+MemoryFragmentation \
+ContigFragmentation \
+NonContigFragmentation \
+ProgramFalseSharing \
+AllocInducedActiveFalseSharing \
+AllocInducedPassiveFalseSharing \
+SingleHeap \
+SharedHeaps \
+PerThreadHeap \
+MultipleHeapsStorage \
+UserKernelHeaps \
+MultipleHeapsOwnership \
+MultipleHeapsNoOwnership \
+ObjectHeaders \
+Container \
+ContainerNoOwnershipFreelist \
+ContainerOwnershipFreelist \
+ContainerFalseSharing1 \
+ContainerFalseSharing2 \
+ContainerNoOwnership \
+ContainerOwnership \
+SuperContainers \
+FreeListAmongContainers \
+FreeListWithinContainers \
+PrivatePublicHeaps \
+AllocDS1 \
+AllocDS2 \
+llheap \
+Alignment1 \
+Alignment2 \
+Alignment2Impl \
+FakeHeader \
+Header \
+}
+
+PICTURES = ${addsuffix .pstex, \
+MultipleHeapsOwnershipStorage \
+PrivatePublicHeaps \
+RemoteFreeList \
+}
+
+PROGRAMS = ${addsuffix .tex, \
+}
+
+GRAPHS = ${addsuffix .tex, \
+}
+
+## Define the documents that need to be made.
+
+DOCUMENT = Paper.pdf
+BASE = ${basename ${DOCUMENT}}
+
+# Directives #
+
+.PHONY : all clean					# not file names
+
+all : ${DOCUMENT}
+
+clean :
+	@rm -frv ${DOCUMENT} ${BASE}.ps WileyNJD-AMA.bst ${BASE}.out.ps ${Build}
+
+# File Dependencies #
+
+${DOCUMENT} : ${BASE}.ps
+	ps2pdf $<
+
+${BASE}.ps : ${BASE}.dvi
+	dvips ${Build}/$< -o $@
+
+${BASE}.dvi : Makefile ${BASE}.out.ps WileyNJD-AMA.bst ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
+		local.bib ../../bibliography/pl.bib | ${Build}
+	# Must have *.aux file containing citations for bibtex
+	if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
+	-${BibTeX} ${Build}/${basename $@}
+	# Some citations reference others so run again to resolve these citations
+	${LaTeX} ${basename $@}.tex
+	-${BibTeX} ${Build}/${basename $@}
+	# Run again to finish citations
+	${LaTeX} ${basename $@}.tex
+
+## Define the default recipes.
+
+${Build} :
+	mkdir -p ${Build}
+
+${BASE}.out.ps : | ${Build}
+	ln -fs ${Build}/Paper.out.ps .
+
+WileyNJD-AMA.bst :
+	ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
+
+%.tex : %.fig | ${Build}
+	fig2dev -L eepic $< > ${Build}/$@
+
+%.ps : %.fig | ${Build}
+	fig2dev -L ps $< > ${Build}/$@
+
+%.pstex : %.fig | ${Build}
+	fig2dev -L pstex $< > ${Build}/$@
+	fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
+
+# Local Variables: #
+# compile-command: "make" #
+# End: #
