* configure.in: Add check for <sys/xattr.h>.
[mono.git] / support / Makefile.am
1 lib_LTLIBRARIES= libMonoPosixHelper.la
2
3 INCLUDES = \
4         $(GLIB_CFLAGS) \
5         -I$(top_srcdir)
6
7 # Source code which helps implement the ANSI C standards, and thus *should* be
8 # portable to any platform having a C compiler.
9 MPH_C_SOURCE =   \
10         errno.c              \
11         map.c          \
12         map.h          \
13         mph.h          \
14         signal.c       \
15         stdio.c        \
16         stdlib.c
17
18 # Source code which helps implement POSIX and other related Unix standards,
19 # and *may* be portable between Unix platforms.
20 MPH_UNIX_SOURCE = \
21         dirent.c        \
22         fcntl.c         \
23         fstab.c   \
24         grp.c           \
25         macros.c        \
26         old-map.c       \
27         old-map.h       \
28         pwd.c           \
29         serial.c        \
30         sys-mman.c      \
31         sys-sendfile.c  \
32         sys-stat.c      \
33         sys-statvfs.c   \
34         sys-time.c      \
35         sys-wait.c      \
36         sys-xattr.c     \
37         time.c          \
38         unistd.c         \
39         utime.c    \
40         x-struct-str.c
41
42 if PLATFORM_WIN32
43 MPH_SOURCE = $(MPH_C_SOURCE)
44 MPH_LIBS   =
45 else
46 MPH_SOURCE = $(MPH_C_SOURCE) $(MPH_UNIX_SOURCE)
47 MPH_LIBS   = $(GLIB_LIBS)
48 endif
49
50 if HAVE_ZLIB
51 Z_SOURCE = \
52         zlib_macros.c
53 Z_LIBS   = \
54         -lz
55 else
56 Z_SOURCE = 
57 Z_LIBS   = 
58 endif
59
60 libMonoPosixHelper_la_SOURCES = \
61         $(MPH_SOURCE) \
62         $(Z_SOURCE)
63
64 libMonoPosixHelper_la_LIBADD = \
65         $(MPH_LIBS) \
66         $(Z_LIBS)
67
68 libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
69
70
71 # Use this target to refresh the values in map.[ch]
72 #
73 refresh:
74         $(top_builddir)/runtime/mono-wrapper $(mcs_topdir)/class/Mono.Posix/Mono.Unix/make-map.exe $(mcs_topdir)/class/lib/default/Mono.Posix.dll map
75