automake
[Top][All Lists]
Advanced

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

Re: Creating two libraries with same sourcefiles but diffrent defines


From: Kelley Cook
Subject: Re: Creating two libraries with same sourcefiles but diffrent defines
Date: Wed, 15 Jun 2005 19:30:50 -0400
User-agent: Mozilla Thunderbird 1.0+ (Macintosh/20050503)

Roesner Thomas wrote:

I´d like to create a project (~ 30 subdirectories) with more than one library 
generated out of the same sourcefiles at the same time (no crosscompiler):

For example in directory av i´d like something like this:

libavstd_CFLAGS: -d NORMAL
libavstd_a_SOURCES: avbed.c avpub.c
libavstd_a_DEPENDENCIES: libavstd.a(avbed.c) libavstd.a(avpub.c)

libavpcl_CFLAGS: -d WITHPCL
libavpcl_a_SOURCES : avbed.c avpub.c
libavpcl_a_DEPENDENCIES: libavpcl.a(avbed.c) libavpcl.a(avpub.c)

where libavstd.a and libavpcl.a both depend on avbed.c and avpub.c, but they 
have diffrent compiler options.
If one of the sourcefiles has been changed, i need to start the compiler twice, 
with dependencies checked to the archive.
lib_LIBRARIES = libavstd.a libavpcl.a

libsources = avbed.c avpub.c
libavstd_a_SOURCES = $(libsources)
libavstd_a_CPPFLAGS = -DNORMAL $(AM_CPPFLAGS)

libavpcl_a_SOURCES = $(libsources)
libavpcl_a_CPPFLAGS = -DWITHPCL $(AM_CPPFLAGS)





reply via email to

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