makefile.gnu 2.4 KB

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