aboutsummaryrefslogtreecommitdiff
path: root/tools/kconfig/mk
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-07-30 17:11:43 +0300
committeraqua <aqua@iserlohn-fortress.net>2023-07-30 17:11:43 +0300
commit3c440f91ea7f26f7c5ed10c18bd28348020d8ebe (patch)
tree1b88afc9e7ae16dd7a827c93e6467096c6760047 /tools/kconfig/mk
parentFix compiler warnings (diff)
downloadkernel-3c440f91ea7f26f7c5ed10c18bd28348020d8ebe.tar.xz
Added make wrapper
Diffstat (limited to 'tools/kconfig/mk')
-rwxr-xr-xtools/kconfig/mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/kconfig/mk b/tools/kconfig/mk
new file mode 100755
index 0000000..a11a6d4
--- /dev/null
+++ b/tools/kconfig/mk
@@ -0,0 +1,26 @@
+#!../../mach
+
+HOSTTARGETBIN += conf mconf
+
+lxdiag_srcs := \
+ lxdialog/checklist.c lxdialog/inputbox.c lxdialog/menubox.c lxdialog/textbox.c lxdialog/util.c lxdialog/yesno.c
+
+parser_srcs := \
+ confdata.c expr.c menu.c preprocess.c symbol.c util.c \
+ lex.yy.c parser.tab.c
+
+conf.SRCS := ${parser_srcs} conf.c
+
+mconf.SRCS := ${parser_srcs} ${lxdiag_srcs} mconf.c
+
+HOST_CFLAGS := -D_GNU_SOURCE $(shell pkg-config --cflags ncursesw)
+HOST_LDFLAGS := $(shell pkg-config --libs ncursesw)
+
+%.tab.c: %.y
+ bison --header --debug $<
+
+lex.yy.c: lexer.l parser.tab.c
+ flex $<
+
+CLEAN_FILES += parser.tab.h parser.tab.c lex.yy.c
+