3 # Copyright (C) 2011-2020 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 # moc from Qt5 aborts if unknown command line options are supplied;
21 # in particular, it doesn't recognize `-isystem'
23 $(moc_verbose)$(MOC) \
24 `echo $(QT_CPPFLAGS) | sed 's/-isystem/-I/g'` \
28 DISTCLEANFILES = $(BUILT_SOURCES)
30 AM_CPPFLAGS = -I$(top_srcdir)/lib \
31 -I$(top_builddir)/gnulib/src \
32 -I$(top_srcdir)/gnulib/src \
34 LDADD = $(top_builddir)/lib/libttfautohint.la \
35 $(top_builddir)/lib/libsds.la \
36 $(top_builddir)/lib/libnumberset.la \
37 $(top_builddir)/gnulib/src/libgnu.la \
42 bin_PROGRAMS = ttfautohint
43 ttfautohint_SOURCES = info.cpp \
46 manpages = ttfautohint.1
49 bin_PROGRAMS += ttfautohintGUI
50 ttfautohintGUI_SOURCES = ddlineedit.cpp \
59 nodist_ttfautohintGUI_SOURCES = ddlineedit.moc.cpp \
64 ttfautohintGUI_CXXFLAGS = $(QT_CXXFLAGS)
65 ttfautohintGUI_LDFLAGS = $(QT_LDFLAGS)
66 ttfautohintGUI_CPPFLAGS = $(AM_CPPFLAGS) \
69 ttfautohintGUI_LDADD = $(LDADD) \
72 BUILT_SOURCES = ddlineedit.moc.cpp \
77 manpages += ttfautohintGUI.1
81 dist_man_MANS = $(manpages)
84 # `ttfautohint.h' holds default values for some options,
85 # `ttfautohint-scripts.' the list of available scripts
86 ttfautohint.1: $(top_srcdir)/frontend/main.cpp \
87 $(top_builddir)/lib/ttfautohint.h \
88 $(top_srcdir)/lib/ttfautohint-scripts.h \
89 $(top_builddir)/.version
90 $(MAKE) $(AM_MAKEFLAGS) ttfautohint$(EXEEXT)
91 $(HELP2MAN) --output=$@ \
93 --name="add new, auto-generated hints to a TrueType font" \
94 ./ttfautohint$(EXEEXT)
96 ttfautohintGUI.1: $(top_srcdir)/frontend/main.cpp \
97 $(top_builddir)/lib/ttfautohint.h \
98 $(top_srcdir)/lib/ttfautohint-scripts.h \
99 $(top_builddir)/.version
100 $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
101 $(HELP2MAN) --output=$@ \
103 --name="add new, auto-generated hints to a TrueType font" \
104 --help-option=--help-all \
105 ./ttfautohintGUI$(EXEEXT)