building library with automake
I want to build a library with automake
But the library objects come from two parts
say A_SOURCES and B_SOURCES
and the compilation options for A are different from B
If I use
lib_LIBRARIES = mylib.a
then if I have
mylib_a_SOURCES = list of files for A and B
they will be all compiled with the same options
I want to have something like
lib_LIBRARIES = mylib.a
mylib_a_OBJS = $(A_OBJS) $(B_OBJS)
A_SOURCES = a_list
A_CPPFLAGS = FLAGS_FOR_A
B_SOURCES = b_list
B_CPPFALGS = FLAGS_FOR_B
How to do this ?
|