<lex> <lex flags> -o <lex target> <lex source>
The <lex flags> used to build the source code file are assembled from the following macros in the indicated order:
FLAGS_LEX
<yacc> <yacc flags> --output=<yacc target> <yacc source>
The <yacc flags> used to build the source code file are assembled from the following macros in the indicated order:
FLAGS_YACC
# The source root of this Component COMPONENT_ROOT=../.. # The root of the build system BS_ROOT=$(COMPONENT_ROOT)/../build3 # Boostrap Build system definitions. include $(BS_ROOT)/defines.mk # # Set up global C flags for Lex/Yacc # FLAGS_CC+=-I$(BS_ARCH_TARGET_DIR) # Generate src code from lex code. LEX_TARGETS=foo.yy.c # Generate src code from yacc code. YACC_TARGETS=bar.tab.c # Specify bare C object pattern targets OBJ_CC_TARGETS=foo.yy.o bar.tab.o foo.yy.o_SRC=$(BS_ARCH_TARGET_DIR)/foo.yy.c bar.tab.o_SRC=$(BS_ARCH_TARGET_DIR)/bar.tab.c # Finally, include the rules to make the build system go. include $(BS_ROOT)/rules.mk