aboutsummaryrefslogtreecommitdiff
path: root/scripts/parse_kconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/parse_kconfig/Makefile')
-rw-r--r--scripts/parse_kconfig/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/parse_kconfig/Makefile b/scripts/parse_kconfig/Makefile
new file mode 100644
index 0000000..f582673
--- /dev/null
+++ b/scripts/parse_kconfig/Makefile
@@ -0,0 +1,19 @@
+.PHONY: all clean
+.SUFFIXES:
+
+all: parser
+
+KCONFIG_PREFIX = ../shared/kconfig
+include $(KCONFIG_PREFIX)/files.mk
+
+SRC = parser.c \
+ cnfexpr.c \
+ symlist.c \
+ output.c
+CFLAGS = -O0 -w -ggdb
+
+parser: $(SRC) $(KCONFIG_SRC)
+ gcc $(CFLAGS) -o $@ $^ -I$(KCONFIG_PREFIX)
+
+clean::
+ $(RM) parser