Tue Aug 3 17:54:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
[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 PLATFORM_LIB = ../os/libmonoos.la
12 else
13 assembliesdir = $(libdir)
14 confdir = $(sysconfdir)
15 endif
16
17 bin_PROGRAMS = pedump
18
19 noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la
20
21
22 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(ICU_CFLAGS) \
23         -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
24
25 if WITH_BUNDLE
26 bundle_srcs = mono-bundle.s mono-bundle.h
27 bundle_obj = mono-bundle.o
28 #BUILT_SOURCES = $(bundle_srcs)
29
30 $(bundle_obj): $(bundle_srcs)
31 $(bundle_srcs): mono-bundle.stamp
32         @if test -f $@; then :; else rm -f mono-bundle.stamp; $(MAKE) mono-bundle.stamp; fi
33 mono-bundle.stamp: $(BUNDLE_FILE) $(srcdir)/make-bundle.pl
34         echo stamp > $@t
35         perl $(srcdir)/make-bundle.pl $(BUNDLE_FILE) mono-bundle.h mono-bundle.s
36         mv $@t $@
37
38 endif
39
40 CLEANFILES = mono-bundle.stamp
41
42 libmonoruntime_la_LIBADD = $(PLATFORM_LIB)
43 libmetadata_la_LIBADD = $(bundle_obj) $(PLATFORM_LIB)
44
45 libmonoruntime_la_SOURCES = \
46         reflection.c    \
47         object.c        \
48         object-internals.h      \
49         icall.c         \
50         char-conversions.h \
51         decimal.c       \
52         decimal.h       \
53         gc.c            \
54         gc-internal.h   \
55         marshal.c       \
56         marshal.h       \
57         monitor.c       \
58         monitor.h       \
59         threads.c       \
60         threads-types.h \
61         threadpool.c    \
62         threadpool.h    \
63         file-io.c       \
64         file-io.h       \
65         socket-io.c     \
66         socket-io.h     \
67         exception.c     \
68         exception.h     \
69         unicode.c       \
70         unicode.h       \
71         appdomain.c     \
72         debug-mono-symfile.h    \
73         debug-mono-symfile.c    \
74         mono-debug.h            \
75         mono-debug.c            \
76         mono-debug-debugger.h   \
77         mono-debug-debugger.c   \
78         profiler.c      \
79         profiler-private.h      \
80         rand.h          \
81         rand.c          \
82         security.c      \
83         security.h      \
84         string-icalls.c \
85         string-icalls.h \
86         sysmath.h       \
87         sysmath.c       \
88         process.c       \
89         process.h       \
90         environment.c   \
91         environment.h   \
92         locales.c       \
93         locales.h       \
94         filewatcher.c   \
95         filewatcher.h   \
96         culture-info.h  \
97         culture-info-tables.h
98
99 libmetadata_la_SOURCES = \
100         assembly.c      \
101         domain.c        \
102         domain-internals.h      \
103         opcodes.c       \
104         image.c         \
105         cil-coff.h      \
106         tabledefs.h     \
107         metadata.c      \
108         metadata-internals.h    \
109         verify.c        \
110         mono-endian.c   \
111         mono-endian.h   \
112         mono-config.c   \
113         mono-config.h   \
114         private.h       \
115         rawbuffer.c     \
116         rawbuffer.h     \
117         loader.c        \
118         class.c         \
119         class-internals.h               \
120         mempool.c       \
121         debug-helpers.c
122
123 libmetadataincludedir = $(includedir)/mono/metadata
124 libmonoruntimeincludedir = $(includedir)/mono/metadata
125
126 libmonoruntimeinclude_HEADERS = \
127         appdomain.h     \
128         mono-debug.h    \
129         mono-debug-debugger.h   \
130         debug-mono-symfile.h    \
131         threads.h       \
132         environment.h
133
134 libmetadatainclude_HEADERS = \
135         assembly.h      \
136         opcodes.h       \
137         blob.h          \
138         image.h         \
139         metadata.h      \
140         verify.h        \
141         reflection.h    \
142         row-indexes.h   \
143         tokentype.h     \
144         loader.h        \
145         class.h         \
146         object.h        \
147         exception.h     \
148         profiler.h      \
149         appdomain.h     \
150         debug-helpers.h \
151         mempool.h
152
153 pedump_SOURCES =                \
154         pedump.c
155
156 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
157         $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
158
159 EXTRA_DIST = make-bundle.pl sample-bundle
160