mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
9a8dfb394c
Files suffixed by .lex.c, .tab.[ch] are generated lexers, parsers, respectively. Clean them up globally from the top Makefile. Some of the final host programs those lexer/parser are linked into are necessary for building external modules, but the intermediates are unneeded. They can be cleaned away by 'make clean' instead of 'make mrproper'. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Frank Rowand <frowand.list@gmail.com>
14 lines
359 B
Makefile
14 lines
359 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
hostprogs-y := genksyms
|
|
always := $(hostprogs-y)
|
|
|
|
genksyms-objs := genksyms.o parse.tab.o lex.lex.o
|
|
|
|
# -I needed for generated C source (shipped source)
|
|
HOSTCFLAGS_parse.tab.o := -I$(src)
|
|
HOSTCFLAGS_lex.lex.o := -I$(src)
|
|
|
|
# dependencies on generated files need to be listed explicitly
|
|
$(obj)/lex.lex.o: $(obj)/parse.tab.h
|