]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/makefile.unx
dlopen fixes
[wxWidgets.git] / src / motif / makefile.unx
index eda10a023f95616be797840b1b7d566cedb24a86..c172156bbca3c0175ad103f0ec7248c51155c1e6 100644 (file)
@@ -59,6 +59,7 @@ LIB_CPP_SRC=\
  ../common/objstrm.cpp \
  ../common/sckstrm.cpp \
  ../common/validate.cpp \
+ ../common/valgen.cpp \
  ../common/valtext.cpp \
  ../common/variant.cpp \
  ../common/wxexpr.cpp \
@@ -200,11 +201,20 @@ $(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
+
+# 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
 # problems with y_tab.c.