Ralf, Thank you for replying. --- On Tue, 7/20/10, Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> wrote: > Please post 'make' and 'make -j1' output that shows this > difference, Attached. > Which Automake version are you using? SimLib/Expression$ automake --version automake (GNU automake) 1.10.1 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@xxxxxxxxxx> and Alexandre Duret-Lutz <adl@xxxxxxx>. > IIUC then the BUILT_SOURCES are to be distributed, > right? If yes, they > should rather be in MAINTAINERCLEANFILES than in > CLEANFILES, and if no, > they should rather be built in the build tree not the > source tree, so > that read-only source trees can work. If that is > possible with antlr, > that is. I understand. I have the freedom to place them wherever I choose. I chose $(srcdir) because I thought it would simplify the Makefile.am. It will be a good exercise for me to move the files to the builddir and see what issues come up. > > $(srcdir)/TCExpressionLexer.hpp: > $(srcdir)/TCExpressionLexer.cpp > > $(srcdir)/TCExpressionLexerTokenTypes.hpp: > $(srcdir)/TCExpressionLexer.cpp > > $(srcdir)/TCExpressionParser.cpp: > $(srcdir)/TCExpressionLexer.cpp > > $(srcdir)/TCExpressionParser.hpp: > $(srcdir)/TCExpressionLexer.cpp > > $(srcdir)/TCExpressionTreeWalker.cpp: > $(srcdir)/TCExpressionLexer.cpp > > $(srcdir)/TCExpressionTreeWalker.hpp: > $(srcdir)/TCExpressionLexer.cpp > > Why are these dependencies necessary? I am following this pattern: http://www.gnu.org/software/hello/manual/automake/Multiple-Outputs.html ANTLR produces 5 cpp files with one invocation. These dependencies prevent make from trying to create them with 5 invocations of ANTLR in the event "-j 5" is passed. Thanks again for your help, Chris
SimLibRelease/Expression$ make java antlr.Tool -o ../../../SimLib/SimLib/Expression ../../../SimLib/SimLib/Expression/TCExpression.g ANTLR Parser Generator Version 2.7.7 (2006-11-01) 1989-2005 make all-am g++ -DPACKAGE_NAME=\"SimLib\" -DPACKAGE_TARNAME=\"simlib\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"SimLib\ 1.0.0\" -DPACKAGE_BUGREPORT=\"pstieber@xxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../../SimLib/SimLib/Expression -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -Wall -Wno-unknown-pragmas -Wno-format-y2k -DGUI_CODE -I../../../SimLib/SimLib -I/usr/home/cstankevitz/work/wx/Install/lib/wx/include/gtk2-ansi-release-static-2.8 -I/usr/home/cstankevitz/work/wx/Install/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -O2 -march=native -MT ExpressionTreeWalker.o -MD -MP -MF .deps/ExpressionTreeWalker.Tpo -c -o ExpressionTreeWalker.o ../../../SimLib/SimLib/Expression/ExpressionTreeWalker.cpp mv -f .deps/ExpressionTreeWalker.Tpo .deps/ExpressionTreeWalker.Po g++ -DPACKAGE_NAME=\"SimLib\" -DPACKAGE_TARNAME=\"simlib\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"SimLib\ 1.0.0\" -DPACKAGE_BUGREPORT=\"pstieber@xxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../../SimLib/SimLib/Expression -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -Wall -Wno-unknown-pragmas -Wno-format-y2k -DGUI_CODE -I../../../SimLib/SimLib -I/usr/home/cstankevitz/work/wx/Install/lib/wx/include/gtk2-ansi-release-static-2.8 -I/usr/home/cstankevitz/work/wx/Install/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -O2 -march=native -MT TCExpressionTreeWalker.o -MD -MP -MF .deps/TCExpressionTreeWalker.Tpo -c -o TCExpressionTreeWalker.o ../../../SimLib/SimLib/Expression/TCExpressionTreeWalker.cpp mv -f .deps/TCExpressionTreeWalker.Tpo .deps/TCExpressionTreeWalker.Po g++ -DPACKAGE_NAME=\"SimLib\" -DPACKAGE_TARNAME=\"simlib\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"SimLib\ 1.0.0\" -DPACKAGE_BUGREPORT=\"pstieber@xxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../../SimLib/SimLib/Expression -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -Wall -Wno-unknown-pragmas -Wno-format-y2k -DGUI_CODE -I../../../SimLib/SimLib -I/usr/home/cstankevitz/work/wx/Install/lib/wx/include/gtk2-ansi-release-static-2.8 -I/usr/home/cstankevitz/work/wx/Install/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -O2 -march=native -MT TCExpressionLexer.o -MD -MP -MF .deps/TCExpressionLexer.Tpo -c -o TCExpressionLexer.o ../../../SimLib/SimLib/Expression/TCExpressionLexer.cpp mv -f .deps/TCExpressionLexer.Tpo .deps/TCExpressionLexer.Po g++ -DPACKAGE_NAME=\"SimLib\" -DPACKAGE_TARNAME=\"simlib\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"SimLib\ 1.0.0\" -DPACKAGE_BUGREPORT=\"pstieber@xxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../../SimLib/SimLib/Expression -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -Wall -Wno-unknown-pragmas -Wno-format-y2k -DGUI_CODE -I../../../SimLib/SimLib -I/usr/home/cstankevitz/work/wx/Install/lib/wx/include/gtk2-ansi-release-static-2.8 -I/usr/home/cstankevitz/work/wx/Install/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -O2 -march=native -MT TCExpressionParser.o -MD -MP -MF .deps/TCExpressionParser.Tpo -c -o TCExpressionParser.o ../../../SimLib/SimLib/Expression/TCExpressionParser.cpp mv -f .deps/TCExpressionParser.Tpo .deps/TCExpressionParser.Po rm -f libExpressionsg.a ar cru libExpressionsg.a ExpressionTreeWalker.o TCExpressionTreeWalker.o TCExpressionLexer.o TCExpressionParser.o ranlib libExpressionsg.a SimLibRelease/Expression$
SimLibRelease/Expression$ make -j1 java antlr.Tool -o ../../../SimLib/SimLib/Expression ../../../SimLib/SimLib/Expression/TCExpression.g ANTLR Parser Generator Version 2.7.7 (2006-11-01) 1989-2005 make all-am g++ -DPACKAGE_NAME=\"SimLib\" -DPACKAGE_TARNAME=\"simlib\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"SimLib\ 1.0.0\" -DPACKAGE_BUGREPORT=\"pstieber@xxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../../SimLib/SimLib/Expression -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -Wall -Wno-unknown-pragmas -Wno-format-y2k -DGUI_CODE -I../../../SimLib/SimLib -I/usr/home/cstankevitz/work/wx/Install/lib/wx/include/gtk2-ansi-release-static-2.8 -I/usr/home/cstankevitz/work/wx/Install/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DFREEBSD -DTIXML_USE_STL -I/usr/local/include -fno-strict-aliasing -O2 -march=native -MT TCExpressionLexer.o -MD -MP -MF .deps/../../../SimLib/SimLib/Expression/TCExpressionLexer.Tpo -c -o TCExpressionLexer.o ../../../SimLib/SimLib/Expression/TCExpressionLexer.cpp TCExpressionLexer.cpp:913: fatal error: opening dependency file .deps/../../../SimLib/SimLib/Expression/TCExpressionLexer.Tpo: No such file or directory compilation terminated. *** Error code 1 1 error *** Error code 2 1 error SimLibRelease/Expression$
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf