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