grouping libraries

2003-12-15 Thread Marty Leisner
Well, after much trial and error and head scratching, in order to group libraries together (with linker options trailing the libraries) I did: OUR_LIBS=../common/libCommon.a ../A/libA.a ../B/libB.a \ ../HW/source/libHW.a sim_LDADD=-Wl,--start-group $(OUR_LIBS) -Wl,--end-group

making convenience libraries without libtool

2003-12-11 Thread Marty Leisner
I'm using libtool to make convenience libraries merging sublibraries... I really don't need to use libtool since I don't build shared libraries. How can I use automake to build convenience libraries -- or do I need to make a command in the makefile.am I can invoke like this: build_lib -o

playing with recursive libtool static archives

2003-12-02 Thread Marty Leisner
How do I configure/construct Makefile.am to either: 1) tell libtool to use the --preserve-dup-deps flag or: 2) be able to switch in the linker flag --whole-archive/no-whole-archive in the right places. Everything I tried doesn't seem to work -- beyond hand hacking makefiles or

SUBDIRs and slashes

2003-11-26 Thread Marty Leisner
In recursive subsystems, some follow the rule 1 Makefile per directory I like to follow that rule when the Makefile does things besides recurse. We have an architecture where each subdirectory has source and include -- i.e. foo/source foo/include I had to put a makefile in foo which

how does AM_INIT_AUTOMAKE([options]) work?

2003-11-25 Thread Marty Leisner
I was under the impression I can pass command line options with this syntax... Options like foreign work but verbose doesn't. marty [EMAIL PROTECTED] Don't confuse education with schooling. Milton Friedman to Yogi Berra