2005-01-07 Sebastien Pouliot <sebastien@ximian.com>
[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 = libmetadata.la libmonoruntime.la libmetadata-static.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 libmetadata_la_LIBADD = $(bundle_obj) $(PLATFORM_LIB)
33
34 libmonoruntime_static_la_LIBADD = $(libmonoruntime_la_LIBADD)
35 libmetadata_static_la_LIBADD = $(libmetadata_la_LIBADD)
36
37 libmonoruntime_la_SOURCES = \
38         reflection.c    \
39         object.c        \
40         object-internals.h      \
41         icall.c         \
42         char-conversions.h \
43         decimal.c       \
44         decimal.h       \
45         gc.c            \
46         gc-internal.h   \
47         marshal.c       \
48         marshal.h       \
49         monitor.c       \
50         monitor.h       \
51         threads.c       \
52         threads-types.h \
53         threadpool.c    \
54         threadpool.h    \
55         file-io.c       \
56         file-io.h       \
57         socket-io.c     \
58         socket-io.h     \
59         exception.c     \
60         exception.h     \
61         unicode.c       \
62         unicode.h       \
63         appdomain.c     \
64         debug-mono-symfile.h    \
65         debug-mono-symfile.c    \
66         mono-debug.h            \
67         mono-debug.c            \
68         mono-debug-debugger.h   \
69         mono-debug-debugger.c   \
70         profiler.c      \
71         profiler-private.h      \
72         rand.h          \
73         rand.c          \
74         security.c      \
75         security.h      \
76         string-icalls.c \
77         string-icalls.h \
78         sysmath.h       \
79         sysmath.c       \
80         process.c       \
81         process.h       \
82         environment.c   \
83         environment.h   \
84         locales.c       \
85         locales.h       \
86         filewatcher.c   \
87         filewatcher.h   \
88         culture-info.h  \
89         culture-info-tables.h   \
90         security-manager.c      \
91         security-manager.h
92
93 libmetadata_la_SOURCES = \
94         assembly.c      \
95         domain.c        \
96         domain-internals.h      \
97         opcodes.c       \
98         image.c         \
99         cil-coff.h      \
100         tabledefs.h     \
101         metadata.c      \
102         metadata-internals.h    \
103         verify.c        \
104         mono-endian.c   \
105         mono-endian.h   \
106         mono-config.c   \
107         mono-config.h   \
108         private.h       \
109         rawbuffer.c     \
110         rawbuffer.h     \
111         loader.c        \
112         class.c         \
113         class-internals.h               \
114         mempool.c       \
115         debug-helpers.c
116
117 libmetadata_static_la_SOURCES = $(libmetadata_la_SOURCES)
118 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
119
120 libmetadata_static_la_LDFLAGS = -static
121 libmonoruntime_static_la_LDFLAGS = -static
122
123 libmetadataincludedir = $(includedir)/mono/metadata
124 libmonoruntimeincludedir = $(includedir)/mono/metadata
125
126 libmonoruntimeinclude_HEADERS = \
127         appdomain.h     \
128         mono-debug.h    \
129         mono-debug-debugger.h   \
130         debug-mono-symfile.h    \
131         threads.h       \
132         environment.h
133
134 libmetadatainclude_HEADERS = \
135         assembly.h      \
136         opcodes.h       \
137         blob.h          \
138         image.h         \
139         metadata.h      \
140         verify.h        \
141         reflection.h    \
142         row-indexes.h   \
143         tokentype.h     \
144         loader.h        \
145         class.h         \
146         object.h        \
147         exception.h     \
148         profiler.h      \
149         appdomain.h     \
150         debug-helpers.h \
151         mempool.h
152
153 pedump_SOURCES =                \
154         pedump.c
155
156 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
157         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
158
159 monodiet_SOURCES = monodiet.c
160
161 monodiet_LDADD = \
162         libmonoruntime.la       \
163         libmetadata.la  \
164         ../io-layer/libwapi.la          \
165         ../utils/libmonoutils.la        \
166         $(LIBGC_LIBS)                   \
167         $(GLIB_LIBS)                    \
168         $(GMODULE_LIBS)                 \
169         $(ICU_LIBS)                     \
170         -lm
171
172 EXTRA_DIST = make-bundle.pl sample-bundle
173