2004-01-19 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         filewatcher.c   \
76         filewatcher.h
77
78 libmetadata_la_SOURCES = \
79         assembly.c      \
80         domain.c        \
81         opcodes.c       \
82         image.c         \
83         metadata.c      \
84         verify.c        \
85         mono-endian.c   \
86         mono-config.c   \
87         mono-config.h   \
88         private.h       \
89         rawbuffer.c     \
90         loader.c        \
91         class.c         \
92         mempool.c       \
93         $(bundle_srcs)  \
94         debug-helpers.c
95
96 libmetadataincludedir = $(includedir)/mono/metadata
97 libmonoruntimeincludedir = $(includedir)/mono/metadata
98
99 libmonoruntimeinclude_HEADERS = \
100         appdomain.h     \
101         mono-debug.h    \
102         mono-debug-debugger.h   \
103         debug-mono-symfile.h    \
104         threadpool.h    \
105         threads-types.h \
106         threads.h       \
107         environment.h   \
108         monitor.h       \
109         locales.h
110
111 libmetadatainclude_HEADERS = \
112         assembly.h      \
113         opcodes.h       \
114         blob.h          \
115         cil-coff.h      \
116         mono-endian.h   \
117         image.h         \
118         metadata.h      \
119         verify.h        \
120         rawbuffer.h     \
121         reflection.h    \
122         row-indexes.h   \
123         tabledefs.h     \
124         tokentype.h     \
125         loader.h        \
126         class.h         \
127         object.h        \
128         exception.h     \
129         profiler.h      \
130         appdomain.h     \
131         debug-helpers.h \
132         mempool.h       \
133         rand.h
134
135 pedump_SOURCES =                \
136         pedump.c
137
138 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
139         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
140
141
142 monosn_LDADD = \
143         libmetadata.la  \
144         ../io-layer/libwapi.la          \
145         ../utils/libmonoutils.la        \
146         $(LIBGC_LIBS)                   \
147         $(GLIB_LIBS)                    \
148         $(GMODULE_LIBS)                 \
149         -lm
150
151 BUILT_SOURCES = $(bundle_srcs)
152
153 EXTRA_DIST = make-bundle.pl sample-bundle
154