Makefile (aa72f6899b9fb3dc824c458234ae3507a60e462d) Makefile (5a6f8d2bd9e3392569ed6f29ea4d7210652f929b)
1# ===========================================================================
2# Kernel configuration targets
3# These targets are used from top-level makefile
4
5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
6 localmodconfig localyesconfig
7
8ifdef KBUILD_KCONFIG

--- 156 unchanged lines hidden (view full) ---

165lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
166lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
167
168conf-objs := conf.o zconf.tab.o
169mconf-objs := mconf.o zconf.tab.o $(lxdialog)
170nconf-objs := nconf.o zconf.tab.o nconf.gui.o
171kxgettext-objs := kxgettext.o zconf.tab.o
172qconf-cxxobjs := qconf.o
1# ===========================================================================
2# Kernel configuration targets
3# These targets are used from top-level makefile
4
5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
6 localmodconfig localyesconfig
7
8ifdef KBUILD_KCONFIG

--- 156 unchanged lines hidden (view full) ---

165lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
166lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
167
168conf-objs := conf.o zconf.tab.o
169mconf-objs := mconf.o zconf.tab.o $(lxdialog)
170nconf-objs := nconf.o zconf.tab.o nconf.gui.o
171kxgettext-objs := kxgettext.o zconf.tab.o
172qconf-cxxobjs := qconf.o
173qconf-objs := kconfig_load.o zconf.tab.o
174gconf-objs := gconf.o kconfig_load.o zconf.tab.o
173qconf-objs := zconf.tab.o
174gconf-objs := gconf.o zconf.tab.o
175
176hostprogs-y := conf
177
178ifeq ($(MAKECMDGOALS),nconfig)
179 hostprogs-y += nconf
180endif
181
182ifeq ($(MAKECMDGOALS),menuconfig)

--- 15 unchanged lines hidden (view full) ---

198ifeq ($(qconf-target),1)
199 hostprogs-y += qconf
200endif
201
202ifeq ($(gconf-target),1)
203 hostprogs-y += gconf
204endif
205
175
176hostprogs-y := conf
177
178ifeq ($(MAKECMDGOALS),nconfig)
179 hostprogs-y += nconf
180endif
181
182ifeq ($(MAKECMDGOALS),menuconfig)

--- 15 unchanged lines hidden (view full) ---

198ifeq ($(qconf-target),1)
199 hostprogs-y += qconf
200endif
201
202ifeq ($(gconf-target),1)
203 hostprogs-y += gconf
204endif
205
206clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck
206clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
207clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
208clean-files += mconf qconf gconf nconf
209clean-files += config.pot linux.pot
210
211# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
212PHONY += $(obj)/dochecklxdialog
213$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
214$(obj)/dochecklxdialog:
215 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
216
217always := dochecklxdialog
218
219# Add environment specific flags
220HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
221
222# generated files seem to need this to find local include files
223HOSTCFLAGS_lex.zconf.o := -I$(src)
224HOSTCFLAGS_zconf.tab.o := -I$(src)
225
207clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
208clean-files += mconf qconf gconf nconf
209clean-files += config.pot linux.pot
210
211# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
212PHONY += $(obj)/dochecklxdialog
213$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
214$(obj)/dochecklxdialog:
215 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
216
217always := dochecklxdialog
218
219# Add environment specific flags
220HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
221
222# generated files seem to need this to find local include files
223HOSTCFLAGS_lex.zconf.o := -I$(src)
224HOSTCFLAGS_zconf.tab.o := -I$(src)
225
226HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl
227HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK
226HOSTLOADLIBES_qconf = $(KC_QT_LIBS)
227HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS)
228
228
229HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl
230HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
231 -D LKC_DIRECT_LINK
229HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
230HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0`
232
233HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
234
235HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
236$(obj)/qconf.o: $(obj)/.tmp_qtcheck
237
238ifeq ($(qconf-target),1)
239$(obj)/.tmp_qtcheck: $(src)/Makefile

--- 73 unchanged lines hidden (view full) ---

313 echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
314 echo "*"; \
315 false; \
316 fi
317endif
318
319$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
320
231
232HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
233
234HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
235$(obj)/qconf.o: $(obj)/.tmp_qtcheck
236
237ifeq ($(qconf-target),1)
238$(obj)/.tmp_qtcheck: $(src)/Makefile

--- 73 unchanged lines hidden (view full) ---

312 echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
313 echo "*"; \
314 false; \
315 fi
316endif
317
318$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
319
321$(obj)/kconfig_load.o: $(obj)/lkc_defs.h
320$(obj)/qconf.o: $(obj)/qconf.moc
322
321
323$(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h
324
325$(obj)/gconf.o: $(obj)/lkc_defs.h
326
327$(obj)/%.moc: $(src)/%.h
328 $(KC_QT_MOC) -i $< -o $@
329
322$(obj)/%.moc: $(src)/%.h
323 $(KC_QT_MOC) -i $< -o $@
324
330$(obj)/lkc_defs.h: $(src)/lkc_proto.h
331 $(Q)sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
332
333# Extract gconf menu items for I18N support
334$(obj)/gconf.glade.h: $(obj)/gconf.glade
335 $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
336 $(obj)/gconf.glade
337
338###
339# The following requires flex/bison/gperf
340# By default we use the _shipped versions, uncomment the following line if

--- 22 unchanged lines hidden ---
325# Extract gconf menu items for I18N support
326$(obj)/gconf.glade.h: $(obj)/gconf.glade
327 $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
328 $(obj)/gconf.glade
329
330###
331# The following requires flex/bison/gperf
332# By default we use the _shipped versions, uncomment the following line if

--- 22 unchanged lines hidden ---