Example: Changed glyph-outline.shape for use with FontConfig.
[shapes.git] / source / Makefile.am
blobc5e64e89aea187f6d516aa9377042cb69d219546
1 # This file is part of Shapes.
3 # Shapes is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # any later version.
8 # Shapes is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with Shapes.  If not, see <http://www.gnu.org/licenses/>.
16 # Copyright 2008, 2010 Gustaf Hendeby
18 AM_CPPFLAGS = -Wall -Wsynth \
19               ${GSL_CFLAGS} ${ZLIB_CFLAGS} ${LIBPNG_CFLAGS} ${LIBJPEG_CFLAGS} ${FT2_CFLAGS} -I${top_srcdir}/tools/include
20 AM_LDFLAGS = -lz -lm -lc
21 LIBS = ${LIBICONV} ${GSL_LIBS} ${ZLIB_LIBS} ${LIBPNG_LIBS} ${LIBJPEG_LIBS} ${FT2_LIBS} ${FONTCONFIG_LIBS}
22 AM_LFLAGS = -olex.yy.c -d
23 AM_YFLAGS = -dvt
24 CLEANFILES = shapesparser.output SHAPES-VERSION-FILE
25 shapes_LDADD = version.o
27 FORCE :
28 SHAPES-VERSION-FILE : FORCE
29         @${srcdir}/SHAPES-VERSION-GEN ${top_srcdir}
30 -include SHAPES-VERSION-FILE
32 bin_PROGRAMS = shapes
33 dist_noinst_SCRIPTS = SHAPES-VERSION-GEN
35 dist-hook : shapes${EXEEXT} SHAPES-VERSION-FILE
36         @${srcdir}/SHAPES-VERSION-GEN ${top_srcdir} && cp SHAPES-VERSION-FILE ${distdir}/version
38 BUILT_SOURCES = shapesparser.h
40 noinst_HEADERS = afmscanner.h angleselect.h annotations.h \
41                  astclass.h astexpr.h astexprs.h astflow.h \
42                  astfun.h ast.h astinsertion.h \
43                  astvalues.h astvar.h shapesparser.h \
44                  basicsimplex.h bezier.h breakpoints.h characterencoding.h \
45                  charconverters.h charptrless.h check.h \
46                  classtree1.h classtree2.h classtreemacros.h classtypes.h \
47                  concretecolors.h constructorrepresentation.h mathematicarepresentation.h \
48                  consts.h exitcodes.h containertypes.h singlelistrange.h continuations.h debuglog.h \
49                  dispatch_case.h dispatch_none.h dispatch_void.h \
50                  dispatch_vtbl.h drawabletypes.h dynamicenvironment.h \
51                  elementarycoords.h elementarylength.h elementarytypes.h \
52                  quadratic_programs.h \
53                  environment.h errorhandlers.h facettypes.h \
54                  fontmetrics.h fonttypes.h \
55                  functiontypes.h globals.h glyphlist.h hottypes.h \
56                  lighttypes.h methodid.h multipage.h operatorside.h \
57                  operatorside_none.h pagecontentstates.h pathtypes.h \
58                  pdffunctiontypes.h pdfscanner.h pdfstructure.h pdfversion.h \
59                  shadingtypes.h shapescore.h shapesscanner.h shapestypes.h shapesexceptions.h classexceptions.h \
60                  shapesvalue.h methodbase.h methodbase_impl.h simplepdfi.h pdfimport.h \
61                  simplepdfo.h sourcelocation.h specialunits.h statetypes.h \
62                  strrefdup.h tagtypes.h texlabelmanager.h texscanner.h texttypes.h \
63                  thunkimpl.h timetypes.h trianglefunctions.h upsamplers.h \
64                  yyltype.h zbufinternals.h utf8tools.h rasterloaders.h main.h \
65                  Shapes_Ast_decls.h Shapes_Computation_decls.h Shapes_Concrete_decls.h \
66                  Shapes_Exceptions_decls.h Shapes_Lang_decls.h \
67                  Shapes_Helpers_decls.h Shapes_Kernel_decls.h \
68                  FontMetrics_decls.h SimplePDF_decls.h \
69                  ../tools/include/autoonoff.h ../tools/include/isnan.h \
70                  ../tools/include/physical.h ../tools/include/nullptr.h \
71                  ../tools/include/ptrowner.h ../tools/include/refcount.h
73 ### Note that the order here matters for the initialization of global variables.
74 ### This is why globals.cc should be listed early on.
75 shapes_SOURCES = shapesyylex.ll \
76                 pdfstructure.cc pdfscanner.cc pdfyylex.ll simplepdfo.cc pdfversion.cc \
77                 simplepdfi.cc pdfimport.cc consts.cc \
78                 ../tools/source/autoonoff.cc \
79                 ../tools/source/physical.cc \
80                 globals.cc \
81                 continuations.cc \
82                 gettypeid.cc \
83                 elementarytypes.cc \
84                 concretecolors.cc \
85                 facetnormals.cc facettypes.cc texttypes.cc \
86                 pagecontentstates.cc \
87                 elementarycoords.cc statetypes.cc pathtypes.cc elementarypath2D.cc \
88                 elementarypath3D.cc bezier.cc upsamplers.cc \
89                 quadratic_programs.cc solve_qp_dist_gen.cc \
90                 pathslider2D.cc pathslider3D.cc drawabletypes.cc singlesidedpolygons.cc shadingtypes.cc \
91                 functiontypes.cc pdffunctiontypes.cc \
92                 lighttypes.cc containertypes.cc timetypes.cc hottypes.cc \
93                 multipage.cc annotations.cc tagtypes.cc shapesvalue.cc \
94                 shapesscanner.cc sourcelocation.cc shapesexceptions.cc classexceptions.cc strrefdup.cc \
95                 shapesparser.yy environment.cc dynamicenvironment.cc registerclasses.cc \
96                 shapescore.cc coreast.cc coreelem.cc coreconstruct.cc coreannotation.cc \
97                 corepoint.cc corepath.cc coremisc.cc coredraw.cc corestate.cc coredecomp.cc \
98                 angleselect.cc texlabelmanager.cc texscanner.cc texyylex.ll specialunits.cc trianglefunctions.cc basicsimplex.cc \
99                 computeelementarypath.cc \
100                 zbuftriangle.cc zbufline.cc zbufto2D.cc zbufinternals.cc zsorterto2D.cc \
101                 ast.cc astfun.cc astvalues.cc astvar.cc astexpr.cc \
102                 astexpr_unary.cc astexpr_arithmetic.cc astexpr_relational.cc \
103                 coreoperators.cc astflow.cc \
104                 classtypes.cc astclass.cc errorhandlers.cc constructorrepresentation.cc mathematicarepresentation.cc charconverters.cc \
105                 fontmetrics.cc afmscanner.cc afmyylex.ll fonttypes.cc corefont.cc glyphlist.cc \
106                 characterencoding.cc import_png.cc import_jpeg.cc \
107                 debuglog.cc eval_non_interactive.cc eval_interactive.cc main.cc
109 dist_noinst_DATA = version.cc
111 shapesparser.h : shapesparser.cc shapesparser.yy
113 classtree2.h : classtree1.h
114         cat $< | sed -e 's/CLASSTREE1/CLASSTREE2/' > $@
116 version.o : version.cc SHAPES-VERSION-FILE
117         ${COMPILE} -D'VERSION_DATE="${VERSION_DATE}"' \
118                    -D'VERSION_NUMBER="${VERSION_NUMBER}"' -c $< -o $@
120 consts.o : consts.cc
121         ${COMPILE} -D'HTML_DIRDEF="${htmldir}"' -D'RESOURCES_DIRDEF="${pkgdatadir}"' -c $< -o $@