#-- start of lex ------

$(bin)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies)
	$(lex_echo) $@
	$(lex_silent) cd $(src); \
	 $(lex) ${FILENAME}; \
	 sed -e 's/yy/${NAME}YY/g' \
	     -e 's/LexYY/YY/g' \
	     -e 's/ = {stdin}//' \
	     -e 's/ = {stdout}//' lex.yy.c > lex.yy.c.tmp; \
	 $(cmtexe) check_files lex.yy.c.tmp ${NAME}.c; /bin/rm -f lex.yy.c
	$(lex_silent) cd $(bin); $(ccomp) -o ${NAME}${CONSTITUENTSUFFIX}.o $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(app_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(app_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} $(src)${NAME}.c

#-- end of lex ------
