3 # Copyright (C) 2011-2021 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 # We must also ensure that `config.h' gets included first.
26 echo
'#include <config.h>'; \
28 `echo $(QT_CPPFLAGS) | sed 's/-isystem/-I/g'` \
34 DISTCLEANFILES
+= $(BUILT_SOURCES
)
36 LDADD
= lib
/libttfautohint.la \
39 gnulib
/src
/libgnu.la \
44 bin_PROGRAMS
= frontend
/ttfautohint
46 frontend_ttfautohint_SOURCES
= \
50 frontend_ttfautohint_CPPFLAGS
= $(AM_CPPFLAGS
) \
52 frontend_ttfautohint_LDADD
= $(LDADD
)
54 manpages
= frontend
/ttfautohint
.1
57 bin_PROGRAMS
+= frontend
/ttfautohintGUI
59 frontend_ttfautohintGUI_SOURCES
= \
60 frontend
/ddlineedit.
cpp \
61 frontend
/ddlineedit.h \
65 frontend
/maingui.
cpp \
67 frontend
/ttlineedit.
cpp \
69 nodist_frontend_ttfautohintGUI_SOURCES
= \
70 frontend
/ddlineedit.moc.
cpp \
71 frontend
/maingui.moc.
cpp \
72 frontend
/static-plugins.
cpp \
73 frontend
/ttlineedit.moc.
cpp
75 # We want compatibility with Qt < 5.11.
76 frontend_ttfautohintGUI_CXXFLAGS
= $(QT_CXXFLAGS
) \
77 -Wno-deprecated-declarations
78 frontend_ttfautohintGUI_LDFLAGS
= $(QT_LDFLAGS
)
79 frontend_ttfautohintGUI_CPPFLAGS
= $(AM_CPPFLAGS
) \
80 $(FREETYPE_CPPFLAGS
) \
83 frontend_ttfautohintGUI_LDADD
= $(LDADD
) \
86 BUILT_SOURCES
+= frontend
/ddlineedit.moc.
cpp \
87 frontend
/maingui.moc.
cpp \
88 frontend
/static-plugins.
cpp \
89 frontend
/ttlineedit.moc.
cpp
91 manpages
+= frontend
/ttfautohintGUI
.1
95 dist_man_MANS
= $(manpages
)
98 # `ttfautohint.h' holds default values for some options,
99 # `ttfautohint-scripts.h' the list of available scripts.
100 frontend
/ttfautohint
.1: frontend
/main.
cpp \
101 lib
/ttfautohint.h.in \
102 lib
/ttfautohint-scripts.h \
104 | frontend
/ttfautohint
$(EXEEXT
)
105 $(HELP2MAN
) --output
=$@ \
107 --name
="add new, auto-generated hints to a TrueType font" \
108 frontend
/ttfautohint
$(EXEEXT
)
110 frontend
/ttfautohintGUI
.1: frontend
/main.
cpp \
111 lib
/ttfautohint.h.in \
112 lib
/ttfautohint-scripts.h \
114 | frontend
/ttfautohintGUI
$(EXEEXT
)
115 $(HELP2MAN
) --output
=$@ \
117 --name
="add new, auto-generated hints to a TrueType font" \
118 --help-option
=--help-all \
119 frontend
/ttfautohintGUI
$(EXEEXT
)
121 # end of frontend/local.mk