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