[Mono-devel-list] Build system
Peter Williams
peter at newton.cx
Thu May 22 20:55:26 EDT 2003
On Thu, 2003-05-22 at 20:21, Miguel de Icaza wrote:
> * We need probably help from Peter here, but I want to be able
> to define at the toplevel a set of MCS flags to pass, like:
> -d:CORE -d:NET_1_1, etc.
>
> Thoughts?
If you're going to use make I don't think there are any really good ways
to have a variable (MCS_FLAGS or whatever) that is changable and
relevant at all points in the build tree.
For example, you can do MCS_FLAGS = -d:foo in your toplevel makefile,
and have
$(MAKE) -C $$subdir MCS_FLAGS=$(MCS_FLAGS)
whenever you invoke make recursively, but then if you run it in a
subdirectory the variable will be blank.
export MCS_FLAGS='-d:foo'
make -e
might work but then you'd need to do this every time and make -e might
have side effects.
It might make sense to move to Automake; that would propagate variables
about as well as can be done and it wouldn't be that hard to integrate
C# compilation, I think, using a few included makefiles (a la
library.make now).
Or it might be fun to write a build tool in C#...
Peter
--
Peter Williams peter at newton.cx
"[Ninjas] are cool; and by cool, I mean totally sweet."
-- REAL Ultimate Power
More information about the Mono-devel-list
mailing list