2003-05-01 Alp Toker <alp@atoker.com>
[mono.git] / mcs / tools / makefile.gnu
index d2d4ca231dfb11474de0c3d6797cc9ca7e8b6412..a28ed7bc8aab29e75a0da8ef42ab3b7ea50181f7 100644 (file)
@@ -1,9 +1,10 @@
-CSC=mcs
+RUNTIME=mono
+CSC= $(RUNTIME) ../mcs/mcs.exe
 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/sqlsharp.exe secutil.exe cert2spc.exe
+MONO_TOOLS = monostyle.exe GenerateDelegate.exe EnumCheck.exe IFaceDisco.exe ./SqlSharp/sqlsharp.exe ./security/secutil.exe
 
 DIRS = 
 
@@ -11,11 +12,8 @@ DIRS =
 #MONO_TOOLS = monostyle.exe verifier.exe GenerateDelegate.exe EnumCheck.exe IFaceDisco.exe ./type-reflector/type-reflector.exe ./corcompare/CorCompare.exe ./SqlSharp/SqlSharpCli.exe
 
 all: tools
-       for i in $(DIRS) ; do \
-               $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
-       done
 
-linx: $(MONO_TOOLS)
+linux: $(MONO_TOOLS)
 
 tools: $(MONO_TOOLS)
 
@@ -30,9 +28,6 @@ install: all
        for i in $(MONO_TOOLS) ; do \
                ($(INSTALL) -m 755 $$i $(prefix)/bin/) || exit 1; \
        done
-       for i in $(DIRS) ; do \
-               $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
-       done
 
 monostyle.exe: monostyle.cs
        $(CSC) $(CSCFLAGS) monostyle.cs
@@ -44,7 +39,7 @@ verifier.exe: verifier.cs
        $(CSC) $(CSCFLAGS) verifier.cs
 
 ./SqlSharp/sqlsharp.exe: dummy
-       (cd SqlSharp; make CSC=$(CSC))
+       (cd SqlSharp; make)
 
 ./corcompare/CorCompare.exe: dummy
        (cd corcompare; make CorCompare.exe)
@@ -66,21 +61,16 @@ EnumCheck.exe: EnumCheck.cs EnumCheckAssemblyCollection.cs
 IFaceDisco.exe: IFaceDisco.cs XMLUtil.cs
        $(CSC) $(CSCFLAGS) /out:IFaceDisco.exe IFaceDisco.cs XMLUtil.cs
 
-secutil.exe: secutil.cs
-       $(CSC) $(CSCFLAGS) secutil.cs
-
-cert2spc.exe: cert2spc.cs ASN1.cs
-       $(CSC) $(CSCFLAGS) /out:cert2spc.exe cert2spc.cs ASN1.cs
+./security/secutil.exe: dummy
+       (cd security; make)
 
 clean:
        (cd corcompare; make clean)
        (cd SqlSharp; make clean)
+       (cd security; make clean)
        rm -f *.exe *.pdb *.dbg *.dll
        rm -f cormissing.xml
        rm -f ../../mono/doc/pending-classes.in
-       for i in $(DIRS) ; do \
-               $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
-       done
 
 dummy: