noinst_LIBRARIES =
CLEANFILES =
+DISTCLEANFILES =
+MAINTAINERCLEANFILES =
BUILT_SOURCES =
#===============================================================================
libs_parser_libkconfig_parser_la_CPPFLAGS = \
-DROOTMENU="\"$(root_menu)\"" \
-DCONFIG_=\"$(config_prefix)\" \
- $(intl_CPPFLAGS)
+ -DGPERF_LEN_TYPE="$(GPERF_LEN_TYPE)" \
+ $(intl_CPPFLAGS) \
+ -I$(top_srcdir)/libs/parser \
+ -I$(top_builddir)/libs/parser
libs_parser_libkconfig_parser_la_CFLAGS = \
$(AM_CFLAGS) \
$(kf_CFLAGS)
.gperf.c:
$(AM_V_GPERF)$(GPERF) -t --output-file $@ -a -C -E -g -k 1,3,$$ -p -t $<
-# The following rule produces a warning:
-# libs/parser/Makefile.am:41: user target `.l.c' defined here...
+# The following rule may produce a warning with some versions of automake:
+# Makefile.am:85: user target `.l.c' defined here...
# /usr/share/automake-1.11/am/lex.am: ... overrides Automake target
# `.l.c' defined here
#
.l.c:
$(AM_V_LEX)$(LEXCOMPILE) -o$@ $<
-BUILT_SOURCES += libs/parser/hconf.c libs/parser/lconf.c
-CLEANFILES += libs/parser/hconf.c libs/parser/lconf.c libs/parser/yconf.c
-EXTRA_DIST += libs/parser/yconf.y.patch
+# yconf.c not listed, because it is the real _SOURCES, but others are
+# in _EXTRA_SOURCES (above), so must be listed:
+BUILT_SOURCES += \
+ libs/parser/hconf.c \
+ libs/parser/lconf.c
+# Still, .c files generated from .y files are not cleaned by default,
+# so yconf.c must be explicitly listed:
+MAINTAINERCLEANFILES += \
+ libs/parser/hconf.c \
+ libs/parser/lconf.c \
+ libs/parser/yconf.c
+EXTRA_DIST += \
+ libs/parser/hconf.c \
+ libs/parser/hconf.gperf.patch \
+ libs/parser/yconf.y.patch
# libs/parser/kconfig-parser.pc generated by AC_CONFIG_FILES in configure.ac
pkgconfigdir = $(libdir)/pkg-config
pkgconfig_DATA = libs/parser/kconfig-parser.pc
-CLEANFILES += libs/parser/kconfig-parser.pc
+DISTCLEANFILES += libs/parser/kconfig-parser.pc
EXTRA_DIST += libs/parser/kconfig-parser.pc.in
#--------------------------
$(AM_CPPFLAGS) \
$(intl_CPPFLAGS) \
-I$(top_srcdir)/libs/parser \
- -I$(top_builddir)/libs/images
+ -I$(top_builddir)/libs/images \
+ -I$(top_builddir)/frontends/qconf
frontends_qconf_kconfig_qconf_CXXFLAGS = \
$(AM_CXXFLAGS) \
$(kf_CFLAGS) \
$(Qt5_CFLAGS) \
- -fPIC
+ -fPIC -std=c++11
frontends_qconf_kconfig_qconf_LDADD = \
$(top_builddir)/libs/parser/libkconfig-parser.la \
$(top_builddir)/libs/images/libkconfig-images.a \