diff options
author | Sergio E. Nemirowski <sergio@outerface.net> | 2020-06-10 04:33:21 +0300 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-07-07 19:47:24 +0200 |
commit | 8fb0b15efde92de43f6bc52f60a5a5680b782d8e (patch) | |
tree | e4f905790602347f84d5dd661d96ac204e0b6cf9 /scripts/config/Makefile | |
parent | ae2d249056bdd7b87169e7c14f54c0c464b1acc5 (diff) | |
download | upstream-8fb0b15efde92de43f6bc52f60a5a5680b782d8e.tar.gz upstream-8fb0b15efde92de43f6bc52f60a5a5680b782d8e.tar.bz2 upstream-8fb0b15efde92de43f6bc52f60a5a5680b782d8e.zip |
build: add nconfig
Add support for make target nconfig (ncurses)
Reviewed-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'scripts/config/Makefile')
-rw-r--r-- | scripts/config/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/scripts/config/Makefile b/scripts/config/Makefile index d98f15c393..3082a65ceb 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -5,7 +5,7 @@ .PHONY: clean all all: conf mconf clean: - rm -f *.o lxdialog/*.o *.moc $(clean-files) conf mconf qconf + rm -f *.o lxdialog/*.o *.moc $(clean-files) conf mconf qconf nconf # This clean-files definition is here to ensure that temporary files from the # previous version are removed by make config-clean. @@ -52,6 +52,16 @@ HOSTCFLAGS_parser.tab.o := -I $(srctree)/$(src) hostprogs-y += conf conf-objs := conf.o $(common-objs) +# nconf: Used for the nconfig target based on ncurses +hostprogs-y += nconf +nconf-objs := nconf.o nconf.gui.o $(common-objs) + +HOSTLDLIBS_nconf = $(shell . $(obj)/nconf-cfg && echo $$libs) +HOSTCFLAGS_nconf.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) +HOSTCFLAGS_nconf.gui.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) + +$(obj)/nconf.o $(obj)/nconf.gui.o: $(obj)/nconf-cfg + # mconf: Used for the menuconfig target based on lxdialog hostprogs-y += mconf lxdialog := $(addprefix lxdialog/, \ @@ -123,5 +133,8 @@ conf: $(conf-objs) mconf: mconf-cfg $(mconf-objs) $(CC) -o $@ $(filter-out mconf-cfg,$^) $(HOSTLDLIBS_mconf) +nconf: nconf-cfg $(nconf-objs) + $(CC) -o $@ $(filter-out nconf-cfg,$^) $(HOSTLDLIBS_nconf) + qconf: qconf-cfg $(qconf-cxxobjs) $(qconf-objs) $(CXX) -o $@ $(filter-out qconf-cfg,$^) $(HOSTLDLIBS_qconf) |