3 # Copyright (C) 2011-2017 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.
18 AM_CPPFLAGS = -I$(top_builddir)/gnulib/src \
19 -I$(top_srcdir)/gnulib/src \
20 $(FREETYPE_CPPFLAGS) \
23 noinst_LTLIBRARIES = \
27 lib_LTLIBRARIES = libttfautohint.la
29 include_HEADERS = ttfautohint.h ttfautohint-errors.h
31 libttfautohint_la_LDFLAGS = \
33 -version-info $(ABI_CURRENT):$(ABI_REVISION):$(ABI_AGE) \
34 -export-symbols-regex "TTF_autohint"
39 libnumberset_la_SOURCES = \
40 numberset.c numberset.h
42 # We have to bypass automake's default handling of flex (.l) and bison (.y)
43 # files, since such files are always treated as traditional lex and yacc
44 # files, not allowing for flex and bison extensions. For this reason, we
45 # call our source files `tacontrol.flex' and `tacontrol.bison' and write
46 # explicit dependency rules.
48 libttfautohint_la_SOURCES = \
52 tabytecode.c tabytecode.h \
53 tacontrol.c tacontrol.h \
54 tacontrol-flex.c tacontrol-flex.h \
55 tacontrol-bison.c tacontrol-bison.h \
66 tagloadr.c tagloadr.h \
67 taglobal.c taglobal.h \
73 taloader.c taloader.h \
79 taranges.c taranges.h \
82 tashaper.c tashaper.h \
85 tatables.c tatables.h \
94 ttfautohint-scripts.h ttfautohint-coverages.h
96 libttfautohint_la_LIBADD = \
97 ${noinst_LTLIBRARIES} \
98 $(top_builddir)/gnulib/src/libgnu.la \
105 tacontrol-flex.c tacontrol-flex.h \
106 tacontrol-bison.c tacontrol-bison.h \
112 tablue.cin tablue.hin \
114 tacontrol.flex tacontrol.bison \
119 pkgconfigdir = $(libdir)/pkgconfig
120 pkgconfig_DATA = ttfautohint.pc
122 CLEANFILES = $(pkgconfig_DATA)
124 ttfautohint.pc: ttfautohint.pc.in $(top_builddir)/config.status
126 -e 's@%prefix%@$(prefix)@g' \
127 -e 's@%exec_prefix%@$(exec_prefix)@g' \
128 -e 's@%includedir%@$(includedir)@g' \
129 -e 's@%libdir%@$(libdir)@g' \
130 -e 's@%version%@$(ABI_CURRENT).$(ABI_REVISION).$(ABI_AGE)@g' \
135 tablue.c: tablue.dat tablue.cin
136 $(AM_V_GEN)rm -f $@-t $@ \
137 && perl $(srcdir)/afblue.pl $(srcdir)/tablue.dat \
138 < $(srcdir)/tablue.cin \
142 tablue.h: tablue.dat tablue.hin
143 $(AM_V_GEN)rm -f $@-t $@ \
144 && perl $(srcdir)/afblue.pl $(srcdir)/tablue.dat \
145 < $(srcdir)/tablue.hin \
149 ttfautohint.h: ttfautohint.h.in
151 -e 's@%TTFAUTOHINT_MAJOR%@$(ttfautohint_major)@g' \
152 -e 's@%TTFAUTOHINT_MINOR%@$(ttfautohint_minor)@g' \
153 -e 's@%TTFAUTOHINT_REVISION%@$(ttfautohint_revision)@g' \
154 -e 's@%TTFAUTOHINT_VERSION%@$(VERSION)@g' \
159 TA_V_FLEX = $(TA_V_FLEX_@AM_V@)
160 TA_V_FLEX_ = $(TA_V_FLEX_@AM_DEFAULT_V@)
161 TA_V_FLEX_0 = @echo " FLEX " $@;
163 # we use `touch' to make the created .h file newer than the created .c file
165 tacontrol-flex.c tacontrol-flex.h: tacontrol.flex
166 $(TA_V_FLEX)$(FLEX) $(srcdir)/tacontrol.flex \
167 && touch tacontrol-flex.h
168 tacontrol-flex.h: tacontrol-flex.c
170 TA_V_BISON = $(TA_V_BISON_@AM_V@)
171 TA_V_BISON_ = $(TA_V_BISON_@AM_DEFAULT_V@)
172 TA_V_BISON_0 = @echo " BISON " $@;
174 tacontrol-bison.c tacontrol-bison.h: tacontrol.bison
175 $(TA_V_BISON)$(BISON) $(srcdir)/tacontrol.bison \
176 && touch tacontrol-bison.h
177 tacontrol-bison.h: tacontrol-bison.c
179 ## end of Makefile.am