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