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 = \
20 libnumberset_la_SOURCES = \
21 numberset.c numberset.h
23 # We have to bypass automake's default handling of flex (.l) and bison (.y)
24 # files, since such files are always treated as traditional lex and yacc
25 # files, not allowing for flex and bison extensions. For this reason, we
26 # call our source files `tadeltas.flex' and `tadeltas.bison' and write
27 # explicit dependency rules.
29 libttfautohint_la_SOURCES = \
33 tabytecode.c tabytecode.h \
36 tadeltas.c tadeltas.h \
37 tadeltas-flex-wrapper.c tadeltas-flex.h \
38 tadeltas-bison.c tadeltas-bison.h \
47 tagloadr.c tagloadr.h \
48 taglobal.c taglobal.h \
51 taharfbuzz.c taharfbuzz.h \
55 taloader.c taloader.h \
61 taranges.c taranges.h \
66 tatables.c tatables.h \
73 ttfautohint.h ttfautohint-errors.h ttfautohint-scripts.h
75 libttfautohint_la_LIBADD = \
83 tadeltas-flex.c tadeltas-flex.h \
84 tadeltas-bison.c tadeltas-bison.h
88 tablue.cin tablue.hin \
90 tadeltas.flex tadeltas.bison tadeltas-flex.c
92 tablue.c: tablue.dat tablue.cin
93 $(AM_V_GEN)rm -f $@-t $@ \
94 && perl afblue.pl $(srcdir)/tablue.dat \
95 < $(srcdir)/tablue.cin \
99 tablue.h: tablue.dat tablue.hin
100 $(AM_V_GEN)rm -f $@-t $@ \
101 && perl afblue.pl $(srcdir)/tablue.dat \
102 < $(srcdir)/tablue.hin \
106 TA_V_FLEX = $(TA_V_FLEX_@AM_V@)
107 TA_V_FLEX_ = $(TA_V_FLEX_@AM_DEFAULT_V@)
108 TA_V_FLEX_0 = @echo " FLEX " $@;
110 # we use `touch' to make the created .h file newer than the created .c file
112 tadeltas-flex.c tadeltas-flex.h: tadeltas.flex
113 $(TA_V_FLEX)$(FLEX) tadeltas.flex \
114 && touch tadeltas-flex.h
115 tadeltas-flex.h: tadeltas-flex.c
117 TA_V_BISON = $(TA_V_BISON_@AM_V@)
118 TA_V_BISON_ = $(TA_V_BISON_@AM_DEFAULT_V@)
119 TA_V_BISON_0 = @echo " BISON " $@;
121 tadeltas-bison.c tadeltas-bison.h: tadeltas.bison
122 $(TA_V_BISON)$(BISON) tadeltas.bison \
123 && touch tadeltas-bison.h
124 tadeltas-bison.h: tadeltas-bison.c
126 ## end of Makefile.am