3d1c669f8dafe3b990da8932048bd9b0d33f1c35
[mono.git] / mono / metadata / Makefile.am
1 if PLATFORM_WIN32
2 export HOST_CC
3 assembliesdir = `cygpath -m "${libdir}"`
4 confdir = `cygpath -m "${sysconfdir}"`
5 # The mingw math.h has "extern inline" functions that dont appear in libs, so
6 # optimisation is required to actually inline them
7 AM_CFLAGS = -O
8 else
9 assembliesdir = $(libdir)
10 confdir = $(sysconfdir)
11 endif
12
13 bin_PROGRAMS = monosn pedump
14
15 noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la
16
17
18 INCLUDES = $(GLIB_CFLAGS) $(GMODULE_CFLAGS) -I$(top_srcdir)     -I$(top_srcdir)/mono \
19         -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
20
21 libmonoruntime_la_SOURCES = \
22         reflection.c    \
23         object.c        \
24         icall.c         \
25         decimal.c       \
26         decimal.h       \
27         gc.c            \
28         gc-internal.h   \
29         marshal.c       \
30         marshal.h       \
31         monitor.c       \
32         monitor.h       \
33         threads.c       \
34         threadpool.c    \
35         file-io.c       \
36         file-io.h       \
37         socket-io.c     \
38         socket-io.h     \
39         exception.c     \
40         exception.h     \
41         unicode.c       \
42         unicode.h       \
43         appdomain.c     \
44         debug-mono-symfile.h    \
45         debug-mono-symfile.c    \
46         profiler.c      \
47         profiler-private.h      \
48         rand.h          \
49         rand.c          \
50         string-icalls.c \
51         string-icalls.h \
52         sysmath.h       \
53         sysmath.c       \
54         process.c       \
55         process.h       \
56         environment.c   \
57         environment.h
58
59 libmetadata_la_SOURCES = \
60         assembly.c      \
61         domain.c        \
62         opcodes.c       \
63         image.c         \
64         metadata.c      \
65         verify.c        \
66         mono-endian.c   \
67         mono-config.c   \
68         mono-config.h   \
69         private.h       \
70         rawbuffer.c     \
71         loader.c        \
72         class.c         \
73         mempool.c       \
74         debug-helpers.c
75
76 libmetadataincludedir = $(includedir)/mono/metadata
77 libmonoruntimeincludedir = $(includedir)/mono/metadata
78
79 libmonoruntimeinclude_HEADERS = \
80         appdomain.h     \
81         debug-mono-symfile.h    \
82         threadpool.h    \
83         threads-types.h \
84         threads.h       \
85         environment.h   \
86         monitor.h
87
88 libmetadatainclude_HEADERS = \
89         assembly.h      \
90         opcodes.h       \
91         blob.h          \
92         cil-coff.h      \
93         mono-endian.h   \
94         image.h         \
95         metadata.h      \
96         verify.h        \
97         rawbuffer.h     \
98         reflection.h    \
99         row-indexes.h   \
100         tabledefs.h     \
101         tokentype.h     \
102         loader.h        \
103         class.h         \
104         object.h        \
105         exception.h     \
106         profiler.h      \
107         appdomain.h     \
108         debug-helpers.h \
109         mempool.h       \
110         rand.h
111
112 pedump_SOURCES =                \
113         pedump.c
114
115 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la $(GLIB_LIBS) $(GMODULE_LIBS) -lm
116
117
118 monosn_LDADD = \
119         ../metadata/libmetadata.la      \
120         ../io-layer/libwapi.la          \
121         ../utils/libmonoutils.la        \
122         $(GLIB_LIBS)                    \
123         $(GMODULE_LIBS)                 \
124         -lm
125