xref: /linux/scripts/kconfig/Makefile (revision 911a91c39cabcb6adb2a78f4f9777abb4c032b75)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds# ===========================================================================
31da177e4SLinus Torvalds# Kernel configuration targets
41da177e4SLinus Torvalds# These targets are used from top-level makefile
51da177e4SLinus Torvalds
6*911a91c3SMasahiro YamadaPHONY += xconfig gconfig menuconfig config syncconfig update-po-config \
7281c9dadSSteven Rostedt	localmodconfig localyesconfig
81da177e4SLinus Torvalds
961bee204SAl Viroifdef KBUILD_KCONFIG
1061bee204SAl ViroKconfig := $(KBUILD_KCONFIG)
1161bee204SAl Viroelse
12838a2e55SArnaud LacombeKconfig := Kconfig
1361bee204SAl Viroendif
14e703f75dSSam Ravnborg
150a1f00a1SMichal Marekifeq ($(quiet),silent_)
160a1f00a1SMichal Mareksilent := -s
170a1f00a1SMichal Marekendif
180a1f00a1SMichal Marek
19c2838e6eSYann E. MORIN# We need this, in case the user has it in its environment
20c2838e6eSYann E. MORINunexport CONFIG_
21c2838e6eSYann E. MORIN
221da177e4SLinus Torvaldsxconfig: $(obj)/qconf
230a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
241da177e4SLinus Torvalds
251da177e4SLinus Torvaldsgconfig: $(obj)/gconf
260a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
271da177e4SLinus Torvalds
281da177e4SLinus Torvaldsmenuconfig: $(obj)/mconf
290a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
301da177e4SLinus Torvalds
311da177e4SLinus Torvaldsconfig: $(obj)/conf
320a1f00a1SMichal Marek	$< $(silent) --oldaskconfig $(Kconfig)
331da177e4SLinus Torvalds
34692d97c3Snir.tzachar@gmail.comnconfig: $(obj)/nconf
350a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
36692d97c3Snir.tzachar@gmail.com
37cedd55d4SMarc Herbert# This has become an internal implementation detail and is now deprecated
38cedd55d4SMarc Herbert# for external use.
39*911a91c3SMasahiro Yamadasyncconfig: $(obj)/conf
409815594aSMasahiro Yamada	$(Q)mkdir -p include/config include/generated
41d3fc425eSNicolas Pitre	$(Q)test -e include/generated/autoksyms.h || \
42d3fc425eSNicolas Pitre	    touch   include/generated/autoksyms.h
430a1f00a1SMichal Marek	$< $(silent) --$@ $(Kconfig)
441da177e4SLinus Torvalds
4550bce3e8SArnaud Lacombelocalyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
469815594aSMasahiro Yamada	$(Q)mkdir -p include/config include/generated
4722d550aeSArnaud Lacombe	$(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config
48a7c02602SSteven Rostedt	$(Q)if [ -f .config ]; then 					\
49a7c02602SSteven Rostedt			cmp -s .tmp.config .config ||			\
5003fa25daSSteven Rostedt			(mv -f .config .config.old.1;			\
5103fa25daSSteven Rostedt			 mv -f .tmp.config .config;			\
5281d2bc22SMasahiro Yamada			 $(obj)/conf $(silent) --oldconfig $(Kconfig);	\
53a7c02602SSteven Rostedt			 mv -f .config.old.1 .config.old)		\
54a7c02602SSteven Rostedt	else								\
55a7c02602SSteven Rostedt			mv -f .tmp.config .config;			\
5681d2bc22SMasahiro Yamada			$(obj)/conf $(silent) --oldconfig $(Kconfig);	\
57a7c02602SSteven Rostedt	fi
5803fa25daSSteven Rostedt	$(Q)rm -f .tmp.config
5903fa25daSSteven Rostedt
601020026fSEGRY Gabor# Create new linux.pot file
61b70e325cSSam Ravnborg# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
6246d26319SEGRY Gaborupdate-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
630a1f00a1SMichal Marek	$(Q)$(kecho) "  GEN     config.pot"
641020026fSEGRY Gabor	$(Q)xgettext --default-domain=linux                         \
653b9fa093SArnaldo Carvalho de Melo	    --add-comments --keyword=_ --keyword=N_                 \
66b70e325cSSam Ravnborg	    --from-code=UTF-8                                       \
67a24a1b8eSPeter Foley	    --files-from=$(srctree)/scripts/kconfig/POTFILES.in     \
68a24a1b8eSPeter Foley	    --directory=$(srctree) --directory=$(objtree)           \
69b70e325cSSam Ravnborg	    --output $(obj)/config.pot
70b70e325cSSam Ravnborg	$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
71fa0ad657SPaul Bolle	$(Q)(for i in `ls $(srctree)/arch/*/Kconfig      \
72fa0ad657SPaul Bolle	    $(srctree)/arch/*/um/Kconfig`;               \
73720d6c29SEgry Gabor	    do                                           \
740a1f00a1SMichal Marek		$(kecho) "  GEN     $$i";                    \
754217516eSSam Ravnborg		$(obj)/kxgettext $$i                     \
761020026fSEGRY Gabor		     >> $(obj)/config.pot;               \
771020026fSEGRY Gabor	    done )
780a1f00a1SMichal Marek	$(Q)$(kecho) "  GEN     linux.pot"
791020026fSEGRY Gabor	$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
80b70e325cSSam Ravnborg	    --output $(obj)/linux.pot
81b70e325cSSam Ravnborg	$(Q)rm -f $(obj)/config.pot
823b9fa093SArnaldo Carvalho de Melo
831cba0c30SMichal Marek# These targets map 1:1 to the commandline options of 'conf'
841cba0c30SMichal Mareksimple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
851cba0c30SMichal Marek	alldefconfig randconfig listnewconfig olddefconfig
861cba0c30SMichal MarekPHONY += $(simple-targets)
871da177e4SLinus Torvalds
881cba0c30SMichal Marek$(simple-targets): $(obj)/conf
890a1f00a1SMichal Marek	$< $(silent) --$@ $(Kconfig)
901da177e4SLinus Torvalds
91*911a91c3SMasahiro YamadaPHONY += oldnoconfig silentoldconfig savedefconfig defconfig
921da177e4SLinus Torvalds
93fb16d891SAdam Lee# oldnoconfig is an alias of olddefconfig, because people already are dependent
94fb16d891SAdam Lee# on its behavior (sets new symbols to their default value but not 'n') with the
95fb16d891SAdam Lee# counter-intuitive name.
961cba0c30SMichal Marekoldnoconfig: olddefconfig
97312ee687SMasahiro Yamada	@echo "  WARNING: \"oldnoconfig\" target will be removed after Linux 4.19"
98312ee687SMasahiro Yamada	@echo "            Please use \"olddefconfig\" instead, which is an alias."
99fb16d891SAdam Lee
100*911a91c3SMasahiro Yamada# We do not expect manual invokcation of "silentoldcofig" (or "syncconfig").
101*911a91c3SMasahiro Yamadasilentoldconfig: syncconfig
102*911a91c3SMasahiro Yamada	@echo "  WARNING: \"silentoldconfig\" has been renamed to \"syncconfig\""
103*911a91c3SMasahiro Yamada	@echo "            and is now an internal implementation detail."
104*911a91c3SMasahiro Yamada	@echo "            What you want is probably \"oldconfig\"."
105*911a91c3SMasahiro Yamada	@echo "            \"silentoldconfig\" will be removed after Linux 4.19"
106*911a91c3SMasahiro Yamada
1077cf3d73bSSam Ravnborgsavedefconfig: $(obj)/conf
1080a1f00a1SMichal Marek	$< $(silent) --$@=defconfig $(Kconfig)
1097cf3d73bSSam Ravnborg
1101da177e4SLinus Torvaldsdefconfig: $(obj)/conf
1111da177e4SLinus Torvaldsifeq ($(KBUILD_DEFCONFIG),)
1120a1f00a1SMichal Marek	$< $(silent) --defconfig $(Kconfig)
11342f9d3c6SJan Beulichelse
11442f9d3c6SJan Beulichifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
1150a1f00a1SMichal Marek	@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
1160a1f00a1SMichal Marek	$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
117d2036f30SMichael Ellermanelse
118d2036f30SMichael Ellerman	@$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
119d2036f30SMichael Ellerman	$(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
1201da177e4SLinus Torvaldsendif
12142f9d3c6SJan Beulichendif
1221da177e4SLinus Torvalds
1231da177e4SLinus Torvalds%_defconfig: $(obj)/conf
1240a1f00a1SMichal Marek	$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
1251da177e4SLinus Torvalds
12663a91033SMasahiro Yamadaconfigfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
1273aaefce1SJosh Triplett
12863a91033SMasahiro Yamada%.config: $(obj)/conf
12963a91033SMasahiro Yamada	$(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
13063a91033SMasahiro Yamada	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
131de461993SMasahiro Yamada	+$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig
1323aaefce1SJosh Triplett
1333aaefce1SJosh TriplettPHONY += kvmconfig
13463a91033SMasahiro Yamadakvmconfig: kvm_guest.config
13563a91033SMasahiro Yamada	@:
1363aaefce1SJosh Triplett
1376c668505SLuis R. RodriguezPHONY += xenconfig
1386c668505SLuis R. Rodriguezxenconfig: xen.config
1396c668505SLuis R. Rodriguez	@:
1406c668505SLuis R. Rodriguez
1410da1d4a0SJosh TriplettPHONY += tinyconfig
14263a91033SMasahiro Yamadatinyconfig:
14363a91033SMasahiro Yamada	$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
1440da1d4a0SJosh Triplett
1451da177e4SLinus Torvalds# Help text used by make help
1461da177e4SLinus Torvaldshelp:
1471da177e4SLinus Torvalds	@echo  '  config	  - Update current config utilising a line-oriented program'
148fa75a727SGeert Uytterhoeven	@echo  '  nconfig         - Update current config utilising a ncurses menu based'
149fa75a727SGeert Uytterhoeven	@echo  '                    program'
1501da177e4SLinus Torvalds	@echo  '  menuconfig	  - Update current config utilising a menu based program'
151092373c2SDiego Viola	@echo  '  xconfig	  - Update current config utilising a Qt based front-end'
15239c3f1baSDiego Viola	@echo  '  gconfig	  - Update current config utilising a GTK+ based front-end'
1531da177e4SLinus Torvalds	@echo  '  oldconfig	  - Update current config utilising a provided .config as base'
15403fa25daSSteven Rostedt	@echo  '  localmodconfig  - Update current config disabling modules not loaded'
155281c9dadSSteven Rostedt	@echo  '  localyesconfig  - Update current config converting local mods to core'
1560748cb3eSSam Ravnborg	@echo  '  defconfig	  - New config with default from ARCH supplied defconfig'
1577cf3d73bSSam Ravnborg	@echo  '  savedefconfig   - Save current config as ./defconfig (minimal config)'
158e11f0496SJesper Juhl	@echo  '  allnoconfig	  - New config where all options are answered with no'
1590748cb3eSSam Ravnborg	@echo  '  allyesconfig	  - New config where all options are accepted with yes'
1600748cb3eSSam Ravnborg	@echo  '  allmodconfig	  - New config selecting modules when possible'
1610748cb3eSSam Ravnborg	@echo  '  alldefconfig    - New config with all symbols set to default'
1620748cb3eSSam Ravnborg	@echo  '  randconfig	  - New config with random answer to all options'
163861b4ea4SSam Ravnborg	@echo  '  listnewconfig   - List new options'
164cedd55d4SMarc Herbert	@echo  '  olddefconfig	  - Same as oldconfig but sets new symbols to their'
165cedd55d4SMarc Herbert	@echo  '                    default value without prompting'
1669bcd776dSLuis R. Rodriguez	@echo  '  kvmconfig	  - Enable additional options for kvm guest kernel support'
1676c668505SLuis R. Rodriguez	@echo  '  xenconfig       - Enable additional options for xen dom0 and guest kernel support'
1680da1d4a0SJosh Triplett	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
1691da177e4SLinus Torvalds
1702982de69SSam Ravnborg# lxdialog stuff
1712982de69SSam Ravnborgcheck-lxdialog  := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
1722982de69SSam Ravnborg
173e9e40e14SRob Landley# Use recursively expanded variables so we do not call gcc unless
1742982de69SSam Ravnborg# we really need to do so. (Do not call gcc as part of make mrproper)
1759ba95682SArnaud LacombeHOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
1769ba95682SArnaud Lacombe                    -DLOCALE
1772982de69SSam Ravnborg
1781da177e4SLinus Torvalds# ===========================================================================
1791da177e4SLinus Torvalds# Shared Makefile for the various kconfig executables:
1801da177e4SLinus Torvalds# conf:	  Used for defconfig, oldconfig and related targets
181692d97c3Snir.tzachar@gmail.com# nconf:  Used for the nconfig target.
182692d97c3Snir.tzachar@gmail.com#         Utilizes ncurses
1836f26e5e4SMarkus Heidelberg# mconf:  Used for the menuconfig target
1841da177e4SLinus Torvalds#         Utilizes the lxdialog package
1851da177e4SLinus Torvalds# qconf:  Used for the xconfig target
186092373c2SDiego Viola#         Based on Qt which needs to be installed to compile it
1871da177e4SLinus Torvalds# gconf:  Used for the gconfig target
18839c3f1baSDiego Viola#         Based on GTK+ which needs to be installed to compile it
1891da177e4SLinus Torvalds# object files used by all kconfig flavours
1901da177e4SLinus Torvalds
1912982de69SSam Ravnborglxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
1922982de69SSam Ravnborglxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
1932982de69SSam Ravnborg
1941da177e4SLinus Torvaldsconf-objs	:= conf.o  zconf.tab.o
1952982de69SSam Ravnborgmconf-objs     := mconf.o zconf.tab.o $(lxdialog)
196692d97c3Snir.tzachar@gmail.comnconf-objs     := nconf.o zconf.tab.o nconf.gui.o
1973b9fa093SArnaldo Carvalho de Melokxgettext-objs	:= kxgettext.o zconf.tab.o
198f1943049SPeter Foleyqconf-cxxobjs	:= qconf.o
1995a6f8d2bSArnaud Lacombeqconf-objs	:= zconf.tab.o
2005a6f8d2bSArnaud Lacombegconf-objs	:= gconf.o zconf.tab.o
2011da177e4SLinus Torvalds
202022af62dSMasahiro Yamadahostprogs-y := conf nconf mconf kxgettext qconf gconf
2031da177e4SLinus Torvalds
20429c83306SMasahiro Yamadatargets		+= zconf.tab.c zconf.lex.c
2055a6f8d2bSArnaud Lacombeclean-files	:= qconf.moc .tmp_qtcheck .tmp_gtkcheck
206bb3290d9SLinus Torvaldsclean-files	+= zconf.tab.c zconf.lex.c gconf.glade.h
2071020026fSEGRY Gaborclean-files     += config.pot linux.pot
2081da177e4SLinus Torvalds
2096e588f6dSSam Ravnborg# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
2106e588f6dSSam RavnborgPHONY += $(obj)/dochecklxdialog
211ff85a1a8SBorislav Petkov$(addprefix $(obj)/, mconf.o $(lxdialog)): $(obj)/dochecklxdialog
2126e588f6dSSam Ravnborg$(obj)/dochecklxdialog:
2137080e47bSArnaud Lacombe	$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
2146e588f6dSSam Ravnborg
2156e588f6dSSam Ravnborgalways := dochecklxdialog
2166e588f6dSSam Ravnborg
217aa1e5ef5SSam Ravnborg# Add environment specific flags
218aa1e5ef5SSam RavnborgHOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
219d0fd0428SYaakov SelkowitzHOST_EXTRACXXFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCXX) $(HOSTCXXFLAGS))
22070a6a0cbSYuri Vasilevski
2211da177e4SLinus Torvalds# generated files seem to need this to find local include files
2222f76b358SArnaud LacombeHOSTCFLAGS_zconf.lex.o	:= -I$(src)
2231da177e4SLinus TorvaldsHOSTCFLAGS_zconf.tab.o	:= -I$(src)
2241da177e4SLinus Torvalds
2255a6f8d2bSArnaud LacombeHOSTLOADLIBES_qconf	= $(KC_QT_LIBS)
2265a6f8d2bSArnaud LacombeHOSTCXXFLAGS_qconf.o	= $(KC_QT_CFLAGS)
2271da177e4SLinus Torvalds
2285a6f8d2bSArnaud LacombeHOSTLOADLIBES_gconf	= `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
22937193147SAdrian BunkHOSTCFLAGS_gconf.o	= `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
2301ea3ad4eSArnaud Lacombe                          -Wno-missing-prototypes
2311da177e4SLinus Torvalds
2327080e47bSArnaud LacombeHOSTLOADLIBES_mconf   = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
2337080e47bSArnaud Lacombe
234544e7e54SJustin LecherHOSTLOADLIBES_nconf	= $(shell \
2357285996aSBrian Norris				pkg-config --libs menuw panelw ncursesw 2>/dev/null \
2367285996aSBrian Norris				|| pkg-config --libs menu panel ncurses 2>/dev/null \
237544e7e54SJustin Lecher				|| echo "-lmenu -lpanel -lncurses"  )
2381da177e4SLinus Torvalds$(obj)/qconf.o: $(obj)/.tmp_qtcheck
2391da177e4SLinus Torvalds
240022af62dSMasahiro Yamadaifeq ($(MAKECMDGOALS),xconfig)
241b3a5225fSRoman Zippel$(obj)/.tmp_qtcheck: $(src)/Makefile
2421da177e4SLinus Torvalds-include $(obj)/.tmp_qtcheck
2431da177e4SLinus Torvalds
244092373c2SDiego Viola# Qt needs some extra effort...
2451da177e4SLinus Torvalds$(obj)/.tmp_qtcheck:
246d1b0dc90SThiago Macieira	@set -e; $(kecho) "  CHECK   qt"; \
247588446a8SThiago Macieira	if pkg-config --exists Qt5Core; then \
248588446a8SThiago Macieira	    cflags="-std=c++11 -fPIC `pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets`"; \
249588446a8SThiago Macieira	    libs=`pkg-config --libs Qt5Core Qt5Gui Qt5Widgets`; \
250588446a8SThiago Macieira	    moc=`pkg-config --variable=host_bins Qt5Core`/moc; \
251588446a8SThiago Macieira	elif pkg-config --exists QtCore; then \
252588446a8SThiago Macieira	    cflags=`pkg-config --cflags QtCore QtGui`; \
253588446a8SThiago Macieira	    libs=`pkg-config --libs QtCore QtGui`; \
254588446a8SThiago Macieira	    moc=`pkg-config --variable=moc_location QtCore`; \
255b3a5225fSRoman Zippel	else \
2565b580fa6SMichal Marek	    echo >&2 "*"; \
257588446a8SThiago Macieira	    echo >&2 "* Could not find Qt via pkg-config."; \
258588446a8SThiago Macieira	    echo >&2 "* Please install either Qt 4.8 or 5.x. and make sure it's in PKG_CONFIG_PATH"; \
2595b580fa6SMichal Marek	    echo >&2 "*"; \
260d1b0dc90SThiago Macieira	    exit 1; \
261133c5f7cSAlexander Stein	fi; \
262b3a5225fSRoman Zippel	echo "KC_QT_CFLAGS=$$cflags" > $@; \
263b3a5225fSRoman Zippel	echo "KC_QT_LIBS=$$libs" >> $@; \
264b3a5225fSRoman Zippel	echo "KC_QT_MOC=$$moc" >> $@
2651da177e4SLinus Torvaldsendif
2661da177e4SLinus Torvalds
2671da177e4SLinus Torvalds$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
2681da177e4SLinus Torvalds
269022af62dSMasahiro Yamadaifeq ($(MAKECMDGOALS),gconfig)
2701da177e4SLinus Torvalds-include $(obj)/.tmp_gtkcheck
2711da177e4SLinus Torvalds
27239c3f1baSDiego Viola# GTK+ needs some extra effort, too...
2731da177e4SLinus Torvalds$(obj)/.tmp_gtkcheck:
27437193147SAdrian Bunk	@if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then		\
27537193147SAdrian Bunk		if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then			\
2761da177e4SLinus Torvalds			touch $@;								\
2771da177e4SLinus Torvalds		else									\
2785b580fa6SMichal Marek			echo >&2 "*"; 							\
2795b580fa6SMichal Marek			echo >&2 "* GTK+ is present but version >= 2.0.0 is required.";	\
2805b580fa6SMichal Marek			echo >&2 "*";							\
2811da177e4SLinus Torvalds			false;								\
2821da177e4SLinus Torvalds		fi									\
2831da177e4SLinus Torvalds	else										\
2845b580fa6SMichal Marek		echo >&2 "*"; 								\
2855b580fa6SMichal Marek		echo >&2 "* Unable to find the GTK+ installation. Please make sure that"; 	\
2865b580fa6SMichal Marek		echo >&2 "* the GTK+ 2.0 development package is correctly installed..."; 	\
2875b580fa6SMichal Marek		echo >&2 "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; 		\
2885b580fa6SMichal Marek		echo >&2 "*"; 								\
2891da177e4SLinus Torvalds		false;									\
2901da177e4SLinus Torvalds	fi
2911da177e4SLinus Torvaldsendif
2921da177e4SLinus Torvalds
293bb3290d9SLinus Torvalds$(obj)/zconf.tab.o: $(obj)/zconf.lex.c
2941da177e4SLinus Torvalds
2955a6f8d2bSArnaud Lacombe$(obj)/qconf.o: $(obj)/qconf.moc
2961da177e4SLinus Torvalds
297ebca026aSYaakov Selkowitzquiet_cmd_moc = MOC     $@
298ebca026aSYaakov Selkowitz      cmd_moc = $(KC_QT_MOC) -i $< -o $@
299ebca026aSYaakov Selkowitz
300ebca026aSYaakov Selkowitz$(obj)/%.moc: $(src)/%.h $(obj)/.tmp_qtcheck
301ebca026aSYaakov Selkowitz	$(call cmd,moc)
3021da177e4SLinus Torvalds
30339c3f1baSDiego Viola# Extract gconf menu items for i18n support
30446d26319SEGRY Gabor$(obj)/gconf.glade.h: $(obj)/gconf.glade
3052d80eb0fSPeter Foley	$(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
306a24a1b8eSPeter Foley	$(obj)/gconf.glade
307