2003-06-17 Zoltan Varga <vargaz@freemail.hu>
[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 = monosn pedump
17
18 noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la
19
20
21 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) \
22         -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
23
24 libmonoruntime_la_SOURCES = \
25         reflection.c    \
26         object.c        \
27         icall.c         \
28         decimal.c       \
29         decimal.h       \
30         gc.c            \
31         gc-internal.h   \
32         marshal.c       \
33         marshal.h       \
34         monitor.c       \
35         monitor.h       \
36         threads.c       \
37         threadpool.c    \
38         file-io.c       \
39         file-io.h       \
40         socket-io.c     \
41         socket-io.h     \
42         exception.c     \
43         exception.h     \
44         unicode.c       \
45         unicode.h       \
46         appdomain.c     \
47         debug-mono-symfile.h    \
48         debug-mono-symfile.c    \
49         mono-debug.h            \
50         mono-debug.c            \
51         mono-debug-debugger.h   \
52         mono-debug-debugger.c   \
53         profiler.c      \
54         profiler-private.h      \
55         rand.h          \
56         rand.c          \
57         string-icalls.c \
58         string-icalls.h \
59         sysmath.h       \
60         sysmath.c       \
61         process.c       \
62         process.h       \
63         environment.c   \
64         environment.h
65
66 libmetadata_la_SOURCES = \
67         assembly.c      \
68         domain.c        \
69         opcodes.c       \
70         image.c         \
71         metadata.c      \
72         verify.c        \
73         mono-endian.c   \
74         mono-config.c   \
75         mono-config.h   \
76         private.h       \
77         rawbuffer.c     \
78         loader.c        \
79         class.c         \
80         mempool.c       \
81         debug-helpers.c
82
83 libmetadataincludedir = $(includedir)/mono/metadata
84 libmonoruntimeincludedir = $(includedir)/mono/metadata
85
86 libmonoruntimeinclude_HEADERS = \
87         appdomain.h     \
88         mono-debug.h    \
89         mono-debug-debugger.h   \
90         debug-mono-symfile.h    \
91         threadpool.h    \
92         threads-types.h \
93         threads.h       \
94         environment.h   \
95         monitor.h
96
97 libmetadatainclude_HEADERS = \
98         assembly.h      \
99         opcodes.h       \
100         blob.h          \
101         cil-coff.h      \
102         mono-endian.h   \
103         image.h         \
104         metadata.h      \
105         verify.h        \
106         rawbuffer.h     \
107         reflection.h    \
108         row-indexes.h   \
109         tabledefs.h     \
110         tokentype.h     \
111         loader.h        \
112         class.h         \
113         object.h        \
114         exception.h     \
115         profiler.h      \
116         appdomain.h     \
117         debug-helpers.h \
118         mempool.h       \
119         rand.h
120
121 pedump_SOURCES =                \
122         pedump.c
123
124 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
125         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
126
127
128 monosn_LDADD = \
129         ../metadata/libmetadata.la      \
130         ../io-layer/libwapi.la          \
131         ../utils/libmonoutils.la        \
132         $(LIBGC_LIBS)                   \
133         $(GLIB_LIBS)                    \
134         $(GMODULE_LIBS)                 \
135         -lm
136