Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / sgen / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
2
3 if SUPPORT_SGEN
4 if DISABLE_EXECUTABLES
5 shared_libraries = libmonosgen.la
6 else
7 if SHARED_MONO
8 shared_libraries = libmonosgen.la
9 endif
10 endif
11 libraries = $(shared_libraries) libmonosgen-static.la
12 endif
13
14 if DISABLE_EXECUTABLES
15 noinst_LTLIBRARIES = $(shared_libraries)
16 else
17 noinst_LTLIBRARIES = $(libraries)
18 endif
19
20 monosgen_sources = \
21         gc-internal-agnostic.h \
22         sgen-alloc.c \
23         sgen-archdep.h \
24         sgen-cardtable.c \
25         sgen-cardtable.h \
26         sgen-client.h \
27         sgen-conf.h \
28         sgen-copy-object.h \
29         sgen-debug.c \
30         sgen-descriptor.c \
31         sgen-descriptor.h \
32         sgen-fin-weak-hash.c \
33         sgen-gc.c \
34         sgen-gc.h \
35         sgen-gchandles.c \
36         sgen-gray.c \
37         sgen-gray.h \
38         sgen-hash-table.c \
39         sgen-hash-table.h \
40         sgen-internal.c \
41         sgen-layout-stats.c \
42         sgen-layout-stats.h \
43         sgen-los.c \
44         sgen-major-copy-object.h \
45         sgen-marksweep-drain-gray-stack.h \
46         sgen-marksweep.c \
47         sgen-memory-governor.c \
48         sgen-memory-governor.h \
49         sgen-minor-copy-object.h \
50         sgen-minor-scan-object.h \
51         sgen-nursery-allocator.c \
52         sgen-pinning-stats.c \
53         sgen-pinning.c \
54         sgen-pinning.h \
55         sgen-pointer-queue.c \
56         sgen-pointer-queue.h \
57         sgen-array-list.h \
58         sgen-array-list.c \
59         sgen-protocol-def.h \
60         sgen-protocol.c \
61         sgen-protocol.h \
62         sgen-qsort.c \
63         sgen-qsort.h \
64         sgen-scan-object.h \
65         sgen-simple-nursery.c \
66         sgen-split-nursery.c \
67         sgen-tagged-pointer.h \
68         sgen-thread-pool.c \
69         sgen-thread-pool.h \
70         sgen-workers.c \
71         sgen-workers.h
72
73 libmonosgen_la_SOURCES = $(monosgen_sources)
74 libmonosgen_la_CFLAGS = $(SGEN_DEFINES)
75
76 libmonosgen_static_la_SOURCES = $(libmonosgen_la_SOURCES)
77 libmonosgen_static_la_CFLAGS = $(SGEN_DEFINES)
78 libmonosgen_static_la_LDFLAGS = -static