I finally found a solution, (thanks to sample from Automake doc) but I don't know if it's the best, here is my Makefile.am INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/../../global_libs/extern/md5 bin_PROGRAMS = test_md5 test_md5_SOURCES = test_md5.c profile_md5.c test_md5_LDADD = md5.o md5.o: $(COMPILE) -DCTAGS -o md5.o -c $(top_srcdir)/../../global_libs/extern/md5/md5.c Guillaume. -----Message d'origine----- De: <[EMAIL PROTECTED]> A: <[EMAIL PROTECTED]> Date: 27/04/01 Objet: how to build a program with external sources ? Hi, I'm starting to use automake/autoconf at work, converting a project that is beginning to be too large for Makefiles. I've read the book "Gnu Autoconf automake and libtool" written by Gary V. Vaughan, Ben Elliston, Tom Tromey and Ian Lance Taylor, and I the following problem: in a directory containing the source foo.c I have to build the program foo that also have to be built with a source comming from a directory external to the current directory. How can I write it in the Makefile.am ?? Thanks, Guillaume. a program _____________________________________________________ _________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif