xref: /linux/scripts/kconfig/Makefile (revision d2036f30cfe1daa19e63ce75afd56c7ffd39ef3c)
11da177e4SLinus Torvalds# ===========================================================================
21da177e4SLinus Torvalds# Kernel configuration targets
31da177e4SLinus Torvalds# These targets are used from top-level makefile
41da177e4SLinus Torvalds
51cba0c30SMichal 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
140a1f00a1SMichal Marekifeq ($(quiet),silent_)
150a1f00a1SMichal Mareksilent := -s
160a1f00a1SMichal Marekendif
170a1f00a1SMichal Marek
18c2838e6eSYann E. MORIN# We need this, in case the user has it in its environment
19c2838e6eSYann E. MORINunexport CONFIG_
20c2838e6eSYann E. MORIN
211da177e4SLinus Torvaldsxconfig: $(obj)/qconf
220a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
231da177e4SLinus Torvalds
241da177e4SLinus Torvaldsgconfig: $(obj)/gconf
250a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
261da177e4SLinus Torvalds
271da177e4SLinus Torvaldsmenuconfig: $(obj)/mconf
280a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
291da177e4SLinus Torvalds
301da177e4SLinus Torvaldsconfig: $(obj)/conf
310a1f00a1SMichal Marek	$< $(silent) --oldaskconfig $(Kconfig)
321da177e4SLinus Torvalds
33692d97c3Snir.tzachar@gmail.comnconfig: $(obj)/nconf
340a1f00a1SMichal Marek	$< $(silent) $(Kconfig)
35692d97c3Snir.tzachar@gmail.com
361da177e4SLinus Torvaldssilentoldconfig: $(obj)/conf
379815594aSMasahiro Yamada	$(Q)mkdir -p include/config include/generated
380a1f00a1SMichal Marek	$< $(silent) --$@ $(Kconfig)
391da177e4SLinus Torvalds
4050bce3e8SArnaud Lacombelocalyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
419815594aSMasahiro Yamada	$(Q)mkdir -p include/config include/generated
4222d550aeSArnaud Lacombe	$(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config
43a7c02602SSteven Rostedt	$(Q)if [ -f .config ]; then 					\
44a7c02602SSteven Rostedt			cmp -s .tmp.config .config ||			\
4503fa25daSSteven Rostedt			(mv -f .config .config.old.1;			\
4603fa25daSSteven Rostedt			 mv -f .tmp.config .config;			\
470a1f00a1SMichal Marek			 $(obj)/conf $(silent) --silentoldconfig $(Kconfig); \
48a7c02602SSteven Rostedt			 mv -f .config.old.1 .config.old)		\
49a7c02602SSteven Rostedt	else								\
50a7c02602SSteven Rostedt			mv -f .tmp.config .config;			\
510a1f00a1SMichal Marek			$(obj)/conf $(silent) --silentoldconfig $(Kconfig); \
52a7c02602SSteven Rostedt	fi
5303fa25daSSteven Rostedt	$(Q)rm -f .tmp.config
5403fa25daSSteven Rostedt
551020026fSEGRY Gabor# Create new linux.pot file
56b70e325cSSam Ravnborg# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
5746d26319SEGRY Gaborupdate-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
580a1f00a1SMichal Marek	$(Q)$(kecho) "  GEN     config.pot"
591020026fSEGRY Gabor	$(Q)xgettext --default-domain=linux                         \
603b9fa093SArnaldo Carvalho de Melo	    --add-comments --keyword=_ --keyword=N_                 \
61b70e325cSSam Ravnborg	    --from-code=UTF-8                                       \
62a24a1b8eSPeter Foley	    --files-from=$(srctree)/scripts/kconfig/POTFILES.in     \
63a24a1b8eSPeter Foley	    --directory=$(srctree) --directory=$(objtree)           \
64b70e325cSSam Ravnborg	    --output $(obj)/config.pot
65b70e325cSSam Ravnborg	$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
66fa0ad657SPaul Bolle	$(Q)(for i in `ls $(srctree)/arch/*/Kconfig      \
67fa0ad657SPaul Bolle	    $(srctree)/arch/*/um/Kconfig`;               \
68720d6c29SEgry Gabor	    do                                           \
690a1f00a1SMichal Marek		$(kecho) "  GEN     $$i";                    \
704217516eSSam Ravnborg		$(obj)/kxgettext $$i                     \
711020026fSEGRY Gabor		     >> $(obj)/config.pot;               \
721020026fSEGRY Gabor	    done )
730a1f00a1SMichal Marek	$(Q)$(kecho) "  GEN     linux.pot"
741020026fSEGRY Gabor	$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
75b70e325cSSam Ravnborg	    --output $(obj)/linux.pot
76b70e325cSSam Ravnborg	$(Q)rm -f $(obj)/config.pot
773b9fa093SArnaldo Carvalho de Melo
781cba0c30SMichal Marek# These targets map 1:1 to the commandline options of 'conf'
791cba0c30SMichal Mareksimple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
801cba0c30SMichal Marek	alldefconfig randconfig listnewconfig olddefconfig
811cba0c30SMichal MarekPHONY += $(simple-targets)
821da177e4SLinus Torvalds
831cba0c30SMichal Marek$(simple-targets): $(obj)/conf
840a1f00a1SMichal Marek	$< $(silent) --$@ $(Kconfig)
851da177e4SLinus Torvalds
861cba0c30SMichal MarekPHONY += oldnoconfig savedefconfig defconfig
871da177e4SLinus Torvalds
88fb16d891SAdam Lee# oldnoconfig is an alias of olddefconfig, because people already are dependent
89fb16d891SAdam Lee# on its behavior (sets new symbols to their default value but not 'n') with the
90fb16d891SAdam Lee# counter-intuitive name.
911cba0c30SMichal Marekoldnoconfig: olddefconfig
92fb16d891SAdam Lee
937cf3d73bSSam Ravnborgsavedefconfig: $(obj)/conf
940a1f00a1SMichal Marek	$< $(silent) --$@=defconfig $(Kconfig)
957cf3d73bSSam Ravnborg
961da177e4SLinus Torvaldsdefconfig: $(obj)/conf
971da177e4SLinus Torvaldsifeq ($(KBUILD_DEFCONFIG),)
980a1f00a1SMichal Marek	$< $(silent) --defconfig $(Kconfig)
99*d2036f30SMichael Ellermanelse ifneq ($(wildcard arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
1000a1f00a1SMichal Marek	@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
1010a1f00a1SMichal Marek	$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
102*d2036f30SMichael Ellermanelse
103*d2036f30SMichael Ellerman	@$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
104*d2036f30SMichael Ellerman	$(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
1051da177e4SLinus Torvaldsendif
1061da177e4SLinus Torvalds
1071da177e4SLinus Torvalds%_defconfig: $(obj)/conf
1080a1f00a1SMichal Marek	$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
1091da177e4SLinus Torvalds
11063a91033SMasahiro Yamadaconfigfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
1113aaefce1SJosh Triplett
11263a91033SMasahiro Yamada%.config: $(obj)/conf
11363a91033SMasahiro Yamada	$(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
11463a91033SMasahiro Yamada	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
115de461993SMasahiro Yamada	+$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig
1163aaefce1SJosh Triplett
1173aaefce1SJosh TriplettPHONY += kvmconfig
11863a91033SMasahiro Yamadakvmconfig: kvm_guest.config
11963a91033SMasahiro Yamada	@:
1203aaefce1SJosh Triplett
1216c668505SLuis R. RodriguezPHONY += xenconfig
1226c668505SLuis R. Rodriguezxenconfig: xen.config
1236c668505SLuis R. Rodriguez	@:
1246c668505SLuis R. Rodriguez
1250da1d4a0SJosh TriplettPHONY += tinyconfig
12663a91033SMasahiro Yamadatinyconfig:
12763a91033SMasahiro Yamada	$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
1280da1d4a0SJosh Triplett
1291da177e4SLinus Torvalds# Help text used by make help
1301da177e4SLinus Torvaldshelp:
1311da177e4SLinus Torvalds	@echo  '  config	  - Update current config utilising a line-oriented program'
132fa75a727SGeert Uytterhoeven	@echo  '  nconfig         - Update current config utilising a ncurses menu based'
133fa75a727SGeert Uytterhoeven	@echo  '                    program'
1341da177e4SLinus Torvalds	@echo  '  menuconfig	  - Update current config utilising a menu based program'
135092373c2SDiego Viola	@echo  '  xconfig	  - Update current config utilising a Qt based front-end'
13639c3f1baSDiego Viola	@echo  '  gconfig	  - Update current config utilising a GTK+ based front-end'
1371da177e4SLinus Torvalds	@echo  '  oldconfig	  - Update current config utilising a provided .config as base'
13803fa25daSSteven Rostedt	@echo  '  localmodconfig  - Update current config disabling modules not loaded'
139281c9dadSSteven Rostedt	@echo  '  localyesconfig  - Update current config converting local mods to core'
140590a5857SMarkus Heidelberg	@echo  '  silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
1410748cb3eSSam Ravnborg	@echo  '  defconfig	  - New config with default from ARCH supplied defconfig'
1427cf3d73bSSam Ravnborg	@echo  '  savedefconfig   - Save current config as ./defconfig (minimal config)'
143e11f0496SJesper Juhl	@echo  '  allnoconfig	  - New config where all options are answered with no'
1440748cb3eSSam Ravnborg	@echo  '  allyesconfig	  - New config where all options are accepted with yes'
1450748cb3eSSam Ravnborg	@echo  '  allmodconfig	  - New config selecting modules when possible'
1460748cb3eSSam Ravnborg	@echo  '  alldefconfig    - New config with all symbols set to default'
1470748cb3eSSam Ravnborg	@echo  '  randconfig	  - New config with random answer to all options'
148861b4ea4SSam Ravnborg	@echo  '  listnewconfig   - List new options'
149fa75a727SGeert Uytterhoeven	@echo  '  olddefconfig	  - Same as silentoldconfig but sets new symbols to their'
150fa75a727SGeert Uytterhoeven	@echo  '                    default value'
1519bcd776dSLuis R. Rodriguez	@echo  '  kvmconfig	  - Enable additional options for kvm guest kernel support'
1526c668505SLuis R. Rodriguez	@echo  '  xenconfig       - Enable additional options for xen dom0 and guest kernel support'
1530da1d4a0SJosh Triplett	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
1541da177e4SLinus Torvalds
1552982de69SSam Ravnborg# lxdialog stuff
1562982de69SSam Ravnborgcheck-lxdialog  := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
1572982de69SSam Ravnborg
158e9e40e14SRob Landley# Use recursively expanded variables so we do not call gcc unless
1592982de69SSam Ravnborg# we really need to do so. (Do not call gcc as part of make mrproper)
1609ba95682SArnaud LacombeHOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
1619ba95682SArnaud Lacombe                    -DLOCALE
1622982de69SSam Ravnborg
1631da177e4SLinus Torvalds# ===========================================================================
1641da177e4SLinus Torvalds# Shared Makefile for the various kconfig executables:
1651da177e4SLinus Torvalds# conf:	  Used for defconfig, oldconfig and related targets
166692d97c3Snir.tzachar@gmail.com# nconf:  Used for the nconfig target.
167692d97c3Snir.tzachar@gmail.com#         Utilizes ncurses
1686f26e5e4SMarkus Heidelberg# mconf:  Used for the menuconfig target
1691da177e4SLinus Torvalds#         Utilizes the lxdialog package
1701da177e4SLinus Torvalds# qconf:  Used for the xconfig target
171092373c2SDiego Viola#         Based on Qt which needs to be installed to compile it
1721da177e4SLinus Torvalds# gconf:  Used for the gconfig target
17339c3f1baSDiego Viola#         Based on GTK+ which needs to be installed to compile it
1741da177e4SLinus Torvalds# object files used by all kconfig flavours
1751da177e4SLinus Torvalds
1762982de69SSam Ravnborglxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
1772982de69SSam Ravnborglxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
1782982de69SSam Ravnborg
1791da177e4SLinus Torvaldsconf-objs	:= conf.o  zconf.tab.o
1802982de69SSam Ravnborgmconf-objs     := mconf.o zconf.tab.o $(lxdialog)
181692d97c3Snir.tzachar@gmail.comnconf-objs     := nconf.o zconf.tab.o nconf.gui.o
1823b9fa093SArnaldo Carvalho de Melokxgettext-objs	:= kxgettext.o zconf.tab.o
183f1943049SPeter Foleyqconf-cxxobjs	:= qconf.o
1845a6f8d2bSArnaud Lacombeqconf-objs	:= zconf.tab.o
1855a6f8d2bSArnaud Lacombegconf-objs	:= gconf.o zconf.tab.o
1861da177e4SLinus Torvalds
187022af62dSMasahiro Yamadahostprogs-y := conf nconf mconf kxgettext qconf gconf
1881da177e4SLinus Torvalds
1895a6f8d2bSArnaud Lacombeclean-files	:= qconf.moc .tmp_qtcheck .tmp_gtkcheck
1902f76b358SArnaud Lacombeclean-files	+= zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
1911020026fSEGRY Gaborclean-files     += config.pot linux.pot
1921da177e4SLinus Torvalds
1936e588f6dSSam Ravnborg# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
1946e588f6dSSam RavnborgPHONY += $(obj)/dochecklxdialog
1956e588f6dSSam Ravnborg$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
1966e588f6dSSam Ravnborg$(obj)/dochecklxdialog:
1977080e47bSArnaud Lacombe	$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
1986e588f6dSSam Ravnborg
1996e588f6dSSam Ravnborgalways := dochecklxdialog
2006e588f6dSSam Ravnborg
201aa1e5ef5SSam Ravnborg# Add environment specific flags
202aa1e5ef5SSam RavnborgHOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
20370a6a0cbSYuri Vasilevski
2041da177e4SLinus Torvalds# generated files seem to need this to find local include files
2052f76b358SArnaud LacombeHOSTCFLAGS_zconf.lex.o	:= -I$(src)
2061da177e4SLinus TorvaldsHOSTCFLAGS_zconf.tab.o	:= -I$(src)
2071da177e4SLinus Torvalds
208378dbb2cSArnaud LacombeLEX_PREFIX_zconf	:= zconf
209378dbb2cSArnaud LacombeYACC_PREFIX_zconf	:= zconf
210378dbb2cSArnaud Lacombe
2115a6f8d2bSArnaud LacombeHOSTLOADLIBES_qconf	= $(KC_QT_LIBS)
2125a6f8d2bSArnaud LacombeHOSTCXXFLAGS_qconf.o	= $(KC_QT_CFLAGS)
2131da177e4SLinus Torvalds
2145a6f8d2bSArnaud LacombeHOSTLOADLIBES_gconf	= `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
21537193147SAdrian BunkHOSTCFLAGS_gconf.o	= `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
2161ea3ad4eSArnaud Lacombe                          -Wno-missing-prototypes
2171da177e4SLinus Torvalds
2187080e47bSArnaud LacombeHOSTLOADLIBES_mconf   = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
2197080e47bSArnaud Lacombe
220544e7e54SJustin LecherHOSTLOADLIBES_nconf	= $(shell \
2217285996aSBrian Norris				pkg-config --libs menuw panelw ncursesw 2>/dev/null \
2227285996aSBrian Norris				|| pkg-config --libs menu panel ncurses 2>/dev/null \
223544e7e54SJustin Lecher				|| echo "-lmenu -lpanel -lncurses"  )
2241da177e4SLinus Torvalds$(obj)/qconf.o: $(obj)/.tmp_qtcheck
2251da177e4SLinus Torvalds
226022af62dSMasahiro Yamadaifeq ($(MAKECMDGOALS),xconfig)
227b3a5225fSRoman Zippel$(obj)/.tmp_qtcheck: $(src)/Makefile
2281da177e4SLinus Torvalds-include $(obj)/.tmp_qtcheck
2291da177e4SLinus Torvalds
230092373c2SDiego Viola# Qt needs some extra effort...
2311da177e4SLinus Torvalds$(obj)/.tmp_qtcheck:
2320a1f00a1SMichal Marek	@set -e; $(kecho) "  CHECK   qt"; dir=""; pkg=""; \
233133c5f7cSAlexander Stein	if ! pkg-config --exists QtCore 2> /dev/null; then \
234092373c2SDiego Viola	    echo "* Unable to find the Qt4 tool qmake. Trying to use Qt3"; \
235b3a5225fSRoman Zippel	    pkg-config --exists qt 2> /dev/null && pkg=qt; \
236b3a5225fSRoman Zippel	    pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \
237b3a5225fSRoman Zippel	    if [ -n "$$pkg" ]; then \
238b3a5225fSRoman Zippel	      cflags="\$$(shell pkg-config $$pkg --cflags)"; \
239b3a5225fSRoman Zippel	      libs="\$$(shell pkg-config $$pkg --libs)"; \
240b3a5225fSRoman Zippel	      moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \
241b3a5225fSRoman Zippel	      dir="$$(pkg-config $$pkg --variable=prefix)"; \
242b3a5225fSRoman Zippel	    else \
243b3a5225fSRoman Zippel	      for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
244b3a5225fSRoman Zippel	        if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
2451da177e4SLinus Torvalds	      done; \
246b3a5225fSRoman Zippel	      if [ -z "$$dir" ]; then \
2475b580fa6SMichal Marek	        echo >&2 "*"; \
248092373c2SDiego Viola	        echo >&2 "* Unable to find any Qt installation. Please make sure that"; \
249092373c2SDiego Viola	        echo >&2 "* the Qt4 or Qt3 development package is correctly installed and"; \
2505b580fa6SMichal Marek	        echo >&2 "* either qmake can be found or install pkg-config or set"; \
2515b580fa6SMichal Marek	        echo >&2 "* the QTDIR environment variable to the correct location."; \
2525b580fa6SMichal Marek	        echo >&2 "*"; \
2531da177e4SLinus Torvalds	        false; \
2541da177e4SLinus Torvalds	      fi; \
255b3a5225fSRoman Zippel	      libpath=$$dir/lib; lib=qt; osdir=""; \
2561da177e4SLinus Torvalds	      $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
257b3a5225fSRoman Zippel	        osdir=x$$($(HOSTCXX) -print-multi-os-directory); \
258b3a5225fSRoman Zippel	      test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \
259b3a5225fSRoman Zippel	      test -f $$libpath/libqt-mt.so && lib=qt-mt; \
260b3a5225fSRoman Zippel	      cflags="-I$$dir/include"; \
261b3a5225fSRoman Zippel	      libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \
262b3a5225fSRoman Zippel	      moc="$$dir/bin/moc"; \
263ab919c06SSam Ravnborg	    fi; \
264b3a5225fSRoman Zippel	    if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
2651da177e4SLinus Torvalds	      echo "*"; \
266b3a5225fSRoman Zippel	      echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
2671da177e4SLinus Torvalds	      echo "*"; \
268b3a5225fSRoman Zippel	      moc="/usr/bin/moc"; \
269b3a5225fSRoman Zippel	    fi; \
270133c5f7cSAlexander Stein	else \
271458452f4SMichal Marek	  cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \
272458452f4SMichal Marek	  libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \
27348485949SYaakov Selkowitz	  moc="\$$(shell pkg-config QtCore --variable=moc_location)"; \
27448485949SYaakov Selkowitz	  [ -n "$$moc" ] || moc="\$$(shell pkg-config QtCore --variable=prefix)/bin/moc"; \
275133c5f7cSAlexander Stein	fi; \
276b3a5225fSRoman Zippel	echo "KC_QT_CFLAGS=$$cflags" > $@; \
277b3a5225fSRoman Zippel	echo "KC_QT_LIBS=$$libs" >> $@; \
278b3a5225fSRoman Zippel	echo "KC_QT_MOC=$$moc" >> $@
2791da177e4SLinus Torvaldsendif
2801da177e4SLinus Torvalds
2811da177e4SLinus Torvalds$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
2821da177e4SLinus Torvalds
283022af62dSMasahiro Yamadaifeq ($(MAKECMDGOALS),gconfig)
2841da177e4SLinus Torvalds-include $(obj)/.tmp_gtkcheck
2851da177e4SLinus Torvalds
28639c3f1baSDiego Viola# GTK+ needs some extra effort, too...
2871da177e4SLinus Torvalds$(obj)/.tmp_gtkcheck:
28837193147SAdrian Bunk	@if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then		\
28937193147SAdrian Bunk		if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then			\
2901da177e4SLinus Torvalds			touch $@;								\
2911da177e4SLinus Torvalds		else									\
2925b580fa6SMichal Marek			echo >&2 "*"; 							\
2935b580fa6SMichal Marek			echo >&2 "* GTK+ is present but version >= 2.0.0 is required.";	\
2945b580fa6SMichal Marek			echo >&2 "*";							\
2951da177e4SLinus Torvalds			false;								\
2961da177e4SLinus Torvalds		fi									\
2971da177e4SLinus Torvalds	else										\
2985b580fa6SMichal Marek		echo >&2 "*"; 								\
2995b580fa6SMichal Marek		echo >&2 "* Unable to find the GTK+ installation. Please make sure that"; 	\
3005b580fa6SMichal Marek		echo >&2 "* the GTK+ 2.0 development package is correctly installed..."; 	\
3015b580fa6SMichal Marek		echo >&2 "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; 		\
3025b580fa6SMichal Marek		echo >&2 "*"; 								\
3031da177e4SLinus Torvalds		false;									\
3041da177e4SLinus Torvalds	fi
3051da177e4SLinus Torvaldsendif
3061da177e4SLinus Torvalds
3072f76b358SArnaud Lacombe$(obj)/zconf.tab.o: $(obj)/zconf.lex.c $(obj)/zconf.hash.c
3081da177e4SLinus Torvalds
3095a6f8d2bSArnaud Lacombe$(obj)/qconf.o: $(obj)/qconf.moc
3101da177e4SLinus Torvalds
311ebca026aSYaakov Selkowitzquiet_cmd_moc = MOC     $@
312ebca026aSYaakov Selkowitz      cmd_moc = $(KC_QT_MOC) -i $< -o $@
313ebca026aSYaakov Selkowitz
314ebca026aSYaakov Selkowitz$(obj)/%.moc: $(src)/%.h $(obj)/.tmp_qtcheck
315ebca026aSYaakov Selkowitz	$(call cmd,moc)
3161da177e4SLinus Torvalds
31739c3f1baSDiego Viola# Extract gconf menu items for i18n support
31846d26319SEGRY Gabor$(obj)/gconf.glade.h: $(obj)/gconf.glade
3192d80eb0fSPeter Foley	$(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
320a24a1b8eSPeter Foley	$(obj)/gconf.glade
321