[sgen] Always use the GC descriptor instead of MonoClass.has_references.
[mono.git] / mcs / class / Mono.Posix / Makefile
index 7c718dfbd770feabaa6e0017b82399f1760728e2..03af46719ff64eeaef1d6bdda535fcc89e22a38b 100644 (file)
@@ -3,21 +3,20 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = Mono.Posix.dll
-LIB_MCS_FLAGS = /unsafe /r:$(corlib) /r:System.dll
-TEST_MCS_FLAGS = /r:Mono.Posix.dll /r:System.dll
+# Don't warn about [Obsolete] members, as there are now *lots* of [Obsolete]
+# members, generating volumes of output.
+LIB_MCS_FLAGS = /unsafe /r:$(corlib) /r:System.dll /nowarn:0618,612
+TEST_MCS_FLAGS = /r:Mono.Posix.dll /r:System.dll /nowarn:0219,0618
 
-include ../../build/library.make
-
-EXTRA_DISTFILES = Mono.Unix/make-map.cs
+LIBRARY_COMPILE = $(BOOT_COMPILE)
 
-all-local: Mono.Unix/make-map.exe 
+include ../../build/library.make
 
-Mono.Unix/make-map.exe: Mono.Unix/make-map.cs $(the_lib)
-       cp $(the_lib) Mono.Unix/
-ifneq ($(PLATFORM),win32)
-       $(CSCOMPILE)  -out:Mono.Unix/make-map.exe -r:Mono.Posix.dll Mono.Unix/make-map.cs
-else
-       $(CSCOMPILE)  -out:Mono.Unix/make-map.exe -r:Mono.Posix.dll Mono.Unix\\make-map.cs
-endif
+update-mappings:
+       cp `pkg-config --variable=Sources create-native-map` Mono.Unix.Native
+       cp `pkg-config --variable=Programs create-native-map` Mono.Unix.Native
+       mono --debug Mono.Unix.Native/create-native-map.exe \
+               --library=MonoPosixHelper \
+               --rename-namespace Mono.Unix.Native=Mono.Posix \
+               $(the_lib) Mono.Unix.Native/NativeConvert.generated
 
-CLEAN_FILES = Mono.Unix/make-map.exe Mono.Unix/Mono.Posix.dll