3 # Copyright (C) 2011-2014 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 = $(FREETYPE_CPPFLAGS) \
16 noinst_LTLIBRARIES = \
24 libnumberset_la_SOURCES = \
25 numberset.c numberset.h
27 # We have to bypass automake's default handling of flex (.l) and bison (.y)
28 # files, since such files are always treated as traditional lex and yacc
29 # files, not allowing for flex and bison extensions. For this reason, we
30 # call our source files `tacontrol.flex' and `tacontrol.bison' and write
31 # explicit dependency rules.
33 libttfautohint_la_SOURCES = \
37 tabytecode.c tabytecode.h \
38 tacontrol.c tacontrol.h \
39 tacontrol-flex-wrapper.c tacontrol-flex.h \
40 tacontrol-bison.c tacontrol-bison.h \
51 tagloadr.c tagloadr.h \
52 taglobal.c taglobal.h \
55 taharfbuzz.c taharfbuzz.h \
59 taloader.c taloader.h \
65 taranges.c taranges.h \
70 tatables.c tatables.h \
78 ttfautohint.h ttfautohint-errors.h ttfautohint-scripts.h
80 libttfautohint_la_LIBADD = \
89 tacontrol-flex.c tacontrol-flex.h \
90 tacontrol-bison.c tacontrol-bison.h
95 tablue.cin tablue.hin \
97 tacontrol.flex tacontrol.bison tacontrol-flex.c
99 tablue.c: tablue.dat tablue.cin
100 $(AM_V_GEN)rm -f $@-t $@ \
101 && perl afblue.pl $(srcdir)/tablue.dat \
102 < $(srcdir)/tablue.cin \
106 tablue.h: tablue.dat tablue.hin
107 $(AM_V_GEN)rm -f $@-t $@ \
108 && perl afblue.pl $(srcdir)/tablue.dat \
109 < $(srcdir)/tablue.hin \
113 TA_V_FLEX = $(TA_V_FLEX_@AM_V@)
114 TA_V_FLEX_ = $(TA_V_FLEX_@AM_DEFAULT_V@)
115 TA_V_FLEX_0 = @echo " FLEX " $@;
117 # we use `touch' to make the created .h file newer than the created .c file
119 tacontrol-flex.c tacontrol-flex.h: tacontrol.flex
120 $(TA_V_FLEX)$(FLEX) tacontrol.flex \
121 && touch tacontrol-flex.h
122 tacontrol-flex.h: tacontrol-flex.c
124 TA_V_BISON = $(TA_V_BISON_@AM_V@)
125 TA_V_BISON_ = $(TA_V_BISON_@AM_DEFAULT_V@)
126 TA_V_BISON_0 = @echo " BISON " $@;
128 tacontrol-bison.c tacontrol-bison.h: tacontrol.bison
129 $(TA_V_BISON)$(BISON) tacontrol.bison \
130 && touch tacontrol-bison.h
131 tacontrol-bison.h: tacontrol-bison.c
133 ## end of Makefile.am