[Mono-list] Patch to add mcs tools to Linux build and install

Daniel Morgan danmorg@sc.rr.com
Thu, 28 Nov 2002 19:18:11 -0500


This is a multi-part message in MIME format.
--------------050108040504060401060507
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

I have attached two files as a patch to add mcs tools to the Linux build 
and install.

mcs_tools_build.patch.txt is the patch at adds the tools directory to 
the mcs/makefile.gnu build file.

makefile.gnu is a new file for the linux build to be put at mcs/tools

I have tested this with
     make
and
     make install prefix=$HOME/mono/install

Is this ok to commit to cvs?

Thanks,
Daniel


--------------050108040504060401060507
Content-Type: text/plain;
 name="mcs_tools_build.patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mcs_tools_build.patch.txt"

? mcs_tools_build.patch.txt
? class/Mono.Data.PostgreSqlClient/.makefrag
? class/Mono.Data.PostgreSqlClient/.response
? class/Mono.Data.PostgreSqlClient/library-deps.stamp
? class/Mono.Data.SybaseClient/.makefrag
? class/Mono.Data.SybaseClient/.response
? class/Mono.Data.SybaseClient/library-deps.stamp
? class/Mono.Data.Tds/.makefrag
? class/Mono.Data.Tds/.response
? class/Mono.Data.Tds/library-deps.stamp
? ilasm/parser/ILParser.cs
? tools/EnumCheck.dbg
? tools/GenerateDelegate.dbg
? tools/IFaceDisco.dbg
? tools/makefile.gnu
? tools/monostyle.dbg
? tools/SqlSharp/SqlSharpCli.dbg
Index: makefile.gnu
===================================================================
RCS file: /cvs/public/mcs/makefile.gnu,v
retrieving revision 1.15
diff -u -r1.15 makefile.gnu
--- makefile.gnu	16 Nov 2002 22:24:34 -0000	1.15
+++ makefile.gnu	29 Nov 2002 00:14:43 -0000
@@ -1,4 +1,4 @@
-DIRS=jay mcs class nunit monoresgen ilasm
+DIRS=jay mcs class nunit monoresgen ilasm tools
 DIST=monocharge-`date -u +%Y%m%d`
 
 #nant doesn't work yet

--------------050108040504060401060507
Content-Type: text/plain;
 name="makefile.gnu"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="makefile.gnu"

CSC=mcs
CSCRIPT=$(WINDIR)/system32/cscript.exe
CSCFLAGS=/nologo /debug+ /debug:full 
INSTALL = /usr/bin/install

MONO_TOOLS = monostyle.exe GenerateDelegate.exe EnumCheck.exe IFaceDisco.exe ./SqlSharp/SqlSharpCli.exe

# tools commented here because they were unable to build under linux
#MONO_TOOLS = monostyle.exe verifier.exe GenerateDelegate.exe EnumCheck.exe IFaceDisco.exe ./type-reflector/type-reflector.exe ./corcompare/CorCompare.exe ./SqlSharp/SqlSharpCli.exe

linx: $(MONO_TOOLS)

all: $(MONO_TOOLS)

windows: $(MONO_TOOLS)

install: all
	if test x$$prefix = x; then \
		echo Usage is: make -f makefile.gnu install prefix=YOURPREFIX; \
		exit 1; \
	fi;
	mkdir -p $(prefix)/bin/
	for i in $(MONO_TOOLS) ; do \
		($(INSTALL) -m 755 $$i $(prefix)/bin/) || exit 1; \
	done

monostyle.exe: monostyle.cs
	$(CSC) $(CSCFLAGS) monostyle.cs
	
GenerateDelegate.exe: GenerateDelegate.cs
	$(CSC) $(CSCFLAGS) /out:$@ $<

verifier.exe: verifier.cs
	$(CSC) $(CSCFLAGS) verifier.cs

./type-reflector/type-reflector.exe: dummy
	(cd type-reflector; make CSC=$(CSC))

./SqlSharp/SqlSharpCli.exe: dummy
	(cd SqlSharp; make CSC=$(CSC))

./corcompare/CorCompare.exe: dummy
	(cd corcompare; make CorCompare.exe)

update: ../../mono/doc/pending-classes

cormissing.xml: ./corcompare/CorCompare.exe ../class/lib/corlib_cmp.dll
	./corcompare/CorCompare.exe -x cormissing.xml -f corlib -ms mscorlib ../class/lib/corlib_cmp.dll

../../mono/doc/pending-classes: ./corcompare/cormissing.xsl cormissing.xml
	$(CSCRIPT) /nologo ./corcompare/transform.js cormissing.xml ./corcompare/cormissing.xsl > ../../mono/doc/pending-classes


EnumCheck: EnumCheck.exe

EnumCheck.exe: EnumCheck.cs EnumCheckAssemblyCollection.cs
	$(CSC) $(CSCFLAGS) /out:EnumCheck.exe EnumCheck.cs EnumCheckAssemblyCollection.cs

IFaceDisco.exe: IFaceDisco.cs XMLUtil.cs
	$(CSC) $(CSCFLAGS) /out:IFaceDisco.exe IFaceDisco.cs XMLUtil.cs


clean:
	(cd corcompare; make clean)
	(cd type-reflector; make clean)
	(cd SqlSharp; make clean)
	rm -f *.exe *.pdb *.dll
	rm -f cormissing.xml
	rm -f ../../mono/doc/pending-classes.in

dummy:

--------------050108040504060401060507--