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
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, 2013, 2014 Gustaf Hendeby
18 AUTOMAKE_OPTIONS = subdir-objects
20 AM_CPPFLAGS = -Wall -Wsynth \
21 ${GSL_CFLAGS} ${ZLIB_CFLAGS} ${LIBPNG_CFLAGS} ${LIBJPEG_CFLAGS} ${FT2_CFLAGS} ${OPENSSL_INCLUDES} -I${top_srcdir}/tools/include
22 AM_LDFLAGS = -lz -lm -lc ${OPENSSL_LDFLAGS}
23 LIBS = ${LIBICONV} ${GSL_LIBS} ${ZLIB_LIBS} ${LIBPNG_LIBS} ${LIBJPEG_LIBS} ${FT2_LIBS} ${FONTCONFIG_LIBS} ${OPENSSL_LIBS}
24 AM_LFLAGS = -olex.yy.c -d
26 CLEANFILES = shapesparser.output SHAPES-VERSION-FILE
27 shapes_LDADD = version.o
30 SHAPES-VERSION-FILE : FORCE
31 @${srcdir}/SHAPES-VERSION-GEN ${top_srcdir}
32 -include SHAPES-VERSION-FILE
35 dist_noinst_SCRIPTS = SHAPES-VERSION-GEN
37 dist-hook : shapes${EXEEXT} SHAPES-VERSION-FILE
38 @${srcdir}/SHAPES-VERSION-GEN ${top_srcdir} && cp SHAPES-VERSION-FILE ${distdir}/version
40 BUILT_SOURCES = shapesparser.hh
42 noinst_HEADERS = afmscanner.h angleselect.h annotations.h \
43 astclass.h astexpr.h astexprs.h astflow.h \
44 astfun.h ast.h astinsertion.h \
45 astvalues.h astvar.h shapesparser.hh \
46 basicsimplex.h bezier.h breakpoints.h characterencoding.h \
47 charconverters.h charptrless.h check.h \
48 classtree1.h classtree2.h classtreemacros.h classtypes.h \
49 concretecolors.h constructorrepresentation.h mathematicarepresentation.h \
50 consts.h exitcodes.h containertypes.h singlelistrange.h continuations.h debuglog.h \
51 dispatch_case.h dispatch_none.h dispatch_void.h \
52 dispatch_vtbl.h drawabletypes.h dynamicenvironment.h \
53 elementarycoords.h elementarylength.h elementarytypes.h \
54 quadratic_programs.h \
55 environment.h errorhandlers.h facettypes.h \
56 fontmetrics.h fonttypes.h \
57 functiontypes.h globals.h glyphlist.h hottypes.h identifier.h \
58 lighttypes.h methodid.h multipage.h namespacedirectory.h namespacescanner.h \
59 operatorside.h operatorside_none.h pagecontentstates.h pathtypes.h \
60 pdffunctiontypes.h pdfscanner.h pdfstructure.h pdfversion.h \
61 shadingtypes.h shapescore.h shapesscanner.h shapestypes.h \
62 shapesexceptions.h classexceptions.h warn.h \
63 shapesvalue.h methodbase.h methodbase_impl.h simplepdfi.h pdfimport.h \
64 simplepdfo.h sourcelocation.h specialunits.h statetypes.h \
65 strrefdup.h tagtypes.h texlabelmanager.h texscanner.h texttypes.h \
66 thunkimpl.h timetypes.h trianglefunctions.h upsamplers.h \
67 yyltype.h zbufinternals.h utf8tools.h rasterloaders.h main.h \
68 Shapes_Ast_decls.h Shapes_Computation_decls.h Shapes_Concrete_decls.h \
69 Shapes_Exceptions_decls.h Shapes_Lang_decls.h \
70 Shapes_Helpers_decls.h Shapes_Kernel_decls.h \
71 FontMetrics_decls.h SimplePDF_decls.h \
72 ../tools/include/autoonoff.h ../tools/include/isnan.h \
73 ../tools/include/physical.h ../tools/include/nullptr.h \
74 ../tools/include/ptrowner.h ../tools/include/refcount.h
76 shapes_SOURCES = shapesyylex.ll \
77 pdfstructure.cc pdfscanner.cc pdfyylex.ll simplepdfo.cc pdfversion.cc \
78 simplepdfi.cc pdfimport.cc \
79 identifier.cc consts.cc \
80 ../tools/source/autoonoff.cc \
81 ../tools/source/physical.cc \
87 facetnormals.cc facettypes.cc texttypes.cc \
88 pagecontentstates.cc \
89 elementarycoords.cc statetypes.cc pathtypes.cc elementarypath2D.cc \
90 elementarypath3D.cc bezier.cc upsamplers.cc \
91 quadratic_programs.cc solve_qp_dist_gen.cc \
92 pathslider2D.cc pathslider3D.cc drawabletypes.cc singlesidedpolygons.cc shadingtypes.cc \
93 functiontypes.cc pdffunctiontypes.cc \
94 lighttypes.cc containertypes.cc timetypes.cc hottypes.cc \
95 multipage.cc annotations.cc tagtypes.cc shapesvalue.cc \
96 shapesscanner.cc sourcelocation.cc shapesexceptions.cc classexceptions.cc strrefdup.cc \
97 shapesparser.yy environment.cc dynamicenvironment.cc registerclasses.cc \
98 shapescore.cc coreast.cc coreelem.cc coreconstruct.cc coreannotation.cc \
99 corepoint.cc corepath.cc coremisc.cc coredraw.cc corestate.cc coredecomp.cc \
100 angleselect.cc texlabelmanager.cc texscanner.cc texyylex.ll specialunits.cc trianglefunctions.cc basicsimplex.cc \
101 computeelementarypath.cc \
102 zbuftriangle.cc zbufline.cc zbufto2D.cc zbufinternals.cc zsorterto2D.cc \
103 ast.cc astfun.cc astvalues.cc astvar.cc astexpr.cc \
104 astexpr_unary.cc astexpr_arithmetic.cc astexpr_relational.cc \
105 coreoperators.cc astflow.cc \
106 classtypes.cc astclass.cc errorhandlers.cc constructorrepresentation.cc mathematicarepresentation.cc charconverters.cc \
107 fontmetrics.cc afmscanner.cc afmyylex.ll fonttypes.cc corefont.cc glyphlist.cc \
108 namespacedirectory.cc namespacescanner.cc namespaceyylex.ll \
109 characterencoding.cc import_png.cc import_jpeg.cc \
110 debuglog.cc eval_non_interactive.cc eval_interactive.cc main.cc
112 dist_noinst_DATA = version.cc
114 shapesparser.hh : shapesparser.cc shapesparser.yy
116 classtree2.h : classtree1.h
117 cat $< | sed -e 's/CLASSTREE1/CLASSTREE2/' > $@
119 version.o : version.cc SHAPES-VERSION-FILE
120 ${COMPILE} -D'VERSION_DATE="${VERSION_DATE}"' \
121 -D'VERSION_NUMBER="${VERSION_NUMBER}"' -c $< -o $@
124 ${COMPILE} -D'HTML_DIRDEF="${htmldir}"' -D'RESOURCES_DIRDEF="${pkgdatadir}"' -c $< -o $@