This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Multiple objects from one source file
- From: "Stephano Mariani" <sk dot mail at btinternet dot com>
- To: <automake at gnu dot org>
- Date: Wed, 13 Mar 2002 00:35:21 -0000
- Subject: Multiple objects from one source file
I need to build multiple object file from one c source file. The only
variation is that the AM_CFLAGS variable must contain a different -D for
each one.
Eg:
I have a source file foo.c, I need to build (based on an option from
configure) foo1.o foo2.o ... foon.o with an option -DBAR=1 -DBAR=2 ...
-DBAR=n.
Is this possible, or will I have to write all the rules myself? I am
using libtool, these files will be part of a shared library, and
ideally, I would like to be able to use automatic dependency tracking
via depcomp. I have never written rules for libtool or depcomp before.
Please advise me.
Thanks in advance,
Stephano Mariani