[Top][All Lists]

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

Multiple Targets with autotools

From: Bartov, Asaf
Subject: Multiple Targets with autotools
Date: Wed, 30 Aug 2006 19:04:49 +0300


I need some expert advice on the GNU toolchain.

I have a large project that I'm trying to convert to use the GNU
autotools.  One requirement of the project is that each binary unit
(several shared libraries, several static libraries, and one executable)
be built in several configurations (some are Apache modules, so I want
module X to be built once for Apache 2.0, once for Apache 2.2, etc., and
I want each to have debug and release flavors, so at least four targets
per binary unit).

How do I express this in Automake?

Here's a sample of mine:

INCLUDES = -I../include
lib_LIBRARIES = liburlpat.a
liburlpat_a_SOURCES = trie.c urlpat.c


This creates only one target, of course, in the current (source)
directory.  How do I design the to provide for four binary
targets, each in a directory of its own, so that I'd end up having:


Many thanks in advance,


reply via email to

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