15171af53a084f4f519f2c0c5a74abc46a49dd37
[mono.git] / support / Makefile.am
1 if PLATFORM_WIN32
2 lib_LTLIBRARIES= 
3 else
4 lib_LTLIBRARIES= libMonoPosixHelper.la
5 endif
6
7 INCLUDES = \
8         $(GLIB_CFLAGS) \
9         -I$(top_srcdir)
10
11 MPH_SOURCE = \
12         mph.h           \
13         old-map.h       \
14         map.h           \
15         dirent.c        \
16         errno.c         \
17         fcntl.c         \
18         grp.c           \
19         macros.c        \
20         map.c           \
21         pwd.c           \
22         old-map.c       \
23         serial.c        \
24         stdio.c         \
25         stdlib.c        \
26         sys-mman.c      \
27         sys-sendfile.c  \
28         sys-stat.c      \
29         sys-time.c      \
30         sys-wait.c      \
31         time.c          \
32         unistd.c         \
33         utime.c
34
35 if HAVE_ZLIB
36 libMonoPosixHelper_la_SOURCES = \
37         $(MPH_SOURCE) zlib_macros.c
38
39 libMonoPosixHelper_la_LIBADD = -lz
40 else
41 libMonoPosixHelper_la_SOURCES = $(MPH_SOURCE)
42 endif
43
44 libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
45
46
47 # Use this target to refresh the values in map.[ch]
48 #
49 refresh:
50         $(top_builddir)/runtime/mono-wrapper $(mcs_topdir)/class/Mono.Posix/Mono.Posix/make-map.exe $(mcs_topdir)/class/lib/Mono.Posix.dll map
51