Hello Sebastien, * Sebastien REYNES wrote on Wed, Sep 03, 2008 at 05:41:29PM CEST: > > How to generate objects files in a dedicated directory ? When I launch > the following Makefile.am in my current directory > /home/devbdie/src/module1, the files *.o are generated in the same > directory. > > lib_LIBRARIES = libcomc.a > nodist_libcomc_a_SOURCES = prog1.c prog2.c prog3.c > > Where can I specify a different target object directory ? > (/home/devbdie/obj/module1 for instance) > Have I to set a parameter within the file configure.ac ? How can I do ?
Just cd /home/devbdie/obj/module1 ../../src/module1/configure make Please see <http://www.gnu.org/software/automake/manual/html_node/VPATH-Builds.html> and more generally the introductory chapter <http://www.gnu.org/software/automake/manual/html_node/Use-Cases.html> Hope that helps. Cheers, Ralf