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