2008-12-04 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / tools / csharp / Makefile
index daebd8137c66b27efafe2b4f00bff51de4849adb..7451e0acee6bcbe1679ad2646c76636c77eb835f 100644 (file)
@@ -1,8 +1,12 @@
 thisdir = tools/csharp
 SUBDIRS = 
+mono_sourcelibs_DIR  = $(DESTDIR)$(mono_libdir)/mono-source-libs
+
 include ../../build/rules.make
 
-LOCAL_MCS_FLAGS = -r:$(topdir)/class/lib/$(PROFILE)/gmcs.exe
+// 3021: CLS attribute not needed since assembly is not CLS compliant
+NOWARNS = -nowarn:3021
+LOCAL_MCS_FLAGS = -r:$(topdir)/class/lib/$(PROFILE)/gmcs.exe -r:$(topdir)/class/lib/$(PROFILE)/Mono.Posix.dll -r:Mono.Management.dll -unsafe $(NOWARNS)
 
 PROGRAM = $(topdir)/class/lib/$(PROFILE)/csharp.exe
 
@@ -11,3 +15,9 @@ DISTFILES = repl.txt
 CLEAN_FILES = csharp.exe *.mdb
 
 include ../../build/executable.make
+
+install-local: install-source
+
+install-source:
+       -$(MKINSTALLDIRS) $(mono_sourcelibs_DIR)
+       $(INSTALL) -m 644 getline.cs $(mono_sourcelibs_DIR)