Update procedures
[shapes.git] / source / Makefile.am
blobb5ef3c2462fc9afce06775ed4294d5b1457e3ffd
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, 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
25 AM_YFLAGS = -dvt
26 CLEANFILES = shapesparser.output SHAPES-VERSION-FILE
27 shapes_LDADD = version.o
29 FORCE :
30 SHAPES-VERSION-FILE : FORCE
31         @${srcdir}/SHAPES-VERSION-GEN ${top_srcdir}
32 -include SHAPES-VERSION-FILE
34 bin_PROGRAMS = shapes
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 astfun_impl.h coreconstruct_impl.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 graphtypes.h graphtypes_impl.h \
51                  singlelistrange.h continuations.h debuglog.h \
52                  dispatch_case.h dispatch_none.h dispatch_void.h \
53                  dispatch_vtbl.h drawabletypes.h dynamicenvironment.h \
54                  elementarycoords.h elementarylength.h elementarytypes.h \
55                  quadratic_programs.h \
56                  environment.h errorhandlers.h facettypes.h \
57                  fontmetrics.h fonttypes.h \
58                  functiontypes.h globals.h glyphlist.h hottypes.h identifier.h \
59                  lighttypes.h methodid.h multipage.h namespacedirectory.h namespacescanner.h \
60                  operatorside.h operatorside_none.h pagecontentstates.h pathtypes.h \
61                  pdffunctiontypes.h pdfscanner.h pdfstructure.h pdfversion.h \
62                  shadingtypes.h shapescore.h shapesscanner.h shapestypes.h \
63                  shapesexceptions.h classexceptions.h warn.h \
64                  shapesvalue.h methodbase.h methodbase_impl.h simplepdfi.h pdfimport.h \
65                  simplepdfo.h sourcelocation.h corelocation.h specialunits.h statetypes.h \
66                  strrefdup.h tagtypes.h texlabelmanager.h texscanner.h texttypes.h \
67                  thunkimpl.h timetypes.h trianglefunctions.h upsamplers.h \
68                  yyltype.h zbufinternals.h utf8tools.h rasterloaders.h main.h \
69                  Shapes_Ast_decls.h Shapes_Computation_decls.h Shapes_Concrete_decls.h \
70                  Shapes_Exceptions_decls.h Shapes_Lang_decls.h \
71                  Shapes_Helpers_decls.h Shapes_Kernel_decls.h \
72                  FontMetrics_decls.h SimplePDF_decls.h \
73                  ../tools/include/autoonoff.h ../tools/include/isnan.h \
74                  ../tools/include/physical.h ../tools/include/nullptr.h \
75                  ../tools/include/ptrowner.h ../tools/include/refcount.h
77 shapes_SOURCES = shapesyylex.ll \
78                 pdfstructure.cc pdfscanner.cc pdfyylex.ll simplepdfo.cc pdfversion.cc \
79                 simplepdfi.cc pdfimport.cc \
80     identifier.cc consts.cc \
81                 ../tools/source/autoonoff.cc \
82                 ../tools/source/physical.cc \
83                 globals.cc \
84                 continuations.cc \
85                 gettypeid.cc \
86                 elementarytypes.cc \
87                 concretecolors.cc \
88                 facetnormals.cc facettypes.cc texttypes.cc \
89                 pagecontentstates.cc \
90                 elementarycoords.cc statetypes.cc pathtypes.cc elementarypath2D.cc \
91                 elementarypath3D.cc bezier.cc upsamplers.cc \
92                 quadratic_programs.cc solve_qp_dist_gen.cc \
93                 pathslider2D.cc pathslider3D.cc drawabletypes.cc singlesidedpolygons.cc shadingtypes.cc \
94                 functiontypes.cc pdffunctiontypes.cc \
95                 lighttypes.cc containertypes.cc graphtypes.cc timetypes.cc hottypes.cc \
96                 multipage.cc annotations.cc tagtypes.cc shapesvalue.cc \
97                 shapesscanner.cc sourcelocation.cc corelocation.cc shapesexceptions.cc classexceptions.cc strrefdup.cc \
98                 shapesparser.yy environment.cc dynamicenvironment.cc registerclasses.cc \
99                 shapescore.cc coreast.cc coreelem.cc coreconstruct.cc coreannotation.cc \
100                 corepoint.cc corepath.cc coremisc.cc coresort.cc coredraw.cc corestate.cc coredecomp.cc \
101                 angleselect.cc texlabelmanager.cc texscanner.cc texyylex.ll specialunits.cc trianglefunctions.cc basicsimplex.cc \
102                 computeelementarypath.cc \
103                 zbuftriangle.cc zbufline.cc zbufto2D.cc zbufinternals.cc zsorterto2D.cc \
104                 ast.cc astfun.cc astvalues.cc astvar.cc astexpr.cc \
105                 astexpr_unary.cc astexpr_arithmetic.cc astexpr_relational.cc \
106                 coreoperators.cc astflow.cc \
107                 classtypes.cc astclass.cc errorhandlers.cc constructorrepresentation.cc mathematicarepresentation.cc charconverters.cc \
108                 fontmetrics.cc afmscanner.cc afmyylex.ll fonttypes.cc corefont.cc glyphlist.cc \
109     namespacedirectory.cc namespacescanner.cc namespaceyylex.ll \
110                 characterencoding.cc import_png.cc import_jpeg.cc \
111                 debuglog.cc eval_non_interactive.cc eval_interactive.cc main.cc
113 dist_noinst_DATA = version.cc
115 shapesparser.hh : shapesparser.cc shapesparser.yy
117 classtree2.h : classtree1.h
118         cat $< | sed -e 's/CLASSTREE1/CLASSTREE2/' > $@
120 version.o : version.cc SHAPES-VERSION-FILE
121         ${COMPILE} -D'VERSION_DATE="${VERSION_DATE}"' \
122                    -D'VERSION_NUMBER="${VERSION_NUMBER}"' -c $< -o $@
124 consts.o : consts.cc
125         ${COMPILE} -D'HTML_DIRDEF="${htmldir}"' -D'RESOURCES_DIRDEF="${pkgdatadir}"' -c $< -o $@