Using --make with -odir and hierarchical modules

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Wed, 15 Jan 2003 16:53:07 +0000


Martin Norbäck <d95mback@dtek.chalmers.se> writes:

> The GHC manual needs to specify what happens when you use -odir and
> hierarchical modules with --make.

It may be of interest to note that hmake currently uses solution 2 below.

> Solution 2: files put in -odir are put in directories (files will end up
> in Program/output/Bar/Module.o and Program/output/Foo/Module.o)
> This is also a slight change in semantics, since files are put in
> directories. May affect Makefiles that does "ar output/*.o" or similar.

Regards,
    Malcolm