Object directory in Makefile.am <p>My current Makefile.am looks something like this:</p> <pre><code>bin_PROGRAMS = MyProgram AM_CPPFLAGS = -I../shared MyProgram_SOURCES = main.cpp Source1.cpp ../shared/Source2.cpp clean : clean-am rm -f *~ rm -f DEADJOE distclean: distclean-am rm -f *~ rm -f DEADJOE rm -f Makefile rm -f *log </code></pre> <p>This creates all the .o files in the current directory. How can I specify a different object directory in a Makefile.am? I failed to find this in the GNU documentation, although I am sure it must be there somewhere.</p>