combine .cvsignore files into .gitignore file
[sppoc.git] / Omega / omega / omega_lib / doc / Makefile
blobcacefeedca7ec91feeb30620ea0d4bbdea2646bb
2 INTERFACESRC = interface.tex tex_stuff.tex compile.tex\
3 concepts.tex data-structures.tex \
4 ex-1.tex ex-2.tex ex-3.tex ex-4.tex ex-5.tex \
5 construction.tex querying.tex \
6 working_with.tex \
7 core.tex \
8 simplify.tex \
9 misc.tex \
10 reference.tex\
11 uniform.tex
13 itright :
14 make interface.dvi; make interface.dvi; make interface.dvi; make interface.dvi
16 interface.html: ${INTERFACESRC}
17 latex2html -address omega@cs.umd.edu -auto_navigation -t "The Omega Library Interface Guide" -reuse -show_section_numbers -split 2 interface.tex
19 fast: interface.dvi
21 interface.ps.Z : interface.ps
22 /bin/rm -f interface.ps.Z
23 compress interface.ps
25 interface.ps : interface.dvi
26 dvips -o interface.ps interface.dvi
28 interface.dvi : ${INTERFACESRC} interface.bbl interface.uptodate
29 latex interface.tex
30 @if egrep 'LaTeX Warning: Label\(s\) may have changed\. Rerun to get cross-references right' interface.log > /dev/null ; then sleep 1 ; touch interface.uptodate ; fi
31 @if egrep 'LaTeX Warning: Citation .* on page [0-9]+ undefined' interface.log > /dev/null ; then sleep 1 ; touch interface.cites.uptodate ; fi
33 interface.bbl : para.bib interface.cites.uptodate
34 touch interface.aux ; bibtex interface
36 tech-title: tech-title.ps
38 tech-title.ps: tech-title.dvi
39 dvips tech-title
41 tech-title.dvi: tech-title.tex tech-abstract.tex
42 latex tech-title
46 para.bib :
47 ln -s /fs/savoir2/p/bib/para.bib .
50 # make these if they don't exist yet
52 interface.uptodate :
53 touch interface.uptodate
55 interface.cites.uptodate :
56 touch interface.cites.uptodate
60 EXAMPLE = library_example.c
62 examples: ex-1.tex ex-2.tex ex-3.tex ex-4.tex ex-5.tex
64 ex-1.tex : ${EXAMPLE}
65 sed -n -e '/BEGIN PART 1/,/END PART 1/p' ${EXAMPLE} | sed -e '1s/.*/\\begin{verbatim}/' -e '$$s/.*/\\end{verbatim}/' > ex-1.tex
67 ex-2.tex : ${EXAMPLE}
68 sed -n -e '/BEGIN PART 2/,/END PART 2/p' ${EXAMPLE} | sed -e '1s/.*/\\begin{verbatim}/' -e '$$s/.*/\\end{verbatim}/' > ex-2.tex
70 ex-3.tex : ${EXAMPLE}
71 sed -n -e '/BEGIN PART 3/,/END PART 3/p' ${EXAMPLE} | sed -e '1s/.*/\\begin{verbatim}/' -e '$$s/.*/\\end{verbatim}/' > ex-3.tex
73 ex-4.tex : ${EXAMPLE}
74 sed -n -e '/BEGIN PART 4/,/END PART 4/p' ${EXAMPLE} | sed -e '1s/.*/\\begin{verbatim}/' -e '$$s/.*/\\end{verbatim}/' > ex-4.tex
76 ex-5.tex : ${EXAMPLE}
77 sed -n -e '/BEGIN PART 5/,/END PART 5/p' ${EXAMPLE} | sed -e '1s/.*/\\begin{verbatim}/' -e '$$s/.*/\\end{verbatim}/' > ex-5.tex
79 # test example code
81 CC = g++263
82 PURIFY =
83 # PURIFY = purify -collector=/usr/imports/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.2/ld
85 PT-example.o : PT-example.c ../include/omega/PT-omega.c
86 ${CC} -g -w -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c PT-example.c
88 example.o : example.c
89 ${CC} -g -Wall -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c example.c
91 example : example.o PT-example.o ../obj/libomega.a ConstString.o Exit.o Link.o
92 ${PURIFY} ${CC} -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL example.o PT-example.o -L../obj ConstString.o Exit.o Link.o -lomega -o example
94 library_example.o : library_example.c
95 ${CC} -Wall -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c library_example.c
97 library_example : library_example.o PT-example.o ../obj/libomega.a ConstString.o Exit.o Link.o
98 ${PURIFY} ${CC} -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL library_example.o PT-example.o -L../obj ConstString.o Exit.o Link.o -lomega -o library_example
100 bad.o : bad.c
101 ${CC} -Wall -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c bad.c
103 bad : bad.o PT-example.o ../obj/libomega.a ConstString.o Exit.o Link.o
104 ${PURIFY} ${CC} -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL bad.o PT-example.o -L../obj ConstString.o Exit.o Link.o -lomega -o bad
106 Link.o: ../../basic/src/Link.c
107 ${CC} -Wall -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c ../../basic/src/Link.c
109 ConstString.o: ../../basic/src/ConstString.c
110 ${CC} -Wall -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c ../../basic/src/ConstString.c
112 Exit.o: ../../basic/src/Exit.c
113 ${CC} -Wall -g -I../include -I../../basic/include -fno-implicit-templates -DDONT_INCLUDE_TEMPLATE_CODE -DDONT_DEFINE_BOOL -c ../../basic/src/Exit.c