2008-02-21 Mark Probst <mark.probst@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 # 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         domain.c        \
112         domain-internals.h      \
113         opcodes.c       \
114         image.c         \
115         cil-coff.h      \
116         metadata.c      \
117         metadata-internals.h    \
118         number-formatter.h      \
119         verify.c        \
120         mono-endian.c   \
121         mono-endian.h   \
122         mono-config.c   \
123         rawbuffer.c     \
124         rawbuffer.h     \
125         loader.c        \
126         class.c         \
127         class-internals.h               \
128         wrapper-types.h         \
129         mempool.c       \
130         debug-helpers.c \
131         generic-sharing.c
132
133 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
134
135 libmonoruntime_static_la_LDFLAGS = -static
136
137 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
138
139 libmonoruntimeinclude_HEADERS = \
140         attrdefs.h      \
141         appdomain.h     \
142         mono-debug.h    \
143         mono-gc.h       \
144         debug-mono-symfile.h    \
145         threads.h       \
146         environment.h   \
147         assembly.h      \
148         opcodes.h       \
149         blob.h          \
150         image.h         \
151         metadata.h      \
152         verify.h        \
153         reflection.h    \
154         row-indexes.h   \
155         tokentype.h     \
156         loader.h        \
157         class.h         \
158         object.h        \
159         exception.h     \
160         profiler.h      \
161         appdomain.h     \
162         mono-config.h   \
163         debug-helpers.h \
164         mempool.h
165
166 pedump_SOURCES =                \
167         pedump.c
168
169 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
170         $(LIBGC_LIBS) $(GLIB_LIBS) -lm
171
172 EXTRA_DIST = make-bundle.pl sample-bundle
173