[Mono-list] Build to intermediate file?

Paolo Molaro lupus@ximian.com
Thu, 25 Jul 2002 17:54:52 +0200

On 07/25/02 J. Perkins wrote:
> Is it possible to build a C# file to some sort of intermediate
> format which can linked into a final module, like the traditional
> .c -> .o -> .so path? I'm trying to integrate C# into an existing
> C++ project, and I'm having some trouble getting the build scripts
> to work properly. I could treat the whole C# build as a link step,
> but if no files get built, then the link step never gets run.
> I'm currently working around this by making my "build" step a
> simply 'cp source.cs $(OBJ_DIR)/source.cs', and then build
> with 'monomcs -o $@ $(OBJ_DIR)/*.cs', seems to work okay but
> it would be nice if I could accomplish something useful, like
> parsing or something, during that build step.

There is no need for an intermediate step with mcs: I would simply use
mcs in the build step and (if you really have to add a link script)
use a batch file that does nothing as the link step.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better