[gui] s/Line_Edit/Drag_Drop_Line_Edit/.
[ttfautohint.git] / frontend / Makefile.am
blob7c46769970a3ab2f62cc308bbe61ae6087a79e07
1 # Makefile.am
3 # Copyright (C) 2011-2012 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 # Make call to `moc' emit just `MOC'.
16 moc_verbose = $(moc_verbose_@AM_V@)
17 moc_verbose_ = $(moc_verbose_@AM_DEFAULT_V@)
18 moc_verbose_0 = @echo "  MOC   " $@;
20 .h.moc.cpp:
21         $(moc_verbose)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
23 DISTCLEANFILES = $(BUILT_SOURCES)
25 AM_CPPFLAGS = -I$(top_srcdir)/lib \
26               -I$(top_builddir)/gnulib/src \
27               -I$(top_srcdir)/gnulib/src \
28               $(FREETYPE_CPPFLAGS)
29 LDADD = $(top_builddir)/lib/libttfautohint.la \
30         $(top_builddir)/gnulib/src/libgnu.la \
31         $(LTLIBINTL) \
32         $(LTLIBTHREAD) \
33         $(FREETYPE_LIBS)
35 bin_PROGRAMS = ttfautohint
36 ttfautohint_SOURCES = info.cpp \
37                       info.h \
38                       main.cpp
39 manpages = ttfautohint.1
41 if USE_QT
42   bin_PROGRAMS += ttfautohintGUI
43   ttfautohintGUI_SOURCES = ddlineedit.cpp \
44                            ddlineedit.h \
45                            info.cpp \
46                            info.h \
47                            main.cpp \
48                            maingui.cpp \
49                            maingui.h
50   nodist_ttfautohintGUI_SOURCES = ddlineedit.moc.cpp \
51                                   maingui.moc.cpp
53   ttfautohintGUI_CXXFLAGS = $(QT_CXXFLAGS)
54   ttfautohintGUI_LDFLAGS = $(QT_LDFLAGS)
55   ttfautohintGUI_CPPFLAGS = $(AM_CPPFLAGS) \
56                             $(QT_CPPFLAGS) \
57                             -DBUILD_GUI
58   ttfautohintGUI_LDADD = $(LDADD) \
59                          $(QT_LIBS)
61   BUILT_SOURCES = ddlineedit.moc.cpp \
62                   maingui.moc.cpp
64   manpages += ttfautohintGUI.1
65 endif
67 if WITH_DOC
68   dist_man_MANS = $(manpages)
69 endif
71 # `ttfautohint.h' holds default values for some options.
72 ttfautohint.1: $(top_srcdir)/frontend/main.cpp \
73                $(top_srcdir)/lib/ttfautohint.h \
74                $(top_srcdir)/.version
75         $(MAKE) $(AM_MAKEFLAGS) ttfautohint$(EXEEXT)
76         $(HELP2MAN) --output=$@ \
77                     --no-info \
78                     --name="add new auto-generated hints to a TrueType font" \
79                     ./ttfautohint$(EXEEXT)
81 ttfautohintGUI.1: $(top_srcdir)/frontend/main.cpp \
82                   $(top_srcdir)/lib/ttfautohint.h \
83                   $(top_srcdir)/.version
84         $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
85         $(HELP2MAN) --output=$@ \
86                     --no-info \
87                     --name="add new auto-generated hints to a TrueType font" \
88                     --help-option=--help-all \
89                     ./ttfautohintGUI$(EXEEXT)
91 # end of Makefile.am