diff options
-rw-r--r-- | scripts/kconfig_parser/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/kconfig_parser/Makefile b/scripts/kconfig_parser/Makefile index a853f47..68fbb93 100644 --- a/scripts/kconfig_parser/Makefile +++ b/scripts/kconfig_parser/Makefile @@ -1,14 +1,14 @@ .SUFFIXES: -KCPARSER_INFILES = parser.c \ +SRC = parser.c \ cnfexpr.c \ symlist.c \ output.c -KCPARSER_INFILES += kconfig/zconf.tab.c -KCPARSER_CFLAGS = -O0 -w -ggdb +SRC += kconfig/zconf.tab.c +CFLAGS = -O0 -w -ggdb -parser: $(KCPARSER_INFILES) kconfig/zconf.lex.c kconfig/zconf.hash.c - gcc $(KCPARSER_CFLAGS) -o $@ $(KCPARSER_INFILES) +parser: $(SRC) kconfig/zconf.lex.c kconfig/zconf.hash.c + gcc $(CFLAGS) -o $@ $(SRC) %.hash.c: %.gperf gperf -t --output-file $@ -a -C -E -g -k '1,3,$$' -p -t $< |