X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/750b78ba359e7d30c7d3ad49d268923e986268cb..f7c832a7867b1cc588fc1ec658c2f20d0b4c81ec:/src/motif/makefile.unx?ds=inline diff --git a/src/motif/makefile.unx b/src/motif/makefile.unx index 27fc8a76a8..15b53d06b8 100644 --- a/src/motif/makefile.unx +++ b/src/motif/makefile.unx @@ -174,7 +174,7 @@ LIB_C_SRC=\ EXTRA_C_SRC=\ xmcombo/xmcombo.c -EXTRA_CPP_SRC=\ +EXTRA_CPP_SRC= # mdi/lib/XsComponent.C\ # mdi/lib/XsMDICanvas.C\ @@ -201,14 +201,19 @@ $(WXLIB) : $(OBJECTS) # problems with lex_yy.c. See also note about LEX_SCANNER # above. ../common/lex_yy.c: ../common/lexer.l - $(LEX) -o../common/lex.yy.c ../common/lexer.l - sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \ + $(LEX) ../common/lexer.l + sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c - /bin/rm -f ../common/lex.yy.c + /bin/rm -f lex.yy.c -# N.B. if you have lex instead of flex, replace the $(LEX) line above -# with the following: +# The above should work with both lex and flex, but just in case not, +# here are alternative syntaxes. +# +# Flex-style syntax: +# $(LEX) -olex.yy.c ../common/lexer.l + +# Lex-style syntax: # $(LEX) ../common/lexer.l # Replace yacc with bison if you run into compilation