Merge pull request #1888 from joelmartinez/mdoc-flagsbug
[mono.git] / mcs / tools / csharp / Makefile
index daebd8137c66b27efafe2b4f00bff51de4849adb..1d74ed5d9ab7c8aca9664e36895a05f771827fa1 100644 (file)
@@ -1,13 +1,24 @@
 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)/Mono.CSharp.dll -r:$(topdir)/class/lib/$(PROFILE)/Mono.Posix.dll -r:Mono.Management.dll -unsafe $(NOWARNS)
 
-PROGRAM = $(topdir)/class/lib/$(PROFILE)/csharp.exe
+PROGRAM = csharp.exe
 
 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)
+