Merge pull request #2400 from esdrubal/extrahead
[mono.git] / mcs / class / Mono.Posix / Makefile
index 8914d43621c1871859d9815205e3af5d237f543f..9cde3498e4d17dde9a74721a7ad9a25052da0ec4 100644 (file)
@@ -5,21 +5,19 @@ include ../../build/rules.make
 LIBRARY = Mono.Posix.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
-TEST_MCS_FLAGS = /r:Mono.Posix.dll /r:System.dll /nowarn:0219,0618
+LIB_REFS = System
+LIB_MCS_FLAGS = /unsafe /r:$(corlib) /nowarn:0618,612
+TEST_MCS_FLAGS = /unsafe /r:Mono.Posix.dll /r:System.dll /nowarn:0219,0618
 
-include ../../build/library.make
-
-EXTRA_DISTFILES = Mono.Unix.Native/make-map.cs
+LIBRARY_COMPILE = $(BOOT_COMPILE)
 
-all-local: Mono.Unix.Native/make-map.exe 
+include ../../build/library.make
 
-Mono.Unix.Native/make-map.exe: Mono.Unix.Native/make-map.cs $(the_lib)
-       cp $(the_lib) Mono.Unix.Native/
-ifneq ($(PLATFORM),win32)
-       $(CSCOMPILE) -debug+ -out:Mono.Unix.Native/make-map.exe -r:Mono.Posix.dll Mono.Unix.Native/make-map.cs
-else
-       $(CSCOMPILE) -debug+ -out:Mono.Unix.Native/make-map.exe -r:Mono.Posix.dll Mono.Unix.Native\\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.Native/make-map.exe Mono.Unix.Native/Mono.Posix.dll