From cae5ca7a36c861fd0a37454548f8987a35cec5bc Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 27 Aug 2003 09:35:40 +0000 Subject: [PATCH] Changed to work with Mono and Microsoft compilers instead of pnet. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5016 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/csharp/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Examples/test-suite/csharp/Makefile b/Examples/test-suite/csharp/Makefile index d9116ee69..0dc4d13c5 100644 --- a/Examples/test-suite/csharp/Makefile +++ b/Examples/test-suite/csharp/Makefile @@ -46,19 +46,23 @@ setup = \ # Note CSharp uses LD_LIBRARY_PATH under Unix, PATH under Cygwin/Windows and SHLIB_PATH on HPUX. run_testcase = \ if [ -f $*_runme.cs ]; then ( \ - $(MAKE) -f $*/$(TOP)/Makefile CSHARPFLAGS='-o $*_runme' CSHARPSRCS='$*_runme.cs $*/*.cs' csharp_compile; \ - env LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH" PATH="$*:$$PATH" SHLIB_PATH="$*:$$SHLIB_PATH" ilrun $*_runme; ) \ + $(MAKE) -f $*/$(TOP)/Makefile CSHARPFLAGS='-nologo -out:$*_runme.exe' CSHARPSRCS='$*_runme.cs $*\\*.cs' csharp_compile; \ + env LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH" PATH="$*:$$PATH" SHLIB_PATH="$*:$$SHLIB_PATH" $*_runme.exe; ) \ else ( \ cd $*; \ - $(MAKE) -f $(TOP)/Makefile CSHARPFLAGS='-c' CSHARPSRCS='*.cs' csharp_compile; ); \ + $(MAKE) -f $(TOP)/Makefile CSHARPFLAGS='-nologo -t:module -out:$*.netmodule' CSHARPSRCS='*.cs' csharp_compile; ); \ fi; +# Above works for Microsoft and Mono. +# For pnet use different path separator and use interpreter to run: +# $(MAKE) -f $*/$(TOP)/Makefile CSHARPFLAGS='-nologo -out:$*_runme.exe' CSHARPSRCS='$*_runme.cs $*/*.cs' csharp_compile; \ +# env LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH" PATH="$*:$$PATH" SHLIB_PATH="$*:$$SHLIB_PATH" ilrun $*_runme.exe; ) \ # Clean: remove testcase directories %.clean: - @rm -f $*_runme @if [ -d $* ]; then \ rm -rf $*; \ fi; clean: + @rm -f *.exe