util.c exists both in scripts/kconfig/ and scripts/kconfig/lxdialog.
Prior to commit
54b8ae66ae1a ("kbuild: change *FLAGS_<basetarget>.o
to take the path relative to $(obj)"), Kbuild could not pass different
flags to source files with the same basename. Now that this issue
was solved, you can split util.c out of parser.y and compile them
independently of each other.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
SET_SOURCE_FILES_PROPERTIES(${BISON_parser_OUTPUTS}
PROPERTIES OBJECT_DEPENDS "${parser_deps}")
-set(conf_src conf.c symbol.c confdata.c expr.c preprocess.c ${BISON_parser_OUTPUTS} ${FLEX_lexer_OUTPUTS})
+set(conf_src conf.c util.c symbol.c confdata.c expr.c preprocess.c ${BISON_parser_OUTPUTS} ${FLEX_lexer_OUTPUTS})
add_executable(conf ${conf_src})
}
}
-#include "util.c"
#include "menu.c"