4 SUPPORT=libMonoSupportW.la
9 libMonoPosixHelper.la \
17 glib_libs = $(top_builddir)/mono/eglib/libeglib.la
19 # Source code which helps implement the ANSI C standards, and thus *should* be
20 # portable to any platform having a C compiler.
31 # Source code which helps implement POSIX and other related Unix standards,
32 # and *may* be portable between Unix platforms.
63 MPH_SOURCE = $(MPH_C_SOURCE)
64 MPH_LIBS = $(glib_libs)
66 MPH_SOURCE = $(MPH_C_SOURCE) $(MPH_UNIX_SOURCE)
67 MPH_LIBS = $(glib_libs)
103 Z_SOURCE = zlib-helper.c
106 Z_SOURCE = zlib-helper.c $(ZLIB_SOURCES)
110 libMonoPosixHelper_la_SOURCES = \
115 libMonoPosixHelper_la_LIBADD = \
120 # libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
121 libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version
122 libMonoSupportW_la_LDFLAGS = -no-undefined -avoid-version
124 libMonoSupportW_la_SOURCES = \
129 libMonoSupportW_la_LIBADD = \
133 mkdir -p $(TEST_BUNDLE_PATH)
134 cp -L .libs/libMonoPosixHelper$(libsuffix) $(TEST_BUNDLE_PATH)/
137 # Use this target to refresh the values in map.[ch]
140 cp `pkg-config --variable=Programs create-native-map` . && \
141 $(top_builddir)/runtime/mono-wrapper create-native-map.exe \
142 --autoconf-member=d_off \
143 --autoconf-member=d_reclen \
144 --autoconf-member=d_type \
145 --exclude-native-symbol=Mono_Posix_Stdlib_snprintf \
146 --impl-macro=_GNU_SOURCE --impl-macro=_XOPEN_SOURCE \
147 --impl-header="<sys/types.h>" \
148 --impl-header="<sys/stat.h>" \
149 --autoconf-header="<netinet/in.h>" \
150 --autoconf-header="<sys/time.h>" \
151 --autoconf-header="<sys/poll.h>" \
152 --autoconf-header="<sys/wait.h>" \
153 --autoconf-header="<sys/statvfs.h>" \
154 --autoconf-header="<sys/xattr.h>" \
155 --autoconf-header="<sys/mman.h>" \
156 --autoconf-header="<sys/socket.h>" \
157 --autoconf-header="<sys/uio.h>" \
158 --autoconf-header="<unistd.h>" \
159 --impl-header="<fcntl.h>" \
160 --impl-header="<signal.h>" \
161 --autoconf-header="<poll.h>" \
162 --autoconf-header="<grp.h>" \
163 --impl-header="<errno.h>" \
164 --autoconf-header="<syslog.h>" \
165 --autoconf-header="<dirent.h>" \
166 --autoconf-header="<utime.h>" \
167 --impl-header="<time.h>" \
168 --impl-header="\"mph.h\"" \
169 --rename-member=st_atime=st_atime_ \
170 --rename-member=st_ctime=st_ctime_ \
171 --rename-member=st_mtime=st_mtime_ \
172 --rename-namespace=Mono.Unix.Native=Mono.Posix \
173 --library=MonoPosixHelper \
174 $(mcs_topdir_from_srcdir)/class/lib/net_4_x/Mono.Posix.dll map
176 # Useful if mono is compiled with --enable-shared=no
179 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
180 echo "LIBTOOL = bash ./libtool" > 1
181 echo "LTCOMPILE = bash ./libtool --mode=compile $(COMPILE)" >> 1
182 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2
183 sed -e 's,LTCOMPILE =,LTCOMPILE2 =,g' 2 > 3