automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple objects from one source file


From: Stephano Mariani
Subject: Multiple objects from one source file
Date: Wed, 13 Mar 2002 00:35:21 -0000

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]