This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

is this possible?


I have a project that is organized in the folloing manner (and really
can't be changed):

voltron/
voltron/lib/
voltron/lib/dead/
voltron/lib/cadence/
voltron/lib/db/
voltron/lib/db/pdus/
voltron/lib/voltron/
voltron/lib/voltron/pdus/
voltron/lib/voltron/datatypes/
voltron/lib/voltron/server/
voltron/lib/voltron/server/pdus/
voltron/client/
voltron/rmserver/
voltron/dbserver/

I want to build three uninstalled libraries (dead, cadence, dbs, voltron)
and two executables (server, dbserver). 

libdead has no dependencies.libcadence has dependencies on libdead. libdbs
has dependencies on libcadence. libvoltron has dependencies on libcadence
and libdbs. The dbserver executable links in libdead, libcadence and
libdbs. The rmserver links in libdead, libcadence, libdbs and libvoltron.

I have no problems in the libdead and libcadence projects as all of their
files are below them in their inc/ and src/ directories. libvoltron has
source files in the pdus/, datatypes/, server/ and server/pdus/
directories. From the lib/voltron/ directory I need to descend into these
directories and build all source files and create the library in the
lib/voltron/ directory itself. When I run automake I get the following:

automake: Makefile.am: not supported: source file
`$(top_srcdir)/pdus/src/AlertMsgPDU.cpp' is in subdirectory

Is there a way I can do this? (it seems like a shallow package to me)

On a side note, where could I look in the docs on how to create new
targets (such as Rational Purify/Quantify and Parasoft Insure++)
Purify and Quantify require that the linking be done with their provided
tools, so CXX must be changed at link time. Insure++, OTOH, requires that
all object files be built with their tools. In my hand-built makefile I do
something like:

%_ins.o: %.cpp
	$(INSURE) $(CXXFLAGS) -c $< -o $@

rmserver.insure : $(OBJS:%.o=%_ins.o)
	$(INSURE) $(CXX) $(CXXFLAGS) -static -o $@ $^ $(ARIES_LIBS)

I would like to have *.debug, *.quantify, *.purify, *.insure and an
unadorned optimized production build with symbols stripped out.

Can anyone suggest where I might find the necessary info. The automake
manual leaves a lot to be desired.

many thanks in advance,

Allen Gooch



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]