
15 Oct
2002
15 Oct
'02
11:14 a.m.
Martin Norbäck
So I want to redirect the output with -odir OUTPUT_DIR
However it won't work since ghc wll put the compilation output of both modules in OUTPUT_DIR/Module.o and subsequently fail to link.
You could use a recent version of hmake, with the -d OUTPUT_DIR option. This will place .o files in directories corresponding to their hierarchical names. e.g. hmake -ghc Main -i. -d OUTPUT_DIR generates OUTPUT_DIR/Main.o OUTPUT_DIR/Bar/Module.o OUTPUT_DIR/Foo/Module.o and links them to a final executable ./Main. Regards, Malcolm