On Fri, 12 Mar 2004, Norman Gray wrote:
> Tim,
>
> On Thu, 11 Mar 2004, Tim Jenness wrote:
>
> > I'm working on putting NBS into CVS. All trivial *except* that the C
> > interface and the fortran interface use the same .c file and the same
> > functions. You compile the fortran bindings by default and the C bindings
> > with -Dc_string.
>
> There's an example which mentions this (in a slightly tortuous way, and
> difficult to re-find) in the automake manual, `building true and false'
> <http://www.gnu.org/software/automake/manual/html_node/true.html>.
Thanks. NBS now works, after a fashion.
I could not use the scheme below since I am not trying to build an
executable, I'm trying to build a library and that requires .lo not .o
files. In the end I
1. Make a soft link from nbs.c to nbsc.c
2. Create a whole second shared library with special CPPFLAGS, compiling
nbsc.c to nbsc.lo
3. Add this library into the main library.
I'm sure you are cringing but it does work :-)
NBS has another issue in that it tries to make sure that the compiler
aligns on 8 byte boundaries. There is some special juju in nbs_link
to do that but I think I need to get configure to work out that juju
(what's the special macro name for that?) and then turn nbs_link into
nbs_link.in and do macro substitution.
I note that make clean/distclean does not remove BUILT_SOURCES. Also,
how do I add explicit files to the clean list? [eg nbsc.c]
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|