3 # Copyright (C) 2011-2015 by Werner Lemberg.
5 # This file is part of the ttfautohint library, and may only be used,
6 # modified, and distributed under the terms given in `COPYING'. By
7 # continuing to use, modify, or distribute this file you indicate that you
8 # have read `COPYING' and understand and accept it fully.
10 # The file `COPYING' mentioned in the previous paragraph is distributed
11 # with the ttfautohint library.
13 AM_CPPFLAGS = -I$(top_builddir)/gnulib/src \
14 -I$(top_srcdir)/gnulib/src \
15 $(FREETYPE_CPPFLAGS) \
18 noinst_LTLIBRARIES = \
26 libnumberset_la_SOURCES = \
27 numberset.c numberset.h
29 # We have to bypass automake's default handling of flex (.l) and bison (.y)
30 # files, since such files are always treated as traditional lex and yacc
31 # files, not allowing for flex and bison extensions. For this reason, we
32 # call our source files `tacontrol.flex' and `tacontrol.bison' and write
33 # explicit dependency rules.
35 libttfautohint_la_SOURCES = \
39 tabytecode.c tabytecode.h \
40 tacontrol.c tacontrol.h \
41 tacontrol-flex-wrapper.c tacontrol-flex.h \
42 tacontrol-bison.c tacontrol-bison.h \
53 tagloadr.c tagloadr.h \
54 taglobal.c taglobal.h \
57 taharfbuzz.c taharfbuzz.h \
61 taloader.c taloader.h \
67 taranges.c taranges.h \
72 tatables.c tatables.h \
80 ttfautohint.h ttfautohint-errors.h ttfautohint-scripts.h
82 libttfautohint_la_LIBADD = \
91 tacontrol-flex.c tacontrol-flex.h \
92 tacontrol-bison.c tacontrol-bison.h
97 tablue.cin tablue.hin \
99 tacontrol.flex tacontrol.bison tacontrol-flex.c
101 tablue.c: tablue.dat tablue.cin
102 $(AM_V_GEN)rm -f $@-t $@ \
103 && perl afblue.pl $(srcdir)/tablue.dat \
104 < $(srcdir)/tablue.cin \
108 tablue.h: tablue.dat tablue.hin
109 $(AM_V_GEN)rm -f $@-t $@ \
110 && perl afblue.pl $(srcdir)/tablue.dat \
111 < $(srcdir)/tablue.hin \
115 TA_V_FLEX = $(TA_V_FLEX_@AM_V@)
116 TA_V_FLEX_ = $(TA_V_FLEX_@AM_DEFAULT_V@)
117 TA_V_FLEX_0 = @echo " FLEX " $@;
119 # we use `touch' to make the created .h file newer than the created .c file
121 tacontrol-flex.c tacontrol-flex.h: tacontrol.flex
122 $(TA_V_FLEX)$(FLEX) tacontrol.flex \
123 && touch tacontrol-flex.h
124 tacontrol-flex.h: tacontrol-flex.c
126 TA_V_BISON = $(TA_V_BISON_@AM_V@)
127 TA_V_BISON_ = $(TA_V_BISON_@AM_DEFAULT_V@)
128 TA_V_BISON_0 = @echo " BISON " $@;
130 tacontrol-bison.c tacontrol-bison.h: tacontrol.bison
131 $(TA_V_BISON)$(BISON) tacontrol.bison \
132 && touch tacontrol-bison.h
133 tacontrol-bison.h: tacontrol-bison.c
135 ## end of Makefile.am