[Mono-devel-list] Compiling to DLLs and then statically linking them into a PE

Vladimir Vukicevic vladimir at pobox.com
Sun Aug 31 19:14:56 EDT 2003


On Sat, 2003-08-30 at 14:42, Chris Seaton wrote:

> 
> I've run into this problem before, as I originally wanted to use make to
> compile my C# programs.

This is a tangent, but what prevents you from using make to compile your
C# programs?  You just end up skipping a step -- no .c -> .o ->
executable, just straight .cs -> executable.

So, instead of:

SOURCES = foo.c bar.c
OBJS = $(SOURCES:.c=.o)

exec: $(OBJS)
	gcc -o exec $(OBJS)

You'd just have:

SOURCES = foo.cs bar.cs

exec: $(SOURCES)
	mcs /out:exec.exe $(SOURCES)

Or is there another requirement that I'm missing?

	- Vlad





More information about the Mono-devel-list mailing list