s/lower_upper/upper_lower/.
[ttfautohint.git] / frontend / Makefile.am
blob6410f443d6396b925740e3e86d59efaf830951fa
1 # Makefile.am
3 # Copyright (C) 2011 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 SUFFIXES = .moc.cpp .h
15 .h.moc.cpp:
16         $(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
18 DISTCLEANFILES = $(BUILT_SOURCES)
20 AM_CPPFLAGS = -I$(top_srcdir)/lib \
21               -I$(top_builddir)/gnulib/src \
22               -I$(top_srcdir)/gnulib/src \
23               $(FREETYPE_CPPFLAGS)
24 LDADD = $(top_builddir)/lib/libttfautohint.a \
25         $(top_builddir)/gnulib/src/libgnu.la \
26         $(LTLIBINTL) \
27         $(LTLIBTHREAD) \
28         $(FREETYPE_LIBS)
30 bin_PROGRAMS = ttfautohint
31 ttfautohint_SOURCES = info.cpp \
32                       main.cpp
33 dist_man_MANS = ttfautohint.1
35 if USE_QT
36   bin_PROGRAMS += ttfautohintGUI
37   ttfautohintGUI_SOURCES = info.cpp \
38                            main.cpp \
39                            maingui.cpp \
40                            maingui.h
41   nodist_ttfautohintGUI_SOURCES = maingui.moc.cpp
42   ttfautohintGUI_CXXFLAGS = $(QT_CXXFLAGS)
43   ttfautohintGUI_LDFLAGS = $(QT_LDFLAGS)
44   ttfautohintGUI_CPPFLAGS = $(AM_CPPFLAGS) \
45                             $(QT_CPPFLAGS) \
46                             -DBUILD_GUI
47   ttfautohintGUI_LDADD = $(LDADD) \
48                          $(QT_LIBS)
50   BUILT_SOURCES = maingui.moc.cpp
51   dist_man_MANS += ttfautohintGUI.1
52 endif
55 ttfautohint.1: $(top_srcdir)/frontend/main.cpp $(top_srcdir)/configure.ac
56         $(MAKE) $(AM_MAKEFLAGS) ttfautohint$(EXEEXT)
57         $(HELP2MAN) --output=$@ \
58                     --no-info \
59                     --name="add new auto-generated hints to a TrueType font" \
60                     ./ttfautohint$(EXEEXT)
62 ttfautohintGUI.1: $(top_srcdir)/frontend/main.cpp $(top_srcdir)/configure.ac
63         $(MAKE) $(AM_MAKEFLAGS) ttfautohint$(EXEEXT)
64         $(HELP2MAN) --output=$@ \
65                     --no-info \
66                     --name="add new auto-generated hints to a TrueType font" \
67                     --help-option=--help-all \
68                     ./ttfautohintGUI$(EXEEXT)
70 # end of Makefile.am