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