blob: ee1aa4299b84f5bfa77fb1ff3db3af18c03dd1b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Files in this folder are exported from kernel source tree (except this file)
# commit: e5e02de0665ef2477e7a018193051387c6fe0fbc
.PHONY: clean
ifndef KCONFIG_PREFIX
$(error "Please specify variable KCONFIG_SRC in your makefile before importing kconfig files.mk")
endif
KCONFIG_SRC = $(KCONFIG_PREFIX)/zconf.tab.c
%.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 %.lex.c %.hash.c
bison -o $@ $< -p zconf -t -l
clean::
$(RM) $(KCONFIG_PREFIX)/zconf.tab.c
$(RM) $(KCONFIG_PREFIX)/zconf.lex.c
$(RM) $(KCONFIG_PREFIX)/zconf.hash.c
|