[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pspp development

From: Ben Pfaff
Subject: Re: pspp development
Date: Thu, 02 Feb 2006 16:27:08 -0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

John Darrington <address@hidden> writes:

> I take it your plan would be to have each directory compiled as a
> static library, and linked into the binary at the end?  

Does Automake offer a better way?  I seem to recall that I tried
doing something like
        pspp_SOURCES = a.c b.c c.c ... subdir/x.c subdir/y.c
and it choked on it.  Really that'd be easier than dealing with a
bunch of libraries, though, if it worked.

> And what about header file search paths?  Currently, *every*
> file in *every* directory searches *every* directory for it's
> *.h #includes.  IMHO this is wrong, and would be cumbersome for
> such a large number of directories. So this would need to be
> thought about.

I don't think that's the scheme we use now.  We don't, for
example, have lib/linreg or src/expressions in the search path.
Instead we have lib and src in the search path, and to include
e.g. expressions/public.h we write 
        #include "expressions/public.h"

I wouldn't expect to add to the search path as we add
directories; instead, to add directory names to the #include

Actually, it sounds like we're in agreement on that.
Ben Pfaff 
email: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]