/
Makefile.am
176 lines (159 loc) · 3.52 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
if PLATFORM_WIN32
# Use -m here. This will use / as directory separator (C:/WINNT).
# The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
# / by \ if running under WIN32.
assembliesdir = `cygpath -m "${libdir}"`
confdir = `cygpath -m "${sysconfdir}"`
export HOST_CC
else
# The mingw math.h has "extern inline" functions that dont appear in libs, so
# optimisation is required to actually inline them
AM_CFLAGS = -O
assembliesdir = $(exec_prefix)/lib
confdir = $(sysconfdir)
endif
bin_PROGRAMS = pedump monodiet
#
# libtool is not capable of creating static/shared versions of the same
# convenience lib, so we have to do it ourselves
#
noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
#
# Make sure any prefix changes are updated in the binaries too.
#
# assembly.c uses MONO_ASSEMBLIES
# mono-config.c uses MONO_CFG_DIR
#
# This won't result in many more false positives than AC_DEFINEing them
# in configure.in.
#
assembly.lo mono-config.lo: Makefile
CLEANFILES = mono-bundle.stamp
libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
libmonoruntime_la_SOURCES = \
reflection.c \
object.c \
object-internals.h \
icall.c \
char-conversions.h \
decimal.c \
decimal.h \
boehm-gc.c \
null-gc.c \
sgen-gc.c \
sgen-gc.h \
gc.c \
gc-internal.h \
marshal.c \
marshal.h \
monitor.c \
monitor.h \
tabledefs.h \
threads.c \
threads-types.h \
threadpool.c \
threadpool.h \
threadpool-internals.h \
file-io.c \
file-io.h \
socket-io.c \
socket-io.h \
exception.c \
exception.h \
unicode.c \
unicode.h \
appdomain.c \
debug-mono-symfile.h \
debug-mono-symfile.c \
mono-debug.h \
mono-debug.c \
mono-debug-debugger.h \
mono-debug-debugger.c \
profiler.c \
profiler-private.h \
rand.h \
rand.c \
security.c \
security.h \
string-icalls.c \
string-icalls.h \
sysmath.h \
sysmath.c \
process.c \
process.h \
environment.c \
environment.h \
locales.c \
locales.h \
normalization-tables.h \
filewatcher.c \
filewatcher.h \
culture-info.h \
culture-info-tables.h \
security-manager.c \
security-manager.h \
console-io.c \
console-io.h \
assembly.c \
domain.c \
domain-internals.h \
opcodes.c \
image.c \
cil-coff.h \
metadata.c \
metadata-internals.h \
verify.c \
mono-endian.c \
mono-endian.h \
mono-config.c \
mono-config.h \
rawbuffer.c \
rawbuffer.h \
loader.c \
class.c \
class-internals.h \
mempool.c \
debug-helpers.c
libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
libmonoruntime_static_la_LDFLAGS = -static
libmonoruntimeincludedir = $(includedir)/mono/metadata
libmonoruntimeinclude_HEADERS = \
appdomain.h \
mono-debug.h \
mono-gc.h \
debug-mono-symfile.h \
threads.h \
environment.h \
assembly.h \
opcodes.h \
blob.h \
image.h \
metadata.h \
verify.h \
reflection.h \
row-indexes.h \
tokentype.h \
loader.h \
class.h \
object.h \
exception.h \
profiler.h \
appdomain.h \
debug-helpers.h \
mempool.h
pedump_SOURCES = \
pedump.c
pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
$(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
monodiet_SOURCES = monodiet.c
monodiet_LDADD = \
libmonoruntime.la \
../io-layer/libwapi.la \
../utils/libmonoutils.la \
$(LIBGC_LIBS) \
$(GLIB_LIBS) \
$(GMODULE_LIBS) \
$(ICU_LIBS) \
-lm
EXTRA_DIST = make-bundle.pl sample-bundle