On Tue, Feb 05, 2008 at 09:30:39AM +0000, Simon Marlow wrote:
> If using the generated Makefiles is too hard for bootstrapping, then by 
> all means build an alternative solution using hand-written Makefiles or 
> whatever.

Ok, sounds like a plan.

> >- I need a simple way to get transitive inter-library dependencies
> >  that'll be included in the HC file bundle.
> 
> I don't have a good enough grasp of the details to suggest a good solution 
> here, I'm afraid.

I'm doing this now using ghc-pkg-inplace and some shell commands
that create a file Makefile.dep in all library directories. Each
Makefile.dep then looks like this:

DEP_PKGS += base
-include ../base/Makefile.dep
DEP_PKGS += directory
-include ../directory/Makefile.dep

It's ugly, but it works (unless circular dependencies creep in),
and from $(DEP_PKGS) the correct flags for gcc etc. can be derived.

Hopefully I'll see this weekend wether this works or not.

Ciao,
        Kili

-- 
In god we trust, in C we code.
                -- Marc Balmer

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to