From 336ffd327ce0d09250d03eb4c7e10c4ae3fd0abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 10 Apr 2015 12:40:44 +0200 Subject: Simplify kconfig_parser Makefile --- scripts/kconfig_parser/Makefile | 10 +++++----- 1 file 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 $< -- cgit v1.2.3