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