2003-05-01 Alp Toker <alp@atoker.com>
[mono.git] / mcs / tools / makefile.gnu
1 RUNTIME=mono
2 CSC= $(RUNTIME) ../mcs/mcs.exe
3 CSCRIPT=$(WINDIR)/system32/cscript.exe
4 CSCFLAGS=/nologo /debug+ /debug:full 
5 INSTALL = /usr/bin/install
6
7 MONO_TOOLS = monostyle.exe GenerateDelegate.exe EnumCheck.exe IFaceDisco.exe ./SqlSharp/sqlsharp.exe ./security/secutil.exe
8
9 DIRS = 
10
11 # tools commented here because they were unable to build under linux
12 #MONO_TOOLS = monostyle.exe verifier.exe GenerateDelegate.exe EnumCheck.exe IFaceDisco.exe ./type-reflector/type-reflector.exe ./corcompare/CorCompare.exe ./SqlSharp/SqlSharpCli.exe
13
14 all: tools
15
16 linux: $(MONO_TOOLS)
17
18 tools: $(MONO_TOOLS)
19
20 windows: $(MONO_TOOLS)
21
22 install: all
23         if test x$$prefix = x; then \
24                 echo Usage is: make -f makefile.gnu install prefix=YOURPREFIX; \
25                 exit 1; \
26         fi;
27         mkdir -p $(prefix)/bin/
28         for i in $(MONO_TOOLS) ; do \
29                 ($(INSTALL) -m 755 $$i $(prefix)/bin/) || exit 1; \
30         done
31
32 monostyle.exe: monostyle.cs
33         $(CSC) $(CSCFLAGS) monostyle.cs
34
35 GenerateDelegate.exe: GenerateDelegate.cs
36         $(CSC) $(CSCFLAGS) /out:$@ $<
37
38 verifier.exe: verifier.cs
39         $(CSC) $(CSCFLAGS) verifier.cs
40
41 ./SqlSharp/sqlsharp.exe: dummy
42         (cd SqlSharp; make)
43
44 ./corcompare/CorCompare.exe: dummy
45         (cd corcompare; make CorCompare.exe)
46
47 update: ../../mono/doc/pending-classes
48
49 cormissing.xml: ./corcompare/CorCompare.exe ../class/lib/corlib_cmp.dll
50         ./corcompare/CorCompare.exe -x cormissing.xml -f corlib -ms mscorlib ../class/lib/corlib_cmp.dll
51
52 ../../mono/doc/pending-classes: ./corcompare/cormissing.xsl cormissing.xml
53         $(CSCRIPT) /nologo ./corcompare/transform.js cormissing.xml ./corcompare/cormissing.xsl > ../../mono/doc/pending-classes
54
55
56 EnumCheck: EnumCheck.exe
57
58 EnumCheck.exe: EnumCheck.cs EnumCheckAssemblyCollection.cs
59         $(CSC) $(CSCFLAGS) /out:EnumCheck.exe EnumCheck.cs EnumCheckAssemblyCollection.cs
60
61 IFaceDisco.exe: IFaceDisco.cs XMLUtil.cs
62         $(CSC) $(CSCFLAGS) /out:IFaceDisco.exe IFaceDisco.cs XMLUtil.cs
63
64 ./security/secutil.exe: dummy
65         (cd security; make)
66
67 clean:
68         (cd corcompare; make clean)
69         (cd SqlSharp; make clean)
70         (cd security; make clean)
71         rm -f *.exe *.pdb *.dbg *.dll
72         rm -f cormissing.xml
73         rm -f ../../mono/doc/pending-classes.in
74
75 dummy:
76
77 test: