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