2005-06-05 Peter Bartok <pbartok@novell.com>
[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         map-icalls.h
18
19 # Source code which helps implement POSIX and other related Unix standards,
20 # and *may* be portable between Unix platforms.
21 MPH_UNIX_SOURCE = \
22         dirent.c        \
23         fcntl.c         \
24         fstab.c   \
25         grp.c           \
26         macros.c        \
27         old-map.c       \
28         old-map.h       \
29         pwd.c           \
30         serial.c        \
31         sys-mman.c      \
32         sys-sendfile.c  \
33         sys-stat.c      \
34         sys-statvfs.c   \
35         sys-time.c      \
36         sys-wait.c      \
37         sys-xattr.c     \
38         time.c          \
39         unistd.c         \
40         utime.c    \
41         x-struct-str.c
42
43 if PLATFORM_WIN32
44 MPH_SOURCE = $(MPH_C_SOURCE)
45 MPH_LIBS   =
46 else
47 MPH_SOURCE = $(MPH_C_SOURCE) $(MPH_UNIX_SOURCE)
48 MPH_LIBS   = $(GLIB_LIBS)
49 endif
50
51 if HAVE_ZLIB
52 Z_SOURCE = \
53         zlib_macros.c
54 Z_LIBS   = \
55         -lz
56 else
57 Z_SOURCE = 
58 Z_LIBS   = 
59 endif
60
61 libMonoPosixHelper_la_SOURCES = \
62         $(MPH_SOURCE) \
63         $(Z_SOURCE)
64
65 libMonoPosixHelper_la_LIBADD = \
66         $(MPH_LIBS) \
67         $(Z_LIBS)
68
69 libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
70
71
72 # Use this target to refresh the values in map.[ch]
73 #
74 refresh:
75         $(top_builddir)/runtime/mono-wrapper $(mcs_topdir)/class/Mono.Posix/Mono.Unix/make-map.exe $(mcs_topdir)/class/lib/default/Mono.Posix.dll map
76