2004-11-28 Martin Baulig <martin@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
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
91 libmetadata_la_SOURCES = \
92         assembly.c      \
93         domain.c        \
94         domain-internals.h      \
95         opcodes.c       \
96         image.c         \
97         cil-coff.h      \
98         tabledefs.h     \
99         metadata.c      \
100         metadata-internals.h    \
101         verify.c        \
102         mono-endian.c   \
103         mono-endian.h   \
104         mono-config.c   \
105         mono-config.h   \
106         private.h       \
107         rawbuffer.c     \
108         rawbuffer.h     \
109         loader.c        \
110         class.c         \
111         class-internals.h               \
112         mempool.c       \
113         debug-helpers.c
114
115 libmetadata_static_la_SOURCES = $(libmetadata_la_SOURCES)
116 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
117
118 libmetadata_static_la_LDFLAGS = -static
119 libmonoruntime_static_la_LDFLAGS = -static
120
121 libmetadataincludedir = $(includedir)/mono/metadata
122 libmonoruntimeincludedir = $(includedir)/mono/metadata
123
124 libmonoruntimeinclude_HEADERS = \
125         appdomain.h     \
126         mono-debug.h    \
127         mono-debug-debugger.h   \
128         debug-mono-symfile.h    \
129         threads.h       \
130         environment.h
131
132 libmetadatainclude_HEADERS = \
133         assembly.h      \
134         opcodes.h       \
135         blob.h          \
136         image.h         \
137         metadata.h      \
138         verify.h        \
139         reflection.h    \
140         row-indexes.h   \
141         tokentype.h     \
142         loader.h        \
143         class.h         \
144         object.h        \
145         exception.h     \
146         profiler.h      \
147         appdomain.h     \
148         debug-helpers.h \
149         mempool.h
150
151 pedump_SOURCES =                \
152         pedump.c
153
154 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
155         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
156
157 EXTRA_DIST = make-bundle.pl sample-bundle
158