file-io.c: Don't consider sockets as directory and avoid an endless loop. Fix bug...
[mono.git] / mono / metadata / Makefile.am
1 if PLATFORM_WIN32
2 # Use -m here. This will use / as directory separator (C:/WINNT).
3 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
4 # / by \ if running under WIN32.
5 assembliesdir = `cygpath -m "${libdir}"`
6 confdir = `cygpath -m "${sysconfdir}"`
7 export HOST_CC
8 else
9 # The mingw math.h has "extern inline" functions that dont appear in libs, so
10 # optimisation is required to actually inline them
11 AM_CFLAGS = -O
12 assembliesdir = $(exec_prefix)/lib
13 confdir = $(sysconfdir)
14 endif
15
16 PLATFORM_LIB = ../os/libmonoos.la 
17
18 bin_PROGRAMS = pedump monodiet
19
20 #
21 # libtool is not capable of creating static/shared versions of the same
22 # convenience lib, so we have to do it ourselves
23 #
24 noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la
25
26
27 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
28
29 #
30 # Make sure any prefix changes are updated in the binaries too.
31 #
32 #  assembly.c uses MONO_ASSEMBLIES
33 #  mono-config.c uses MONO_CFG_DIR
34 #
35 # This won't result in many more false positives than AC_DEFINEing them
36 # in configure.in.
37 #
38 assembly.lo mono-config.lo: Makefile
39
40 CLEANFILES = mono-bundle.stamp
41
42 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(PLATFORM_LIB) $(libmonoruntime_la_LIBADD)
43
44 libmonoruntime_la_SOURCES = \
45         reflection.c    \
46         object.c        \
47         object-internals.h      \
48         icall.c         \
49         char-conversions.h \
50         decimal.c       \
51         decimal.h       \
52         boehm-gc.c      \
53         null-gc.c       \
54         gc.c            \
55         gc-internal.h   \
56         marshal.c       \
57         marshal.h       \
58         monitor.c       \
59         monitor.h       \
60         tabledefs.h \
61         threads.c       \
62         threads-types.h \
63         threadpool.c    \
64         threadpool.h    \
65         threadpool-internals.h  \
66         file-io.c       \
67         file-io.h       \
68         socket-io.c     \
69         socket-io.h     \
70         exception.c     \
71         exception.h     \
72         unicode.c       \
73         unicode.h       \
74         appdomain.c     \
75         debug-mono-symfile.h    \
76         debug-mono-symfile.c    \
77         mono-debug.h            \
78         mono-debug.c            \
79         mono-debug-debugger.h   \
80         mono-debug-debugger.c   \
81         profiler.c      \
82         profiler-private.h      \
83         rand.h          \
84         rand.c          \
85         security.c      \
86         security.h      \
87         string-icalls.c \
88         string-icalls.h \
89         sysmath.h       \
90         sysmath.c       \
91         process.c       \
92         process.h       \
93         environment.c   \
94         environment.h   \
95         locales.c       \
96         locales.h       \
97         filewatcher.c   \
98         filewatcher.h   \
99         culture-info.h  \
100         culture-info-tables.h   \
101         security-manager.c      \
102         security-manager.h      \
103         console-io.c            \
104         console-io.h    \
105         assembly.c      \
106         domain.c        \
107         domain-internals.h      \
108         opcodes.c       \
109         image.c         \
110         cil-coff.h      \
111         metadata.c      \
112         metadata-internals.h    \
113         verify.c        \
114         mono-endian.c   \
115         mono-endian.h   \
116         mono-config.c   \
117         mono-config.h   \
118         rawbuffer.c     \
119         rawbuffer.h     \
120         loader.c        \
121         class.c         \
122         class-internals.h               \
123         mempool.c       \
124         debug-helpers.c
125
126 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
127
128 libmonoruntime_static_la_LDFLAGS = -static
129
130 libmonoruntimeincludedir = $(includedir)/mono/metadata
131
132 libmonoruntimeinclude_HEADERS = \
133         appdomain.h     \
134         mono-debug.h    \
135         mono-gc.h       \
136         mono-debug-debugger.h   \
137         debug-mono-symfile.h    \
138         threads.h       \
139         environment.h   \
140         assembly.h      \
141         opcodes.h       \
142         blob.h          \
143         image.h         \
144         metadata.h      \
145         verify.h        \
146         reflection.h    \
147         row-indexes.h   \
148         tokentype.h     \
149         loader.h        \
150         class.h         \
151         object.h        \
152         exception.h     \
153         profiler.h      \
154         appdomain.h     \
155         debug-helpers.h \
156         mempool.h
157
158 pedump_SOURCES =                \
159         pedump.c
160
161 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
162         $(PLATFORM_LIB)                 \
163         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
164
165 monodiet_SOURCES = monodiet.c
166
167 monodiet_LDADD = \
168         libmonoruntime.la       \
169         ../io-layer/libwapi.la          \
170         ../utils/libmonoutils.la        \
171         $(PLATFORM_LIB)                 \
172         $(LIBGC_LIBS)                   \
173         $(GLIB_LIBS)                    \
174         $(GMODULE_LIBS)                 \
175         $(ICU_LIBS)                     \
176         -lm
177
178 EXTRA_DIST = make-bundle.pl sample-bundle
179