aboutsummaryrefslogtreecommitdiff
path: root/programs/src/kconfig_parser/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-01-14 12:39:50 +0100
committerKarel Kočí <cynerd@email.cz>2015-01-14 12:39:50 +0100
commitafeddb02f4482efce98a9a411c04d31daeb9aee4 (patch)
tree02353e650321f7115e3cb113681c8fef28833f05 /programs/src/kconfig_parser/Makefile
parent48a732fecf66799a4eba0194006f8726306d5e45 (diff)
downloadlinux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.tar.gz
linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.tar.bz2
linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.zip
Output folder added to kconfig_parser
Also kconfig folder in programs/src is renamed to kconfig_parser
Diffstat (limited to 'programs/src/kconfig_parser/Makefile')
-rw-r--r--programs/src/kconfig_parser/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/programs/src/kconfig_parser/Makefile b/programs/src/kconfig_parser/Makefile
new file mode 100644
index 0000000..cc86499
--- /dev/null
+++ b/programs/src/kconfig_parser/Makefile
@@ -0,0 +1,26 @@
+.SUFFIXES:
+
+all: kconfig_parser
+
+
+clean:
+ rm -f kconfig/zconf.tab.c kconfig/zconf.lex.c kconfig/zconf.hash.c
+ rm -f ../../kconfig_parser
+
+INPUT_FILES = kconfig_parser.c
+INPUT_FILES += kconfig/zconf.tab.c \
+ boolexp.c \
+ symlist.c \
+ output.c
+
+kconfig_parser: $(INPUT_FILES) kconfig/zconf.lex.c kconfig/zconf.hash.c
+ gcc -O0 -w -ggdb -o ../../$@ $(INPUT_FILES)
+
+%.hash.c: %.gperf
+ gperf -t --output-file $@ -a -C -E -g -k '1,3,$$' -p -t $<
+
+%.lex.c: %.l
+ flex -o $@ -L -P zconf $<
+
+%.tab.c: %.y kconfig/zconf.lex.c kconfig/zconf.hash.c
+ bison -o $@ $< -p zconf -t -l