Update `--help' text.
[ttfautohint.git] / lib / Makefile.am
blob07f3f8f45715d40a8af2a9534482262f129ff017
1 ## Makefile.am
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) \
14               $(HARFBUZZ_CFLAGS)
16 noinst_LTLIBRARIES = \
17   libsds.la \
18   libnumberset.la \
19   libttfautohint.la
21 libsds_la_SOURCES = \
22   sds-wrapper.c sds.h
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 = \
34   llrb.h \
35   ta.h \
36   tablue.c tablue.h \
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 \
41   tacover.h \
42   tacvt.c \
43   tadsig.c \
44   tadummy.c tadummy.h \
45   tadump.c \
46   taerror.c \
47   tafile.c \
48   tafont.c \
49   tafpgm.c \
50   tagasp.c \
51   tagloadr.c tagloadr.h \
52   taglobal.c taglobal.h \
53   taglyf.c \
54   tagpos.c \
55   taharfbuzz.c taharfbuzz.h \
56   tahints.c tahints.h \
57   tahmtx.c \
58   talatin.c talatin.h \
59   taloader.c taloader.h \
60   taloca.c \
61   tamaxp.c \
62   taname.c \
63   tapost.c \
64   taprep.c \
65   taranges.c taranges.h \
66   tascript.c \
67   tasfnt.c \
68   tasort.c tasort.h \
69   tastyles.h \
70   tatables.c tatables.h \
71   tatime.c \
72   tattc.c \
73   tattf.c \
74   tattfa.c \
75   tatypes.h \
76   tawrtsys.h \
77   ttfautohint.c \
78   ttfautohint.h ttfautohint-errors.h ttfautohint-scripts.h
80 libttfautohint_la_LIBADD = \
81   libsds.la \
82   libnumberset.la \
83   $(LIBM) \
84   $(FREETYPE_LIBS) \
85   $(HARFBUZZ_LIBS)
87 BUILT_SOURCES = \
88   tablue.c tablue.h \
89   tacontrol-flex.c tacontrol-flex.h \
90   tacontrol-bison.c tacontrol-bison.h
92 EXTRA_DIST = \
93   afblue.pl \
94   sds.c \
95   tablue.cin tablue.hin \
96   tablue.dat \
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 \
103                           > $@-t \
104         && mv $@-t $@
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 \
110                           > $@-t \
111         && mv $@-t $@
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