aboutsummaryrefslogtreecommitdiff
path: root/tools/kconfig/Makefile
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-03-04 21:14:58 +0200
committeraqua <aqua@iserlohn-fortress.net>2023-03-04 21:18:28 +0200
commit2f0ff485ee17e93779471922505dc35e48ba406d (patch)
tree3ea420afb752dc3bfc7eb9a97090f63f2944966a /tools/kconfig/Makefile
parentRename host and target tool names (diff)
downloadkernel-2f0ff485ee17e93779471922505dc35e48ba406d.tar.xz
Import kconfig from the linux kernel
- commit: 0988a0ea791999ebbf95693f2676381825b05033 - path: scripts/kconfig
Diffstat (limited to 'tools/kconfig/Makefile')
-rw-r--r--tools/kconfig/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/kconfig/Makefile b/tools/kconfig/Makefile
new file mode 100644
index 0000000..5fa0a0a
--- /dev/null
+++ b/tools/kconfig/Makefile
@@ -0,0 +1,28 @@
+include ../../Makefile.config
+
+HOSTTARGETBIN += conf mconf
+
+lxdiag.SRC := \
+ lxdialog/checklist.c lxdialog/inputbox.c lxdialog/menubox.c lxdialog/textbox.c lxdialog/util.c lxdialog/yesno.c
+
+parser.SRC := \
+ confdata.c expr.c menu.c preprocess.c symbol.c util.c \
+ lex.yy.c parser.tab.c
+
+conf.SRC := $(parser.SRC) conf.c
+
+mconf.SRC := $(parser.SRC) $(lxdiag.SRC) mconf.c
+
+HOST_CFLAGS := -D_GNU_SOURCE $(shell pkg-config --cflags ncursesw)
+HOST_LDFLAGS := $(shell pkg-config --libs ncursesw)
+
+include ../../rules.mk
+
+%.tab.c: %.y
+ bison --header --debug $<
+
+lex.yy.c: lexer.l parser.tab.c
+ flex $<
+
+clean: clean.base
+ @rm -f parser.tab.h parser.tab.c lex.yy.c