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