2018-09-19 13:36:15 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2010-08-21 15:59:10 +02:00
|
|
|
# ===========================================================================
|
|
|
|
# Kernel configuration targets
|
|
|
|
# These targets are used from top-level makefile
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
PHONY += xconfig gconfig menuconfig config syncconfig update-po-config \
|
2010-08-21 17:00:49 +02:00
|
|
|
localmodconfig localyesconfig
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# Easy method for doing a status message
|
|
|
|
kecho := :
|
|
|
|
quiet_kecho := echo
|
|
|
|
silent_kecho := :
|
|
|
|
kecho := $($(quiet)kecho)
|
|
|
|
|
2010-08-21 15:59:10 +02:00
|
|
|
ifdef KBUILD_KCONFIG
|
|
|
|
Kconfig := $(KBUILD_KCONFIG)
|
|
|
|
else
|
2011-02-02 11:48:58 +01:00
|
|
|
Kconfig := Kconfig
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
ifeq ($(quiet),silent_)
|
|
|
|
silent := -s
|
|
|
|
endif
|
|
|
|
|
2013-04-04 13:24:24 +02:00
|
|
|
# We need this, in case the user has it in its environment
|
|
|
|
unexport CONFIG_
|
|
|
|
|
2010-08-21 15:59:10 +02:00
|
|
|
xconfig: $(obj)/qconf
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
gconfig: $(obj)/gconf
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
menuconfig: $(obj)/mconf
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
config: $(obj)/conf
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) --oldaskconfig $(Kconfig)
|
2010-08-21 17:00:49 +02:00
|
|
|
|
|
|
|
nconfig: $(obj)/nconf
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# This has become an internal implementation detail and is now deprecated
|
|
|
|
# for external use.
|
|
|
|
syncconfig: $(obj)/conf
|
|
|
|
$(Q)mkdir -p include/config include/generated
|
|
|
|
$< $(silent) --$@ $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
localyesconfig localmodconfig: $(obj)/conf
|
|
|
|
$(Q)mkdir -p include/config include/generated
|
|
|
|
$(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
|
2010-08-21 17:00:49 +02:00
|
|
|
$(Q)if [ -f .config ]; then \
|
|
|
|
cmp -s .tmp.config .config || \
|
|
|
|
(mv -f .config .config.old.1; \
|
|
|
|
mv -f .tmp.config .config; \
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) --oldconfig $(Kconfig); \
|
2010-08-21 17:00:49 +02:00
|
|
|
mv -f .config.old.1 .config.old) \
|
|
|
|
else \
|
|
|
|
mv -f .tmp.config .config; \
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) --oldconfig $(Kconfig); \
|
2010-08-21 17:00:49 +02:00
|
|
|
fi
|
|
|
|
$(Q)rm -f .tmp.config
|
|
|
|
|
2010-08-21 15:59:10 +02:00
|
|
|
# Create new linux.pot file
|
|
|
|
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
|
|
|
update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
|
2018-09-19 13:36:15 +02:00
|
|
|
$(Q)$(kecho) " GEN config.pot"
|
2012-01-13 12:48:28 +01:00
|
|
|
$(Q)xgettext --default-domain=linux \
|
|
|
|
--add-comments --keyword=_ --keyword=N_ \
|
|
|
|
--from-code=UTF-8 \
|
|
|
|
--files-from=$(srctree)/scripts/kconfig/POTFILES.in \
|
|
|
|
--directory=$(srctree) --directory=$(objtree) \
|
2010-08-21 15:59:10 +02:00
|
|
|
--output $(obj)/config.pot
|
|
|
|
$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
|
2013-04-04 13:24:24 +02:00
|
|
|
$(Q)(for i in `ls $(srctree)/arch/*/Kconfig \
|
|
|
|
$(srctree)/arch/*/um/Kconfig`; \
|
2010-08-21 15:59:10 +02:00
|
|
|
do \
|
2018-09-19 13:36:15 +02:00
|
|
|
$(kecho) " GEN $$i"; \
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/kxgettext $$i \
|
|
|
|
>> $(obj)/config.pot; \
|
|
|
|
done )
|
2018-09-19 13:36:15 +02:00
|
|
|
$(Q)$(kecho) " GEN linux.pot"
|
2010-08-21 15:59:10 +02:00
|
|
|
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
|
|
|
--output $(obj)/linux.pot
|
|
|
|
$(Q)rm -f $(obj)/config.pot
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# These targets map 1:1 to the commandline options of 'conf'
|
|
|
|
simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
|
|
|
|
alldefconfig randconfig listnewconfig olddefconfig
|
|
|
|
PHONY += $(simple-targets)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
$(simple-targets): $(obj)/conf
|
|
|
|
$< $(silent) --$@ $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
PHONY += oldnoconfig silentoldconfig savedefconfig defconfig
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2013-04-04 13:24:24 +02:00
|
|
|
# oldnoconfig is an alias of olddefconfig, because people already are dependent
|
2018-09-19 13:36:15 +02:00
|
|
|
# on its behavior (sets new symbols to their default value but not 'n') with the
|
2013-04-04 13:24:24 +02:00
|
|
|
# counter-intuitive name.
|
2018-09-19 13:36:15 +02:00
|
|
|
oldnoconfig: olddefconfig
|
|
|
|
@echo " WARNING: \"oldnoconfig\" target will be removed after Linux 4.19"
|
|
|
|
@echo " Please use \"olddefconfig\" instead, which is an alias."
|
|
|
|
|
|
|
|
# We do not expect manual invokcation of "silentoldcofig" (or "syncconfig").
|
|
|
|
silentoldconfig: syncconfig
|
|
|
|
@echo " WARNING: \"silentoldconfig\" has been renamed to \"syncconfig\""
|
|
|
|
@echo " and is now an internal implementation detail."
|
|
|
|
@echo " What you want is probably \"oldconfig\"."
|
|
|
|
@echo " \"silentoldconfig\" will be removed after Linux 4.19"
|
2013-04-04 13:24:24 +02:00
|
|
|
|
2010-08-21 17:00:49 +02:00
|
|
|
savedefconfig: $(obj)/conf
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) --$@=defconfig $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
defconfig: $(obj)/conf
|
|
|
|
ifeq ($(KBUILD_DEFCONFIG),)
|
2018-09-19 13:36:15 +02:00
|
|
|
$< $(silent) --defconfig $(Kconfig)
|
2010-08-21 15:59:10 +02:00
|
|
|
else
|
2018-09-19 13:36:15 +02:00
|
|
|
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
|
|
|
|
@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
|
|
|
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
|
|
|
else
|
|
|
|
@$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
|
|
|
|
$(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
|
|
|
|
endif
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
%_defconfig: $(obj)/conf
|
2018-09-19 13:36:15 +02:00
|
|
|
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
|
|
|
|
|
|
|
configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
|
|
|
|
|
|
|
|
%.config: $(obj)/conf
|
|
|
|
$(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
|
|
|
|
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
|
|
|
|
+$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig
|
|
|
|
|
|
|
|
PHONY += kvmconfig
|
|
|
|
kvmconfig: kvm_guest.config
|
|
|
|
@:
|
|
|
|
|
|
|
|
PHONY += xenconfig
|
|
|
|
xenconfig: xen.config
|
|
|
|
@:
|
|
|
|
|
|
|
|
PHONY += tinyconfig
|
|
|
|
tinyconfig:
|
|
|
|
$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
|
|
|
|
|
|
|
|
# CHECK: -o cache_dir=<path> working?
|
|
|
|
PHONY += testconfig
|
|
|
|
testconfig: $(obj)/conf
|
|
|
|
$(PYTHON3) -B -m pytest $(srctree)/$(src)/tests \
|
|
|
|
-o cache_dir=$(abspath $(obj)/tests/.cache) \
|
|
|
|
$(if $(findstring 1,$(KBUILD_VERBOSE)),--capture=no)
|
|
|
|
clean-dirs += tests/.cache
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
# Help text used by make help
|
|
|
|
help:
|
|
|
|
@echo ' config - Update current config utilising a line-oriented program'
|
2018-09-19 13:36:15 +02:00
|
|
|
@echo ' nconfig - Update current config utilising a ncurses menu based'
|
|
|
|
@echo ' program'
|
2010-08-21 15:59:10 +02:00
|
|
|
@echo ' menuconfig - Update current config utilising a menu based program'
|
2018-09-19 13:36:15 +02:00
|
|
|
@echo ' xconfig - Update current config utilising a Qt based front-end'
|
|
|
|
@echo ' gconfig - Update current config utilising a GTK+ based front-end'
|
2010-08-21 15:59:10 +02:00
|
|
|
@echo ' oldconfig - Update current config utilising a provided .config as base'
|
2010-08-21 17:00:49 +02:00
|
|
|
@echo ' localmodconfig - Update current config disabling modules not loaded'
|
|
|
|
@echo ' localyesconfig - Update current config converting local mods to core'
|
|
|
|
@echo ' defconfig - New config with default from ARCH supplied defconfig'
|
|
|
|
@echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
|
2010-08-21 15:59:10 +02:00
|
|
|
@echo ' allnoconfig - New config where all options are answered with no'
|
2010-08-21 17:00:49 +02:00
|
|
|
@echo ' allyesconfig - New config where all options are accepted with yes'
|
|
|
|
@echo ' allmodconfig - New config selecting modules when possible'
|
|
|
|
@echo ' alldefconfig - New config with all symbols set to default'
|
|
|
|
@echo ' randconfig - New config with random answer to all options'
|
|
|
|
@echo ' listnewconfig - List new options'
|
2018-09-19 13:36:15 +02:00
|
|
|
@echo ' olddefconfig - Same as oldconfig but sets new symbols to their'
|
|
|
|
@echo ' default value without prompting'
|
|
|
|
@echo ' kvmconfig - Enable additional options for kvm guest kernel support'
|
|
|
|
@echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support'
|
|
|
|
@echo ' tinyconfig - Configure the tiniest possible kernel'
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
# lxdialog stuff
|
|
|
|
check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
|
|
|
|
|
|
|
|
# Use recursively expanded variables so we do not call gcc unless
|
|
|
|
# we really need to do so. (Do not call gcc as part of make mrproper)
|
2011-02-02 11:48:58 +01:00
|
|
|
HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
|
|
|
|
-DLOCALE
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
# ===========================================================================
|
|
|
|
# Shared Makefile for the various kconfig executables:
|
|
|
|
# conf: Used for defconfig, oldconfig and related targets
|
2010-08-21 17:00:49 +02:00
|
|
|
# nconf: Used for the nconfig target.
|
|
|
|
# Utilizes ncurses
|
2010-08-21 15:59:10 +02:00
|
|
|
# mconf: Used for the menuconfig target
|
|
|
|
# Utilizes the lxdialog package
|
|
|
|
# qconf: Used for the xconfig target
|
2018-09-19 13:36:15 +02:00
|
|
|
# Based on Qt which needs to be installed to compile it
|
2010-08-21 15:59:10 +02:00
|
|
|
# gconf: Used for the gconfig target
|
2018-09-19 13:36:15 +02:00
|
|
|
# Based on GTK+ which needs to be installed to compile it
|
2010-08-21 15:59:10 +02:00
|
|
|
# object files used by all kconfig flavours
|
|
|
|
|
|
|
|
lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
|
|
|
|
lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
|
|
|
|
|
|
|
|
conf-objs := conf.o zconf.tab.o
|
2010-08-21 17:00:49 +02:00
|
|
|
mconf-objs := mconf.o zconf.tab.o $(lxdialog)
|
|
|
|
nconf-objs := nconf.o zconf.tab.o nconf.gui.o
|
2010-08-21 15:59:10 +02:00
|
|
|
kxgettext-objs := kxgettext.o zconf.tab.o
|
2012-01-13 12:48:28 +01:00
|
|
|
qconf-cxxobjs := qconf.o
|
2013-04-04 13:24:24 +02:00
|
|
|
qconf-objs := zconf.tab.o
|
|
|
|
gconf-objs := gconf.o zconf.tab.o
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
hostprogs-y := conf
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
ifeq ($(MAKECMDGOALS),nconf)
|
2010-08-21 17:00:49 +02:00
|
|
|
hostprogs-y += nconf
|
|
|
|
endif
|
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
ifeq ($(MAKECMDGOALS),mconf)
|
2010-08-21 15:59:10 +02:00
|
|
|
hostprogs-y += mconf
|
|
|
|
endif
|
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
ifeq ($(MAKECMDGOALS),update-po-config)
|
|
|
|
hostprogs-y += kxgettext
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
ifeq ($(MAKECMDGOALS),qconf)
|
|
|
|
qconf-target := 1
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
2018-09-19 13:36:15 +02:00
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
ifeq ($(MAKECMDGOALS),gconf)
|
2010-08-21 15:59:10 +02:00
|
|
|
gconf-target := 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(qconf-target),1)
|
2012-01-13 12:48:28 +01:00
|
|
|
hostprogs-y += qconf
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(gconf-target),1)
|
2012-01-13 12:48:28 +01:00
|
|
|
hostprogs-y += gconf
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
targets += zconf.lex.c
|
2013-04-04 13:24:24 +02:00
|
|
|
clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
|
2018-09-19 13:36:15 +02:00
|
|
|
clean-files += gconf.glade.h
|
2012-01-13 12:48:28 +01:00
|
|
|
clean-files += config.pot linux.pot
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
|
|
|
PHONY += $(obj)/dochecklxdialog
|
2018-09-19 13:36:15 +02:00
|
|
|
$(addprefix $(obj)/, mconf.o $(lxdialog)): $(obj)/dochecklxdialog
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/dochecklxdialog:
|
2011-02-02 11:48:58 +01:00
|
|
|
$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
always := dochecklxdialog
|
|
|
|
|
|
|
|
# Add environment specific flags
|
|
|
|
HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
|
2018-09-19 13:36:15 +02:00
|
|
|
HOST_EXTRACXXFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCXX) $(HOSTCXXFLAGS))
|
2010-08-21 15:59:10 +02:00
|
|
|
|
|
|
|
# generated files seem to need this to find local include files
|
2013-04-04 13:24:24 +02:00
|
|
|
HOSTCFLAGS_zconf.lex.o := -I$(src)
|
2010-08-21 15:59:10 +02:00
|
|
|
HOSTCFLAGS_zconf.tab.o := -I$(src)
|
|
|
|
|
2013-04-04 13:24:24 +02:00
|
|
|
HOSTLOADLIBES_qconf = $(KC_QT_LIBS)
|
|
|
|
HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS)
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2013-04-04 13:24:24 +02:00
|
|
|
HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
|
2010-08-21 15:59:10 +02:00
|
|
|
HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
|
2013-04-04 13:24:24 +02:00
|
|
|
-Wno-missing-prototypes
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2011-02-02 11:48:58 +01:00
|
|
|
HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
|
|
|
|
|
2013-11-14 00:53:35 +01:00
|
|
|
HOSTLOADLIBES_nconf = $(shell \
|
2018-01-14 18:28:07 +01:00
|
|
|
pkg-config --libs menuw panelw ncursesw 2>/dev/null \
|
|
|
|
|| pkg-config --libs menu panel ncurses 2>/dev/null \
|
2013-11-14 00:53:35 +01:00
|
|
|
|| echo "-lmenu -lpanel -lncurses" )
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/qconf.o: $(obj)/.tmp_qtcheck
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
ifeq ($(MAKECMDGOALS),qconf)
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/.tmp_qtcheck: $(src)/Makefile
|
|
|
|
-include $(obj)/.tmp_qtcheck
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# Qt needs some extra effort...
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/.tmp_qtcheck:
|
2018-09-19 13:36:15 +02:00
|
|
|
@set -e; $(kecho) " CHECK qt"; \
|
|
|
|
if pkg-config --exists Qt5Core; then \
|
|
|
|
cflags="-std=c++11 -fPIC `pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets`"; \
|
|
|
|
libs=`pkg-config --libs Qt5Core Qt5Gui Qt5Widgets`; \
|
|
|
|
moc=`pkg-config --variable=host_bins Qt5Core`/moc; \
|
|
|
|
elif pkg-config --exists QtCore; then \
|
|
|
|
cflags=`pkg-config --cflags QtCore QtGui`; \
|
|
|
|
libs=`pkg-config --libs QtCore QtGui`; \
|
|
|
|
moc=`pkg-config --variable=moc_location QtCore`; \
|
2010-08-21 15:59:10 +02:00
|
|
|
else \
|
2018-09-19 13:36:15 +02:00
|
|
|
echo >&2 "*"; \
|
|
|
|
echo >&2 "* Could not find Qt via pkg-config."; \
|
|
|
|
echo >&2 "* Please install either Qt 4.8 or 5.x. and make sure it's in PKG_CONFIG_PATH"; \
|
|
|
|
echo >&2 "*"; \
|
|
|
|
exit 1; \
|
2010-08-21 15:59:10 +02:00
|
|
|
fi; \
|
|
|
|
echo "KC_QT_CFLAGS=$$cflags" > $@; \
|
|
|
|
echo "KC_QT_LIBS=$$libs" >> $@; \
|
|
|
|
echo "KC_QT_MOC=$$moc" >> $@
|
|
|
|
endif
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
ifeq ($(MAKECMDGOALS),gconf)
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
|
|
|
|
-include $(obj)/.tmp_gtkcheck
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# GTK+ needs some extra effort, too...
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/.tmp_gtkcheck:
|
|
|
|
@if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \
|
|
|
|
if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \
|
|
|
|
touch $@; \
|
|
|
|
else \
|
2013-04-04 13:24:24 +02:00
|
|
|
echo >&2 "*"; \
|
|
|
|
echo >&2 "* GTK+ is present but version >= 2.0.0 is required."; \
|
|
|
|
echo >&2 "*"; \
|
2010-08-21 15:59:10 +02:00
|
|
|
false; \
|
|
|
|
fi \
|
|
|
|
else \
|
2013-04-04 13:24:24 +02:00
|
|
|
echo >&2 "*"; \
|
|
|
|
echo >&2 "* Unable to find the GTK+ installation. Please make sure that"; \
|
|
|
|
echo >&2 "* the GTK+ 2.0 development package is correctly installed..."; \
|
|
|
|
echo >&2 "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
|
|
|
|
echo >&2 "*"; \
|
2010-08-21 15:59:10 +02:00
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
endif
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
$(obj)/zconf.tab.o: $(obj)/zconf.lex.c
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2013-04-04 13:24:24 +02:00
|
|
|
$(obj)/qconf.o: $(obj)/qconf.moc
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2013-04-04 13:24:24 +02:00
|
|
|
$(obj)/%.moc: $(src)/%.h $(obj)/.tmp_qtcheck
|
2010-08-21 15:59:10 +02:00
|
|
|
$(KC_QT_MOC) -i $< -o $@
|
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# Extract gconf menu items for i18n support
|
2010-08-21 15:59:10 +02:00
|
|
|
$(obj)/gconf.glade.h: $(obj)/gconf.glade
|
2012-01-13 12:48:28 +01:00
|
|
|
$(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
|
|
|
|
$(obj)/gconf.glade
|