Merge pull request #2799 from BrzVlad/fix-conc-card-clean
[mono.git] / mcs / tools / csharp / Makefile
index 0de5910c573b2710223aeaeadf5d0d1f4bef943e..7a03be5761c6aadb0b99e9f4e2711e2d8bc4d919 100644 (file)
@@ -1,17 +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 -r:System.dll -unsafe $(NOWARNS)
 
-ifeq (net_2_0, $(PROFILE))
-PROGRAM = $(topdir)/class/lib/$(PROFILE)/csharp.exe
-else
-PROGRAM = 
-endif
+PROGRAM = csharp.exe
 
-DISTFILES = repl.txt csharp.exe.sources
+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)
+