diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ebf40f6edb4d..9645c0739386 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -176,39 +176,10 @@ qconf-cxxobjs := qconf.o | |||
176 | qconf-objs := zconf.tab.o | 176 | qconf-objs := zconf.tab.o |
177 | gconf-objs := gconf.o zconf.tab.o | 177 | gconf-objs := gconf.o zconf.tab.o |
178 | 178 | ||
179 | hostprogs-y := conf | 179 | hostprogs-y := conf nconf mconf kxgettext qconf gconf |
180 | |||
181 | ifeq ($(MAKECMDGOALS),nconfig) | ||
182 | hostprogs-y += nconf | ||
183 | endif | ||
184 | |||
185 | ifeq ($(MAKECMDGOALS),menuconfig) | ||
186 | hostprogs-y += mconf | ||
187 | endif | ||
188 | |||
189 | ifeq ($(MAKECMDGOALS),update-po-config) | ||
190 | hostprogs-y += kxgettext | ||
191 | endif | ||
192 | |||
193 | ifeq ($(MAKECMDGOALS),xconfig) | ||
194 | qconf-target := 1 | ||
195 | endif | ||
196 | ifeq ($(MAKECMDGOALS),gconfig) | ||
197 | gconf-target := 1 | ||
198 | endif | ||
199 | |||
200 | |||
201 | ifeq ($(qconf-target),1) | ||
202 | hostprogs-y += qconf | ||
203 | endif | ||
204 | |||
205 | ifeq ($(gconf-target),1) | ||
206 | hostprogs-y += gconf | ||
207 | endif | ||
208 | 180 | ||
209 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck | 181 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck |
210 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h | 182 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h |
211 | clean-files += mconf qconf gconf nconf | ||
212 | clean-files += config.pot linux.pot | 183 | clean-files += config.pot linux.pot |
213 | 184 | ||
214 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) | 185 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) |
@@ -239,11 +210,12 @@ HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ | |||
239 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) | 210 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) |
240 | 211 | ||
241 | HOSTLOADLIBES_nconf = $(shell \ | 212 | HOSTLOADLIBES_nconf = $(shell \ |
242 | pkg-config --libs menu panel ncurses 2>/dev/null \ | 213 | pkg-config --libs menuw panelw ncursesw 2>/dev/null \ |
214 | || pkg-config --libs menu panel ncurses 2>/dev/null \ | ||
243 | || echo "-lmenu -lpanel -lncurses" ) | 215 | || echo "-lmenu -lpanel -lncurses" ) |
244 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck | 216 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck |
245 | 217 | ||
246 | ifeq ($(qconf-target),1) | 218 | ifeq ($(MAKECMDGOALS),xconfig) |
247 | $(obj)/.tmp_qtcheck: $(src)/Makefile | 219 | $(obj)/.tmp_qtcheck: $(src)/Makefile |
248 | -include $(obj)/.tmp_qtcheck | 220 | -include $(obj)/.tmp_qtcheck |
249 | 221 | ||
@@ -300,7 +272,7 @@ endif | |||
300 | 272 | ||
301 | $(obj)/gconf.o: $(obj)/.tmp_gtkcheck | 273 | $(obj)/gconf.o: $(obj)/.tmp_gtkcheck |
302 | 274 | ||
303 | ifeq ($(gconf-target),1) | 275 | ifeq ($(MAKECMDGOALS),gconfig) |
304 | -include $(obj)/.tmp_gtkcheck | 276 | -include $(obj)/.tmp_gtkcheck |
305 | 277 | ||
306 | # GTK needs some extra effort, too... | 278 | # GTK needs some extra effort, too... |