4 SUPPORT=libMonoSupportW.la
7 libMonoPosixHelper.la \
14 # Source code which helps implement the ANSI C standards, and thus *should* be
15 # portable to any platform having a C compiler.
26 # Source code which helps implement POSIX and other related Unix standards,
27 # and *may* be portable between Unix platforms.
54 MPH_SOURCE = $(MPH_C_SOURCE)
55 MPH_LIBS = $(GLIB_LIBS)
57 MPH_SOURCE = $(MPH_C_SOURCE) $(MPH_UNIX_SOURCE)
58 MPH_LIBS = $(GLIB_LIBS)
94 Z_SOURCE = zlib-helper.c
97 Z_SOURCE = zlib-helper.c $(ZLIB_SOURCES)
101 libMonoPosixHelper_la_SOURCES = \
106 libMonoPosixHelper_la_LIBADD = \
111 # libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
112 libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version
113 libMonoSupportW_la_LDFLAGS = -no-undefined -avoid-version
115 libMonoSupportW_la_SOURCES = \
120 libMonoSupportW_la_LIBADD = \
124 # Use this target to refresh the values in map.[ch]
127 cp `pkg-config --variable=Programs create-native-map` . && \
128 $(top_builddir)/runtime/mono-wrapper create-native-map.exe \
129 --autoconf-member=d_off \
130 --autoconf-member=d_reclen \
131 --autoconf-member=d_type \
132 --exclude-native-symbol=Mono_Posix_Stdlib_snprintf \
133 --impl-macro=_GNU_SOURCE --impl-macro=_XOPEN_SOURCE \
134 --impl-header="<sys/types.h>" \
135 --impl-header="<sys/stat.h>" \
136 --autoconf-header="<sys/time.h>" \
137 --autoconf-header="<sys/poll.h>" \
138 --autoconf-header="<sys/wait.h>" \
139 --autoconf-header="<sys/statvfs.h>" \
140 --autoconf-header="<sys/xattr.h>" \
141 --autoconf-header="<sys/mman.h>" \
142 --autoconf-header="<unistd.h>" \
143 --impl-header="<fcntl.h>" \
144 --impl-header="<signal.h>" \
145 --autoconf-header="<poll.h>" \
146 --autoconf-header="<grp.h>" \
147 --impl-header="<errno.h>" \
148 --autoconf-header="<syslog.h>" \
149 --autoconf-header="<dirent.h>" \
150 --autoconf-header="<utime.h>" \
151 --impl-header="<time.h>" \
152 --impl-header="\"mph.h\"" \
153 --rename-member=st_atime=st_atime_ \
154 --rename-member=st_ctime=st_ctime_ \
155 --rename-member=st_mtime=st_mtime_ \
156 --rename-namespace=Mono.Unix.Native=Mono.Posix \
157 --library=MonoPosixHelper \
158 $(mcs_topdir)/class/lib/net_2_0/Mono.Posix.dll map
160 # Useful if mono is compiled with --enable-shared=no
163 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
164 echo "LIBTOOL = bash ./libtool" > 1
165 echo "LTCOMPILE = bash ./libtool --mode=compile $(COMPILE)" >> 1
166 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2
167 sed -e 's,LTCOMPILE =,LTCOMPILE2 =,g' 2 > 3