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