summaryrefslogtreecommitdiffstats
path: root/debian/rules.d/scripts/kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules.d/scripts/kconfig')
-rw-r--r--debian/rules.d/scripts/kconfig/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/rules.d/scripts/kconfig/Makefile b/debian/rules.d/scripts/kconfig/Makefile
new file mode 100644
index 000000000..864b50544
--- /dev/null
+++ b/debian/rules.d/scripts/kconfig/Makefile
@@ -0,0 +1,16 @@
+PROGS = conf
+
+include $(top_rulesdir)/Makefile.inc
+
+conf: conf.o confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o symbol.o util.o
+
+lexer.lex.o: parser.tab.h
+
+%.lex.c: %.l
+ flex -o$@ -L $<
+
+%.tab.c: %.y
+ bison -o$@ -t -l $<
+
+%.tab.h: %.y
+ bison -o/dev/null --defines=$@ -t -l $<