2007-08-24 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 # 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         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         security-core-clr.c     \
88         security-core-clr.h     \
89         string-icalls.c \
90         string-icalls.h \
91         sysmath.h       \
92         sysmath.c       \
93         process.c       \
94         process.h       \
95         environment.c   \
96         environment.h   \
97         locales.c       \
98         locales.h       \
99         normalization-tables.h  \
100         filewatcher.c   \
101         filewatcher.h   \
102         culture-info.h  \
103         culture-info-tables.h   \
104         security-manager.c      \
105         security-manager.h      \
106         console-io.c            \
107         console-io.h    \
108         assembly.c      \
109         domain.c        \
110         domain-internals.h      \
111         opcodes.c       \
112         image.c         \
113         cil-coff.h      \
114         metadata.c      \
115         metadata-internals.h    \
116         verify.c        \
117         mono-endian.c   \
118         mono-endian.h   \
119         mono-config.c   \
120         rawbuffer.c     \
121         rawbuffer.h     \
122         loader.c        \
123         class.c         \
124         class-internals.h               \
125         wrapper-types.h         \
126         mempool.c       \
127         debug-helpers.c
128
129 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
130
131 libmonoruntime_static_la_LDFLAGS = -static
132
133 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
134
135 libmonoruntimeinclude_HEADERS = \
136         attrdefs.h      \
137         appdomain.h     \
138         mono-debug.h    \
139         mono-gc.h       \
140         debug-mono-symfile.h    \
141         threads.h       \
142         environment.h   \
143         assembly.h      \
144         opcodes.h       \
145         blob.h          \
146         image.h         \
147         metadata.h      \
148         verify.h        \
149         reflection.h    \
150         row-indexes.h   \
151         tokentype.h     \
152         loader.h        \
153         class.h         \
154         object.h        \
155         exception.h     \
156         profiler.h      \
157         appdomain.h     \
158         mono-config.h   \
159         debug-helpers.h \
160         mempool.h
161
162 pedump_SOURCES =                \
163         pedump.c
164
165 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
166         $(LIBGC_LIBS) $(GLIB_LIBS) -lm
167
168 EXTRA_DIST = make-bundle.pl sample-bundle
169