Add missing file to `make dist'.
[ttfautohint.git] / lib / Makefile.am
blob3006d17dfc9c84cff900055caeff842da6fdf031
1 ## Makefile.am
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) \
16               $(HARFBUZZ_CFLAGS)
18 noinst_LTLIBRARIES = \
19   libsds.la \
20   libnumberset.la \
21   libttfautohint.la
23 libsds_la_SOURCES = \
24   sds-wrapper.c sds.h
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 = \
36   llrb.h \
37   ta.h \
38   tablue.c tablue.h \
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 \
43   tacover.h \
44   tacvt.c \
45   tadsig.c \
46   tadummy.c tadummy.h \
47   tadump.c \
48   taerror.c \
49   tafile.c \
50   tafont.c \
51   tafpgm.c \
52   tagasp.c \
53   tagloadr.c tagloadr.h \
54   taglobal.c taglobal.h \
55   taglyf.c \
56   tagpos.c \
57   taharfbuzz.c taharfbuzz.h \
58   tahints.c tahints.h \
59   tahmtx.c \
60   talatin.c talatin.h \
61   taloader.c taloader.h \
62   taloca.c \
63   tamaxp.c \
64   taname.c \
65   tapost.c \
66   taprep.c \
67   taranges.c taranges.h \
68   tascript.c \
69   tasfnt.c \
70   tasort.c tasort.h \
71   tastyles.h \
72   tatables.c tatables.h \
73   tatime.c \
74   tattc.c \
75   tattf.c \
76   tattfa.c \
77   tatypes.h \
78   tawrtsys.h \
79   ttfautohint.c \
80   ttfautohint.h ttfautohint-errors.h ttfautohint-scripts.h
82 libttfautohint_la_LIBADD = \
83   libsds.la \
84   libnumberset.la \
85   $(LIBM) \
86   $(FREETYPE_LIBS) \
87   $(HARFBUZZ_LIBS)
89 BUILT_SOURCES = \
90   tablue.c tablue.h \
91   tacontrol-flex.c tacontrol-flex.h \
92   tacontrol-bison.c tacontrol-bison.h
94 EXTRA_DIST = \
95   afblue.pl \
96   sds.c \
97   tablue.cin tablue.hin \
98   tablue.dat \
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 \
105                           > $@-t \
106         && mv $@-t $@
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 \
112                           > $@-t \
113         && mv $@-t $@
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