diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 186c46604d06..7ea649da1940 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -23,6 +23,9 @@ menuconfig: $(obj)/mconf | |||
23 | config: $(obj)/conf | 23 | config: $(obj)/conf |
24 | $< $(Kconfig) | 24 | $< $(Kconfig) |
25 | 25 | ||
26 | nconfig: $(obj)/nconf | ||
27 | $< $(Kconfig) | ||
28 | |||
26 | oldconfig: $(obj)/conf | 29 | oldconfig: $(obj)/conf |
27 | $< -o $(Kconfig) | 30 | $< -o $(Kconfig) |
28 | 31 | ||
@@ -120,6 +123,7 @@ endif | |||
120 | # Help text used by make help | 123 | # Help text used by make help |
121 | help: | 124 | help: |
122 | @echo ' config - Update current config utilising a line-oriented program' | 125 | @echo ' config - Update current config utilising a line-oriented program' |
126 | @echo ' nconfig - Update current config utilising a ncurses menu based program' | ||
123 | @echo ' menuconfig - Update current config utilising a menu based program' | 127 | @echo ' menuconfig - Update current config utilising a menu based program' |
124 | @echo ' xconfig - Update current config utilising a QT based front-end' | 128 | @echo ' xconfig - Update current config utilising a QT based front-end' |
125 | @echo ' gconfig - Update current config utilising a GTK based front-end' | 129 | @echo ' gconfig - Update current config utilising a GTK based front-end' |
@@ -147,6 +151,8 @@ HOST_EXTRACFLAGS += -DLOCALE | |||
147 | # =========================================================================== | 151 | # =========================================================================== |
148 | # Shared Makefile for the various kconfig executables: | 152 | # Shared Makefile for the various kconfig executables: |
149 | # conf: Used for defconfig, oldconfig and related targets | 153 | # conf: Used for defconfig, oldconfig and related targets |
154 | # nconf: Used for the nconfig target. | ||
155 | # Utilizes ncurses | ||
150 | # mconf: Used for the menuconfig target | 156 | # mconf: Used for the menuconfig target |
151 | # Utilizes the lxdialog package | 157 | # Utilizes the lxdialog package |
152 | # qconf: Used for the xconfig target | 158 | # qconf: Used for the xconfig target |
@@ -159,11 +165,16 @@ lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o | |||
159 | lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o | 165 | lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o |
160 | 166 | ||
161 | conf-objs := conf.o zconf.tab.o | 167 | conf-objs := conf.o zconf.tab.o |
162 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) | 168 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) |
169 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o | ||
163 | kxgettext-objs := kxgettext.o zconf.tab.o | 170 | kxgettext-objs := kxgettext.o zconf.tab.o |
164 | 171 | ||
165 | hostprogs-y := conf qconf gconf kxgettext | 172 | hostprogs-y := conf qconf gconf kxgettext |
166 | 173 | ||
174 | ifeq ($(MAKECMDGOALS),nconfig) | ||
175 | hostprogs-y += nconf | ||
176 | endif | ||
177 | |||
167 | ifeq ($(MAKECMDGOALS),menuconfig) | 178 | ifeq ($(MAKECMDGOALS),menuconfig) |
168 | hostprogs-y += mconf | 179 | hostprogs-y += mconf |
169 | endif | 180 | endif |
@@ -187,7 +198,7 @@ endif | |||
187 | 198 | ||
188 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ | 199 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ |
189 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h | 200 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h |
190 | clean-files += mconf qconf gconf | 201 | clean-files += mconf qconf gconf nconf |
191 | clean-files += config.pot linux.pot | 202 | clean-files += config.pot linux.pot |
192 | 203 | ||
193 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) | 204 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) |
@@ -208,10 +219,11 @@ HOSTCFLAGS_zconf.tab.o := -I$(src) | |||
208 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl | 219 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl |
209 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK | 220 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK |
210 | 221 | ||
211 | HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` | 222 | HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl |
212 | HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ | 223 | HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ |
213 | -D LKC_DIRECT_LINK | 224 | -D LKC_DIRECT_LINK |
214 | 225 | ||
226 | HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses | ||
215 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck | 227 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck |
216 | 228 | ||
217 | ifeq ($(qconf-target),1) | 229 | ifeq ($(qconf-target),1) |