This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Rep:how to build a program with external sources ?
- To: automake at gnu dot org>
- Subject: Rep:how to build a program with external sources ?
- From: <glafage at ifrance dot com>
- Date: Fri, 27 Apr 2001 15:09:08 GMT
- List-Id: Discussion list for automake <automake.gnu.org>
- Send-By: 213.41.91.225 with Mozilla/4.73 [en] (X11; U; Linux 2.2.18 i686)
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: <glafage@ifrance.com>
A: <automake@gnu.org>
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