2004-11-27 Miguel de Icaza <miguel@ximian.com>
[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         stdio.c         \
24         stdlib.c        \
25         sys-mman.c      \
26         sys-sendfile.c  \
27         sys-stat.c      \
28         sys-time.c      \
29         sys-wait.c      \
30         time.c          \
31         unistd.c         \
32         utime.c
33
34 if HAVE_ZLIB
35 libMonoPosixHelper_la_SOURCES = \
36         $(MPH_SOURCE) zlib_macros.c
37
38 libMonoPosixHelper_la_LIBADD = -lz
39 else
40 libMonoPosixHelper_la_SOURCES = $(MPH_SOURCE)
41 endif
42
43 libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
44
45
46 # Use this target to refresh the values in map.[ch]
47 #
48 refresh:
49         $(top_builddir)/runtime/mono-wrapper $(mcs_topdir)/class/Mono.Posix/Mono.Posix/make-map.exe $(mcs_topdir)/class/lib/Mono.Posix.dll map
50