
15 Mar
2004
15 Mar
'04
8:09 a.m.
The ghc users guide contains this helpful advice about split-objs..
"don't use it unless you know what you're doing!"
OK, I admit I don't know what I'm doing. But despite this handicap I would like to use split-objs to build a library. I've already discovered it doesn't work with --make, so I guess I have to use a makefile.
Are there any other gotchas waiting for me? Anything else I need to know?
You'll probably need special Makefile rules to handle it too. I think you need to make the subdirectory for the objects (M_split/) beforehand, and touch the object file M.o afterward (so that make dependencies still work). Cheers, Simon