* appdomain.c: Increment version number.
[mono.git] / mono / metadata / Makefile.am
1 if PLATFORM_WIN32
2 export HOST_CC
3 # Use -m here. This will use / as directory separator (C:/WINNT).
4 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
5 # / by \ if running under WIN32.
6 assembliesdir = `cygpath -m "${libdir}"`
7 confdir = `cygpath -m "${sysconfdir}"`
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 = $(libdir)
13 confdir = $(sysconfdir)
14 endif
15
16 bin_PROGRAMS = pedump
17 # monosn is deprecated in favor of sn
18 noinst_PROGRAMS = monosn
19
20 noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la
21
22
23 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(ICU_CFLAGS) \
24         -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
25
26 if WITH_BUNDLE
27 bundle_srcs = mono-bundle.s mono-bundle.h
28 mono-bundle.s mono-bundle.h: $(BUNDLE_FILE) $(srcdir)/make-bundle.pl
29         perl $(srcdir)/make-bundle.pl $(BUNDLE_FILE) mono-bundle.h mono-bundle.s
30 else
31 bundle_srcs =
32 endif
33
34 if PLATFORM_WIN32
35 libmonoruntime_la_LIBADD = ../os/libmonoos.la
36 libmetadata_la_LIBADD = ../os/libmonoos.la
37 endif
38
39 libmonoruntime_la_SOURCES = \
40         reflection.c    \
41         object.c        \
42         icall.c         \
43         char-conversions.h \
44         decimal.c       \
45         decimal.h       \
46         gc.c            \
47         gc-internal.h   \
48         marshal.c       \
49         marshal.h       \
50         monitor.c       \
51         monitor.h       \
52         threads.c       \
53         threadpool.c    \
54         file-io.c       \
55         file-io.h       \
56         socket-io.c     \
57         socket-io.h     \
58         exception.c     \
59         exception.h     \
60         unicode.c       \
61         unicode.h       \
62         appdomain.c     \
63         debug-mono-symfile.h    \
64         debug-mono-symfile.c    \
65         mono-debug.h            \
66         mono-debug.c            \
67         mono-debug-debugger.h   \
68         mono-debug-debugger.c   \
69         profiler.c      \
70         profiler-private.h      \
71         rand.h          \
72         rand.c          \
73         security.c      \
74         security.h      \
75         string-icalls.c \
76         string-icalls.h \
77         sysmath.h       \
78         sysmath.c       \
79         process.c       \
80         process.h       \
81         environment.c   \
82         environment.h   \
83         locales.c       \
84         locales.h       \
85         filewatcher.c   \
86         filewatcher.h   \
87         culture-info.h  \
88         culture-info-tables.h
89
90 libmetadata_la_SOURCES = \
91         assembly.c      \
92         domain.c        \
93         opcodes.c       \
94         image.c         \
95         metadata.c      \
96         verify.c        \
97         mono-endian.c   \
98         mono-config.c   \
99         mono-config.h   \
100         private.h       \
101         rawbuffer.c     \
102         loader.c        \
103         class.c         \
104         mempool.c       \
105         $(bundle_srcs)  \
106         debug-helpers.c
107
108 libmetadataincludedir = $(includedir)/mono/metadata
109 libmonoruntimeincludedir = $(includedir)/mono/metadata
110
111 libmonoruntimeinclude_HEADERS = \
112         appdomain.h     \
113         mono-debug.h    \
114         mono-debug-debugger.h   \
115         debug-mono-symfile.h    \
116         threadpool.h    \
117         threads-types.h \
118         threads.h       \
119         environment.h   \
120         monitor.h       \
121         locales.h
122
123 libmetadatainclude_HEADERS = \
124         assembly.h      \
125         opcodes.h       \
126         blob.h          \
127         cil-coff.h      \
128         mono-endian.h   \
129         image.h         \
130         metadata.h      \
131         verify.h        \
132         rawbuffer.h     \
133         reflection.h    \
134         row-indexes.h   \
135         tabledefs.h     \
136         tokentype.h     \
137         loader.h        \
138         class.h         \
139         object.h        \
140         exception.h     \
141         profiler.h      \
142         appdomain.h     \
143         debug-helpers.h \
144         mempool.h       \
145         rand.h
146
147 pedump_SOURCES =                \
148         pedump.c
149
150 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
151         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
152
153
154 monosn_LDADD = \
155         libmetadata.la  \
156         ../io-layer/libwapi.la          \
157         ../utils/libmonoutils.la        \
158         $(LIBGC_LIBS)                   \
159         $(GLIB_LIBS)                    \
160         $(GMODULE_LIBS)                 \
161         -lm
162
163 BUILT_SOURCES = $(bundle_srcs) libmetadata.la
164
165 EXTRA_DIST = make-bundle.pl sample-bundle
166