diff options
Diffstat (limited to 'programs/src/kconfig_parser/Makefile')
-rw-r--r-- | programs/src/kconfig_parser/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/programs/src/kconfig_parser/Makefile b/programs/src/kconfig_parser/Makefile index cc86499..d8babae 100644 --- a/programs/src/kconfig_parser/Makefile +++ b/programs/src/kconfig_parser/Makefile @@ -1,20 +1,17 @@ .SUFFIXES: -all: kconfig_parser +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 +CFLAGS = -O0 -w -ggdb -kconfig_parser: $(INPUT_FILES) kconfig/zconf.lex.c kconfig/zconf.hash.c - gcc -O0 -w -ggdb -o ../../$@ $(INPUT_FILES) +../../kconfig_parser: $(INPUT_FILES) kconfig/zconf.lex.c kconfig/zconf.hash.c + gcc $(CFLAGS) -o $@ $(INPUT_FILES) %.hash.c: %.gperf gperf -t --output-file $@ -a -C -E -g -k '1,3,$$' -p -t $< @@ -24,3 +21,7 @@ kconfig_parser: $(INPUT_FILES) kconfig/zconf.lex.c kconfig/zconf.hash.c %.tab.c: %.y kconfig/zconf.lex.c kconfig/zconf.hash.c bison -o $@ $< -p zconf -t -l + +clean: + $(RM) kconfig/zconf.tab.c kconfig/zconf.lex.c kconfig/zconf.hash.c + $(RM) ../../kconfig_parser |