2003-11-24 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) $(ICU_CFLAGS) \
22         -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
23
24 if WITH_BUNDLE
25 bundle_srcs = mono-bundle.s mono-bundle.h
26 mono-bundle.s mono-bundle.h: $(BUNDLE_FILE) $(srcdir)/make-bundle.pl
27         perl $(srcdir)/make-bundle.pl $(BUNDLE_FILE) mono-bundle.h mono-bundle.s
28 else
29 bundle_srcs =
30 endif
31
32 libmonoruntime_la_SOURCES = \
33         reflection.c    \
34         object.c        \
35         icall.c         \
36         decimal.c       \
37         decimal.h       \
38         gc.c            \
39         gc-internal.h   \
40         marshal.c       \
41         marshal.h       \
42         monitor.c       \
43         monitor.h       \
44         threads.c       \
45         threadpool.c    \
46         file-io.c       \
47         file-io.h       \
48         socket-io.c     \
49         socket-io.h     \
50         exception.c     \
51         exception.h     \
52         unicode.c       \
53         unicode.h       \
54         appdomain.c     \
55         debug-mono-symfile.h    \
56         debug-mono-symfile.c    \
57         mono-debug.h            \
58         mono-debug.c            \
59         mono-debug-debugger.h   \
60         mono-debug-debugger.c   \
61         profiler.c      \
62         profiler-private.h      \
63         rand.h          \
64         rand.c          \
65         string-icalls.c \
66         string-icalls.h \
67         sysmath.h       \
68         sysmath.c       \
69         process.c       \
70         process.h       \
71         environment.c   \
72         environment.h   \
73         locales.c       \
74         locales.h
75
76 libmetadata_la_SOURCES = \
77         assembly.c      \
78         domain.c        \
79         opcodes.c       \
80         image.c         \
81         metadata.c      \
82         verify.c        \
83         mono-endian.c   \
84         mono-config.c   \
85         mono-config.h   \
86         private.h       \
87         rawbuffer.c     \
88         loader.c        \
89         class.c         \
90         mempool.c       \
91         $(bundle_srcs)  \
92         debug-helpers.c
93
94 libmetadataincludedir = $(includedir)/mono/metadata
95 libmonoruntimeincludedir = $(includedir)/mono/metadata
96
97 libmonoruntimeinclude_HEADERS = \
98         appdomain.h     \
99         mono-debug.h    \
100         mono-debug-debugger.h   \
101         debug-mono-symfile.h    \
102         threadpool.h    \
103         threads-types.h \
104         threads.h       \
105         environment.h   \
106         monitor.h       \
107         locales.h
108
109 libmetadatainclude_HEADERS = \
110         assembly.h      \
111         opcodes.h       \
112         blob.h          \
113         cil-coff.h      \
114         mono-endian.h   \
115         image.h         \
116         metadata.h      \
117         verify.h        \
118         rawbuffer.h     \
119         reflection.h    \
120         row-indexes.h   \
121         tabledefs.h     \
122         tokentype.h     \
123         loader.h        \
124         class.h         \
125         object.h        \
126         exception.h     \
127         profiler.h      \
128         appdomain.h     \
129         debug-helpers.h \
130         mempool.h       \
131         rand.h
132
133 pedump_SOURCES =                \
134         pedump.c
135
136 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
137         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
138
139
140 monosn_LDADD = \
141         ../metadata/libmetadata.la      \
142         ../io-layer/libwapi.la          \
143         ../utils/libmonoutils.la        \
144         $(LIBGC_LIBS)                   \
145         $(GLIB_LIBS)                    \
146         $(GMODULE_LIBS)                 \
147         -lm
148
149 BUILT_SOURCES = $(bundle_srcs)
150
151 EXTRA_DIST = make-bundle.pl sample-bundle
152