xref: /linux/scripts/kconfig/Makefile (revision 1cba0c305758c3c1786ecaceb03e142c95a4edc9)
11da177e4SLinus Torvalds# ===========================================================================
21da177e4SLinus Torvalds# Kernel configuration targets
31da177e4SLinus Torvalds# These targets are used from top-level makefile
41da177e4SLinus Torvalds
5*1cba0c30SMichal MarekPHONY += xconfig gconfig menuconfig config silentoldconfig update-po-config \
6281c9dadSSteven Rostedt	localmodconfig localyesconfig
71da177e4SLinus Torvalds
861bee204SAl Viroifdef KBUILD_KCONFIG
961bee204SAl ViroKconfig := $(KBUILD_KCONFIG)
1061bee204SAl Viroelse
11838a2e55SArnaud LacombeKconfig := Kconfig
1261bee204SAl Viroendif
13e703f75dSSam Ravnborg
14c2838e6eSYann E. MORIN# We need this, in case the user has it in its environment
15c2838e6eSYann E. MORINunexport CONFIG_
16c2838e6eSYann E. MORIN
171da177e4SLinus Torvaldsxconfig: $(obj)/qconf
18e703f75dSSam Ravnborg	$< $(Kconfig)
191da177e4SLinus Torvalds
201da177e4SLinus Torvaldsgconfig: $(obj)/gconf
21e703f75dSSam Ravnborg	$< $(Kconfig)
221da177e4SLinus Torvalds
231da177e4SLinus Torvaldsmenuconfig: $(obj)/mconf
24e703f75dSSam Ravnborg	$< $(Kconfig)
251da177e4SLinus Torvalds
261da177e4SLinus Torvaldsconfig: $(obj)/conf
274062f1a4SSam Ravnborg	$< --oldaskconfig $(Kconfig)
281da177e4SLinus Torvalds
29692d97c3Snir.tzachar@gmail.comnconfig: $(obj)/nconf
30692d97c3Snir.tzachar@gmail.com	$< $(Kconfig)
31692d97c3Snir.tzachar@gmail.com
321da177e4SLinus Torvaldssilentoldconfig: $(obj)/conf
339815594aSMasahiro Yamada	$(Q)mkdir -p include/config include/generated
344062f1a4SSam Ravnborg	$< --$@ $(Kconfig)
351da177e4SLinus Torvalds
3650bce3e8SArnaud Lacombelocalyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
379815594aSMasahiro Yamada	$(Q)mkdir -p include/config include/generated
3822d550aeSArnaud Lacombe	$(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config
39a7c02602SSteven Rostedt	$(Q)if [ -f .config ]; then 					\
40a7c02602SSteven Rostedt			cmp -s .tmp.config .config ||			\
4103fa25daSSteven Rostedt			(mv -f .config .config.old.1;			\
4203fa25daSSteven Rostedt			 mv -f .tmp.config .config;			\
434062f1a4SSam Ravnborg			 $(obj)/conf --silentoldconfig $(Kconfig);	\
44a7c02602SSteven Rostedt			 mv -f .config.old.1 .config.old)		\
45a7c02602SSteven Rostedt	else								\
46a7c02602SSteven Rostedt			mv -f .tmp.config .config;			\
474062f1a4SSam Ravnborg			$(obj)/conf --silentoldconfig $(Kconfig);	\
48a7c02602SSteven Rostedt	fi
4903fa25daSSteven Rostedt	$(Q)rm -f .tmp.config
5003fa25daSSteven Rostedt
511020026fSEGRY Gabor# Create new linux.pot file
52b70e325cSSam Ravnborg# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
5346d26319SEGRY Gaborupdate-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
54e2aef4d3SPeter Foley	$(Q)echo "  GEN     config.pot"
551020026fSEGRY Gabor	$(Q)xgettext --default-domain=linux                         \
563b9fa093SArnaldo Carvalho de Melo	    --add-comments --keyword=_ --keyword=N_                 \
57b70e325cSSam Ravnborg	    --from-code=UTF-8                                       \
58a24a1b8eSPeter Foley	    --files-from=$(srctree)/scripts/kconfig/POTFILES.in     \
59a24a1b8eSPeter Foley	    --directory=$(srctree) --directory=$(objtree)           \
60b70e325cSSam Ravnborg	    --output $(obj)/config.pot
61b70e325cSSam Ravnborg	$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
62fa0ad657SPaul Bolle	$(Q)(for i in `ls $(srctree)/arch/*/Kconfig      \
63fa0ad657SPaul Bolle	    $(srctree)/arch/*/um/Kconfig`;               \
64720d6c29SEgry Gabor	    do                                           \
651020026fSEGRY Gabor		echo "  GEN     $$i";                    \
664217516eSSam Ravnborg		$(obj)/kxgettext $$i                     \
671020026fSEGRY Gabor		     >> $(obj)/config.pot;               \
681020026fSEGRY Gabor	    done )
69e2aef4d3SPeter Foley	$(Q)echo "  GEN     linux.pot"
701020026fSEGRY Gabor	$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
71b70e325cSSam Ravnborg	    --output $(obj)/linux.pot
72b70e325cSSam Ravnborg	$(Q)rm -f $(obj)/config.pot
733b9fa093SArnaldo Carvalho de Melo
74*1cba0c30SMichal Marek# These targets map 1:1 to the commandline options of 'conf'
75*1cba0c30SMichal Mareksimple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
76*1cba0c30SMichal Marek	alldefconfig randconfig listnewconfig olddefconfig
77*1cba0c30SMichal MarekPHONY += $(simple-targets)
781da177e4SLinus Torvalds
79*1cba0c30SMichal Marek$(simple-targets): $(obj)/conf
804062f1a4SSam Ravnborg	$< --$@ $(Kconfig)
811da177e4SLinus Torvalds
82*1cba0c30SMichal MarekPHONY += oldnoconfig savedefconfig defconfig
831da177e4SLinus Torvalds
84fb16d891SAdam Lee# oldnoconfig is an alias of olddefconfig, because people already are dependent
85fb16d891SAdam Lee# on its behavior(sets new symbols to their default value but not 'n') with the
86fb16d891SAdam Lee# counter-intuitive name.
87*1cba0c30SMichal Marekoldnoconfig: olddefconfig
88fb16d891SAdam Lee
897cf3d73bSSam Ravnborgsavedefconfig: $(obj)/conf
907cf3d73bSSam Ravnborg	$< --$@=defconfig $(Kconfig)
917cf3d73bSSam Ravnborg
921da177e4SLinus Torvaldsdefconfig: $(obj)/conf
931da177e4SLinus Torvaldsifeq ($(KBUILD_DEFCONFIG),)
944062f1a4SSam Ravnborg	$< --defconfig $(Kconfig)
951da177e4SLinus Torvaldselse
962266cfd5SSam Ravnborg	@echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
974062f1a4SSam Ravnborg	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
981da177e4SLinus Torvaldsendif
991da177e4SLinus Torvalds
1001da177e4SLinus Torvalds%_defconfig: $(obj)/conf
1014062f1a4SSam Ravnborg	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
1021da177e4SLinus Torvalds
10363a91033SMasahiro Yamadaconfigfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
1043aaefce1SJosh Triplett
10563a91033SMasahiro Yamada%.config: $(obj)/conf
10663a91033SMasahiro Yamada	$(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
10763a91033SMasahiro Yamada	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
108de461993SMasahiro Yamada	+$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig
1093aaefce1SJosh Triplett
1103aaefce1SJosh TriplettPHONY += kvmconfig
11163a91033SMasahiro Yamadakvmconfig: kvm_guest.config
11263a91033SMasahiro Yamada	@:
1133aaefce1SJosh Triplett
1140da1d4a0SJosh TriplettPHONY += tinyconfig
11563a91033SMasahiro Yamadatinyconfig:
11663a91033SMasahiro Yamada	$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
1170da1d4a0SJosh Triplett
1181da177e4SLinus Torvalds# Help text used by make help
1191da177e4SLinus Torvaldshelp:
1201da177e4SLinus Torvalds	@echo  '  config	  - Update current config utilising a line-oriented program'
121692d97c3Snir.tzachar@gmail.com	@echo  '  nconfig         - Update current config utilising a ncurses menu based program'
1221da177e4SLinus Torvalds	@echo  '  menuconfig	  - Update current config utilising a menu based program'
1231da177e4SLinus Torvalds	@echo  '  xconfig	  - Update current config utilising a QT based front-end'
1241da177e4SLinus Torvalds	@echo  '  gconfig	  - Update current config utilising a GTK based front-end'
1251da177e4SLinus Torvalds	@echo  '  oldconfig	  - Update current config utilising a provided .config as base'
12603fa25daSSteven Rostedt	@echo  '  localmodconfig  - Update current config disabling modules not loaded'
127281c9dadSSteven Rostedt	@echo  '  localyesconfig  - Update current config converting local mods to core'
128590a5857SMarkus Heidelberg	@echo  '  silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
1290748cb3eSSam Ravnborg	@echo  '  defconfig	  - New config with default from ARCH supplied defconfig'
1307cf3d73bSSam Ravnborg	@echo  '  savedefconfig   - Save current config as ./defconfig (minimal config)'
131e11f0496SJesper Juhl	@echo  '  allnoconfig	  - New config where all options are answered with no'
1320748cb3eSSam Ravnborg	@echo  '  allyesconfig	  - New config where all options are accepted with yes'
1330748cb3eSSam Ravnborg	@echo  '  allmodconfig	  - New config selecting modules when possible'
1340748cb3eSSam Ravnborg	@echo  '  alldefconfig    - New config with all symbols set to default'
1350748cb3eSSam Ravnborg	@echo  '  randconfig	  - New config with random answer to all options'
136861b4ea4SSam Ravnborg	@echo  '  listnewconfig   - List new options'
137fb16d891SAdam Lee	@echo  '  olddefconfig	  - Same as silentoldconfig but sets new symbols to their default value'
1383aaefce1SJosh Triplett	@echo  '  kvmconfig	  - Enable additional options for guest kernel support'
1390da1d4a0SJosh Triplett	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
1401da177e4SLinus Torvalds
1412982de69SSam Ravnborg# lxdialog stuff
1422982de69SSam Ravnborgcheck-lxdialog  := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
1432982de69SSam Ravnborg
144e9e40e14SRob Landley# Use recursively expanded variables so we do not call gcc unless
1452982de69SSam Ravnborg# we really need to do so. (Do not call gcc as part of make mrproper)
1469ba95682SArnaud LacombeHOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
1479ba95682SArnaud Lacombe                    -DLOCALE
1482982de69SSam Ravnborg
1491da177e4SLinus Torvalds# ===========================================================================
1501da177e4SLinus Torvalds# Shared Makefile for the various kconfig executables:
1511da177e4SLinus Torvalds# conf:	  Used for defconfig, oldconfig and related targets
152692d97c3Snir.tzachar@gmail.com# nconf:  Used for the nconfig target.
153692d97c3Snir.tzachar@gmail.com#         Utilizes ncurses
1546f26e5e4SMarkus Heidelberg# mconf:  Used for the menuconfig target
1551da177e4SLinus Torvalds#         Utilizes the lxdialog package
1561da177e4SLinus Torvalds# qconf:  Used for the xconfig target
1571da177e4SLinus Torvalds#         Based on QT which needs to be installed to compile it
1581da177e4SLinus Torvalds# gconf:  Used for the gconfig target
1591da177e4SLinus Torvalds#         Based on GTK which needs to be installed to compile it
1601da177e4SLinus Torvalds# object files used by all kconfig flavours
1611da177e4SLinus Torvalds
1622982de69SSam Ravnborglxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
1632982de69SSam Ravnborglxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
1642982de69SSam Ravnborg
1651da177e4SLinus Torvaldsconf-objs	:= conf.o  zconf.tab.o
1662982de69SSam Ravnborgmconf-objs     := mconf.o zconf.tab.o $(lxdialog)
167692d97c3Snir.tzachar@gmail.comnconf-objs     := nconf.o zconf.tab.o nconf.gui.o
1683b9fa093SArnaldo Carvalho de Melokxgettext-objs	:= kxgettext.o zconf.tab.o
169f1943049SPeter Foleyqconf-cxxobjs	:= qconf.o
1705a6f8d2bSArnaud Lacombeqconf-objs	:= zconf.tab.o
1715a6f8d2bSArnaud Lacombegconf-objs	:= gconf.o zconf.tab.o
1721da177e4SLinus Torvalds
173022af62dSMasahiro Yamadahostprogs-y := conf nconf mconf kxgettext qconf gconf
1741da177e4SLinus Torvalds
1755a6f8d2bSArnaud Lacombeclean-files	:= qconf.moc .tmp_qtcheck .tmp_gtkcheck
1762f76b358SArnaud Lacombeclean-files	+= zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
1771020026fSEGRY Gaborclean-files     += config.pot linux.pot
1781da177e4SLinus Torvalds
1796e588f6dSSam Ravnborg# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
1806e588f6dSSam RavnborgPHONY += $(obj)/dochecklxdialog
1816e588f6dSSam Ravnborg$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
1826e588f6dSSam Ravnborg$(obj)/dochecklxdialog:
1837080e47bSArnaud Lacombe	$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
1846e588f6dSSam Ravnborg
1856e588f6dSSam Ravnborgalways := dochecklxdialog
1866e588f6dSSam Ravnborg
187aa1e5ef5SSam Ravnborg# Add environment specific flags
188aa1e5ef5SSam RavnborgHOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
18970a6a0cbSYuri Vasilevski
1901da177e4SLinus Torvalds# generated files seem to need this to find local include files
1912f76b358SArnaud LacombeHOSTCFLAGS_zconf.lex.o	:= -I$(src)
1921da177e4SLinus TorvaldsHOSTCFLAGS_zconf.tab.o	:= -I$(src)
1931da177e4SLinus Torvalds
194378dbb2cSArnaud LacombeLEX_PREFIX_zconf	:= zconf
195378dbb2cSArnaud LacombeYACC_PREFIX_zconf	:= zconf
196378dbb2cSArnaud Lacombe
1975a6f8d2bSArnaud LacombeHOSTLOADLIBES_qconf	= $(KC_QT_LIBS)
1985a6f8d2bSArnaud LacombeHOSTCXXFLAGS_qconf.o	= $(KC_QT_CFLAGS)
1991da177e4SLinus Torvalds
2005a6f8d2bSArnaud LacombeHOSTLOADLIBES_gconf	= `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
20137193147SAdrian BunkHOSTCFLAGS_gconf.o	= `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
2021ea3ad4eSArnaud Lacombe                          -Wno-missing-prototypes
2031da177e4SLinus Torvalds
2047080e47bSArnaud LacombeHOSTLOADLIBES_mconf   = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
2057080e47bSArnaud Lacombe
206544e7e54SJustin LecherHOSTLOADLIBES_nconf	= $(shell \
2077285996aSBrian Norris				pkg-config --libs menuw panelw ncursesw 2>/dev/null \
2087285996aSBrian Norris				|| pkg-config --libs menu panel ncurses 2>/dev/null \
209544e7e54SJustin Lecher				|| echo "-lmenu -lpanel -lncurses"  )
2101da177e4SLinus Torvalds$(obj)/qconf.o: $(obj)/.tmp_qtcheck
2111da177e4SLinus Torvalds
212022af62dSMasahiro Yamadaifeq ($(MAKECMDGOALS),xconfig)
213b3a5225fSRoman Zippel$(obj)/.tmp_qtcheck: $(src)/Makefile
2141da177e4SLinus Torvalds-include $(obj)/.tmp_qtcheck
2151da177e4SLinus Torvalds
2161da177e4SLinus Torvalds# QT needs some extra effort...
2171da177e4SLinus Torvalds$(obj)/.tmp_qtcheck:
218b3a5225fSRoman Zippel	@set -e; echo "  CHECK   qt"; dir=""; pkg=""; \
219133c5f7cSAlexander Stein	if ! pkg-config --exists QtCore 2> /dev/null; then \
220133c5f7cSAlexander Stein	    echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \
221b3a5225fSRoman Zippel	    pkg-config --exists qt 2> /dev/null && pkg=qt; \
222b3a5225fSRoman Zippel	    pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \
223b3a5225fSRoman Zippel	    if [ -n "$$pkg" ]; then \
224b3a5225fSRoman Zippel	      cflags="\$$(shell pkg-config $$pkg --cflags)"; \
225b3a5225fSRoman Zippel	      libs="\$$(shell pkg-config $$pkg --libs)"; \
226b3a5225fSRoman Zippel	      moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \
227b3a5225fSRoman Zippel	      dir="$$(pkg-config $$pkg --variable=prefix)"; \
228b3a5225fSRoman Zippel	    else \
229b3a5225fSRoman Zippel	      for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
230b3a5225fSRoman Zippel	        if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
2311da177e4SLinus Torvalds	      done; \
232b3a5225fSRoman Zippel	      if [ -z "$$dir" ]; then \
2335b580fa6SMichal Marek	        echo >&2 "*"; \
2345b580fa6SMichal Marek	        echo >&2 "* Unable to find any QT installation. Please make sure that"; \
2355b580fa6SMichal Marek	        echo >&2 "* the QT4 or QT3 development package is correctly installed and"; \
2365b580fa6SMichal Marek	        echo >&2 "* either qmake can be found or install pkg-config or set"; \
2375b580fa6SMichal Marek	        echo >&2 "* the QTDIR environment variable to the correct location."; \
2385b580fa6SMichal Marek	        echo >&2 "*"; \
2391da177e4SLinus Torvalds	        false; \
2401da177e4SLinus Torvalds	      fi; \
241b3a5225fSRoman Zippel	      libpath=$$dir/lib; lib=qt; osdir=""; \
2421da177e4SLinus Torvalds	      $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
243b3a5225fSRoman Zippel	        osdir=x$$($(HOSTCXX) -print-multi-os-directory); \
244b3a5225fSRoman Zippel	      test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \
245b3a5225fSRoman Zippel	      test -f $$libpath/libqt-mt.so && lib=qt-mt; \
246b3a5225fSRoman Zippel	      cflags="-I$$dir/include"; \
247b3a5225fSRoman Zippel	      libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \
248b3a5225fSRoman Zippel	      moc="$$dir/bin/moc"; \
249ab919c06SSam Ravnborg	    fi; \
250b3a5225fSRoman Zippel	    if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
2511da177e4SLinus Torvalds	      echo "*"; \
252b3a5225fSRoman Zippel	      echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
2531da177e4SLinus Torvalds	      echo "*"; \
254b3a5225fSRoman Zippel	      moc="/usr/bin/moc"; \
255b3a5225fSRoman Zippel	    fi; \
256133c5f7cSAlexander Stein	else \
257458452f4SMichal Marek	  cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \
258458452f4SMichal Marek	  libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \
25948485949SYaakov Selkowitz	  moc="\$$(shell pkg-config QtCore --variable=moc_location)"; \
26048485949SYaakov Selkowitz	  [ -n "$$moc" ] || moc="\$$(shell pkg-config QtCore --variable=prefix)/bin/moc"; \
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
2721da177e4SLinus Torvalds# 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
2932f76b358SArnaud Lacombe$(obj)/zconf.tab.o: $(obj)/zconf.lex.c $(obj)/zconf.hash.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
30346d26319SEGRY Gabor# 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