John Darrington <[EMAIL PROTECTED]> 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
directives.

Actually, it sounds like we're in agreement on that.
-- 
Ben Pfaff 
email: [EMAIL PROTECTED]
web: http://benpfaff.org


_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to