Add [Category ("NotWorking")] to failing test.
[mono.git] / mono / metadata / Makefile.am.in
1 if HOST_WIN32
2 win32_sources = \
3         console-win32.c
4
5 platform_sources = $(win32_sources)
6
7 # Use -m here. This will use / as directory separator (C:/WINNT).
8 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
9 # / by \ if running under WIN32.
10 if CROSS_COMPILING
11 assembliesdir = ${libdir}
12 confdir = ${sysconfdir}
13 else
14 assembliesdir = `cygpath -m "${libdir}"`
15 confdir = `cygpath -m "${sysconfdir}"`
16 endif
17 export HOST_CC
18 # The mingw math.h has "extern inline" functions that dont appear in libs, so
19 # optimisation is required to actually inline them
20 AM_CFLAGS = -O
21 else
22
23 assembliesdir = $(exec_prefix)/lib
24 confdir = $(sysconfdir)
25 unix_sources = \
26         console-unix.c
27
28 platform_sources = $(unix_sources)
29 endif
30
31 if SHARED_MONO
32 if SUPPORT_BOEHM
33 bin_PROGRAMS = pedump
34 endif
35 endif
36
37 #
38 # libtool is not capable of creating static/shared versions of the same
39 # convenience lib, so we have to do it ourselves
40 #
41 if SUPPORT_SGEN
42 if DISABLE_EXECUTABLES
43 shared_sgen_libraries = libmonoruntimesgen.la 
44 else
45 if SHARED_MONO
46 shared_sgen_libraries = libmonoruntimesgen.la 
47 endif
48 endif
49 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la 
50 endif
51
52 if SUPPORT_BOEHM
53 if DISABLE_EXECUTABLES
54 shared_boehm_libraries = libmonoruntime.la
55 else
56 if SHARED_MONO
57 shared_boehm_libraries = libmonoruntime.la
58 endif
59 endif
60 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
61 endif
62
63 if DISABLE_EXECUTABLES
64 noinst_LTLIBRARIES = $(shared_sgen_libraries) $(shared_boehm_libraries)
65 else
66 noinst_LTLIBRARIES = $(boehm_libraries) $(sgen_libraries)
67 endif
68
69 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
70
71 #
72 # Make sure any prefix changes are updated in the binaries too.
73 #
74 #  assembly.c uses MONO_ASSEMBLIES
75 #  mono-config.c uses MONO_CFG_DIR
76 #
77 # This won't result in many more false positives than AC_DEFINEing them
78 # in configure.in.
79 #
80 assembly.lo mono-config.lo: Makefile
81
82 CLEANFILES = mono-bundle.stamp
83
84 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
85
86 null_sources = \
87         console-null.c
88
89 common_sources = \
90         $(platform_sources)     \
91         assembly.c              \
92         attach.h                \
93         attach.c                \
94         char-conversions.h      \
95         cil-coff.h              \
96         class.c                 \
97         class-internals.h       \
98         cominterop.c            \
99         cominterop.h            \
100         console-io.h            \
101         coree.c                 \
102         coree.h                 \
103         culture-info.h          \
104         culture-info-tables.h   \
105         debug-helpers.c         \
106         debug-mono-symfile.h    \
107         debug-mono-symfile.c    \
108         decimal.c               \
109         decimal.h               \
110         domain-internals.h      \
111         environment.c           \
112         environment.h           \
113         exception.c             \
114         exception.h             \
115         file-io.c               \
116         file-io.h               \
117         filewatcher.c           \
118         filewatcher.h           \
119         gc-internal.h           \
120         gc-memfuncs.c           \
121         icall.c                 \
122         icall-def.h             \
123         image.c                 \
124         loader.c                \
125         locales.c               \
126         locales.h               \
127         lock-tracer.c           \
128         lock-tracer.h           \
129         marshal.c               \
130         marshal.h               \
131         mempool.c               \
132         mempool.h               \
133         mempool-internals.h     \
134         metadata.c              \
135         metadata-verify.c       \
136         metadata-internals.h    \
137         method-builder.h        \
138         method-builder.c        \
139         mono-basic-block.c      \
140         mono-basic-block.h      \
141         mono-config.c           \
142         mono-cq.c               \
143         mono-cq.h               \
144         mono-debug.h            \
145         mono-debug.c            \
146         mono-debug-debugger.h   \
147         mono-debug-debugger.c   \
148         mono-endian.c           \
149         mono-endian.h           \
150         mono-hash.h             \
151         mono-mlist.c            \
152         mono-mlist.h            \
153         mono-perfcounters.c     \
154         mono-perfcounters.h     \
155         mono-perfcounters-def.h \
156         mono-ptr-array.h        \
157         mono-wsq.c              \
158         mono-wsq.h              \
159         monitor.h               \
160         nacl-stub.c             \
161         normalization-tables.h  \
162         null-gc.c               \
163         number-formatter.h      \
164         object-internals.h      \
165         opcodes.c               \
166         socket-io.c             \
167         socket-io.h             \
168         process.c               \
169         process.h               \
170         profiler.c              \
171         profiler-private.h      \
172         rand.h                  \
173         rand.c                  \
174         runtime.c               \
175         security.c              \
176         security.h              \
177         security-core-clr.c     \
178         security-core-clr.h     \
179         security-manager.c      \
180         security-manager.h      \
181         string-icalls.c         \
182         string-icalls.h         \
183         sysmath.h               \
184         sysmath.c               \
185         tabledefs.h             \
186         threads.c               \
187         threads-types.h         \
188         threadpool.c            \
189         threadpool.h            \
190         threadpool-internals.h  \
191         verify.c                \
192         verify-internals.h      \
193         wrapper-types.h
194
195 # These source files have compile time dependencies on GC code
196 gc_dependent_sources = \
197         appdomain.c     \
198         domain.c        \
199         gc.c            \
200         monitor.c       \
201         mono-hash.c     \
202         object.c        \
203         reflection.c
204
205 boehm_sources = \
206         boehm-gc.c
207
208 sgen_sources = \
209         sgen-os-posix.c         \
210         sgen-os-mach.c          \
211         sgen-os-win32.c         \
212         sgen-gc.c               \
213         sgen-internal.c         \
214         sgen-marksweep.c        \
215         sgen-marksweep-fixed.c  \
216         sgen-marksweep-par.c    \
217         sgen-marksweep-fixed-par.c      \
218         sgen-los.c              \
219         sgen-protocol.c \
220         sgen-bridge.c           \
221         sgen-bridge.h           \
222         sgen-toggleref.c                \
223         sgen-toggleref.h                \
224         sgen-gc.h               \
225         sgen-conf.h             \
226         sgen-archdep.h          \
227         sgen-cardtable.c        \
228         sgen-cardtable.h        \
229         sgen-pinning.c  \
230         sgen-pinning.h  \
231         sgen-pinning-stats.c    \
232         sgen-workers.c  \
233         sgen-workers.h  \
234         sgen-gray.c     \
235         sgen-gray.h     \
236         sgen-major-copy-object.h \
237         sgen-minor-copy-object.h \
238         sgen-copy-object.h \
239         sgen-major-scan-object.h \
240         sgen-minor-scan-object.h \
241         sgen-protocol.h         \
242         sgen-scan-object.h      \
243         sgen-nursery-allocator.c        \
244         sgen-hash-table.c       \
245         sgen-hash-table.h       \
246         sgen-descriptor.c               \
247         sgen-descriptor.h               \
248         sgen-alloc.c            \
249         sgen-debug.c            \
250         sgen-simple-nursery.c   \
251         sgen-split-nursery.c    \
252         sgen-memory-governor.c  \
253         sgen-memory-governor.h  \
254         sgen-stw.c                              \
255         sgen-fin-weak-hash.c    \
256         sgen-layout-stats.c     \
257         sgen-layout-stats.h     \
258         sgen-qsort.c
259
260 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(boehm_sources)
261 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
262
263 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
264 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
265
266 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
267 libmonoruntime_static_la_LDFLAGS = -static
268 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
269
270 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
271 libmonoruntimesgen_static_la_LDFLAGS = -static
272 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
273
274 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
275
276 libmonoruntimeinclude_HEADERS = \
277         assembly.h              \
278         attrdefs.h              \
279         appdomain.h             \
280         blob.h                  \
281         class.h                 \
282         debug-helpers.h         \
283         debug-mono-symfile.h    \
284         threads.h               \
285         environment.h           \
286         exception.h             \
287         image.h                 \
288         loader.h                \
289         metadata.h              \
290         mono-config.h           \
291         mono-debug.h            \
292         mono-gc.h               \
293         sgen-bridge.h           \
294         object.h                \
295         opcodes.h               \
296         profiler.h              \
297         reflection.h            \
298         row-indexes.h           \
299         tokentype.h             \
300         verify.h                
301
302 if DTRACE_G_REQUIRED
303
304 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
305
306 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
307         DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
308         --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
309
310 else
311 PEDUMP_DTRACE_OBJECT = 
312 endif
313
314 if SHARED_MONO
315 if SUPPORT_BOEHM
316 pedump_SOURCES =                \
317         pedump.c
318
319 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
320         $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
321
322 if PLATFORM_DARWIN
323 pedump_LDFLAGS=-framework CoreFoundation
324 endif
325 endif
326 endif
327
328 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
329                 tpool-poll.c tpool-epoll.c tpool-kqueue.c Makefile.am.in
330
331 if HAS_EXTENSION_MODULE
332 else
333 Makefile.am: Makefile.am.in
334         cp $< $@
335 endif
336
337 if !HOST_WIN32
338
339 test_sgen_qsort_SOURCES = test-sgen-qsort.c
340 test_sgen_qsort_CFLAGS = $(SGEN_DEFINES)
341 test_sgen_qsort_LDADD = libmonoruntimesgen.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
342         $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV)
343 if PLATFORM_DARWIN
344 test_sgen_qsort_LDFLAGS=-framework CoreFoundation
345 endif
346
347 test_gc_memfuncs_SOURCES = test-gc-memfuncs.c
348 test_gc_memfuncs_CFLAGS = $(SGEN_DEFINES)
349 test_gc_memfuncs_LDADD = libmonoruntimesgen.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
350         $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV)
351 if PLATFORM_DARWIN
352 test_gc_memfuncs_LDFLAGS=-framework CoreFoundation
353 endif
354
355 noinst_PROGRAMS = test-sgen-qsort test-gc-memfuncs
356
357 TESTS = test-sgen-qsort test-gc-memfuncs
358
359 endif !HOST_WIN32