New test.
[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 bin_PROGRAMS = pedump monodiet
17
18 #
19 # libtool is not capable of creating static/shared versions of the same
20 # convenience lib, so we have to do it ourselves
21 #
22 noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la
23
24 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
25
26 #
27 # Make sure any prefix changes are updated in the binaries too.
28 #
29 #  assembly.c uses MONO_ASSEMBLIES
30 #  mono-config.c uses MONO_CFG_DIR
31 #
32 # This won't result in many more false positives than AC_DEFINEing them
33 # in configure.in.
34 #
35 assembly.lo mono-config.lo: Makefile
36
37 CLEANFILES = mono-bundle.stamp
38
39 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
40
41 libmonoruntime_la_SOURCES = \
42         reflection.c    \
43         object.c        \
44         object-internals.h      \
45         icall.c         \
46         icall-def.h             \
47         char-conversions.h \
48         decimal.c       \
49         decimal.h       \
50         boehm-gc.c      \
51         null-gc.c       \
52         sgen-gc.c       \
53         sgen-gc.h       \
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         appdomain.c     \
73         debug-mono-symfile.h    \
74         debug-mono-symfile.c    \
75         mono-debug.h            \
76         mono-debug.c            \
77         mono-debug-debugger.h   \
78         mono-debug-debugger.c   \
79         profiler.c      \
80         profiler-private.h      \
81         rand.h          \
82         rand.c          \
83         security.c      \
84         security.h      \
85         string-icalls.c \
86         string-icalls.h \
87         sysmath.h       \
88         sysmath.c       \
89         process.c       \
90         process.h       \
91         environment.c   \
92         environment.h   \
93         locales.c       \
94         locales.h       \
95         normalization-tables.h  \
96         filewatcher.c   \
97         filewatcher.h   \
98         culture-info.h  \
99         culture-info-tables.h   \
100         security-manager.c      \
101         security-manager.h      \
102         console-io.c            \
103         console-io.h    \
104         assembly.c      \
105         domain.c        \
106         domain-internals.h      \
107         opcodes.c       \
108         image.c         \
109         cil-coff.h      \
110         metadata.c      \
111         metadata-internals.h    \
112         verify.c        \
113         mono-endian.c   \
114         mono-endian.h   \
115         mono-config.c   \
116         mono-config.h   \
117         rawbuffer.c     \
118         rawbuffer.h     \
119         loader.c        \
120         class.c         \
121         class-internals.h               \
122         mempool.c       \
123         debug-helpers.c
124
125 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
126
127 libmonoruntime_static_la_LDFLAGS = -static
128
129 libmonoruntimeincludedir = $(includedir)/mono/metadata
130
131 libmonoruntimeinclude_HEADERS = \
132         appdomain.h     \
133         mono-debug.h    \
134         mono-gc.h       \
135         debug-mono-symfile.h    \
136         threads.h       \
137         environment.h   \
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 = libmonoruntime.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         ../io-layer/libwapi.la          \
167         ../utils/libmonoutils.la        \
168         $(LIBGC_LIBS)                   \
169         $(GLIB_LIBS)                    \
170         $(GMODULE_LIBS)                 \
171         $(ICU_LIBS)                     \
172         -lm
173
174 EXTRA_DIST = make-bundle.pl sample-bundle
175