Initial set of Ward sgen annotations (#5705)
[mono.git] / mono / utils / Makefile.am
1 noinst_LTLIBRARIES = libmonoutils.la
2
3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
4
5 if ENABLE_DTRACE
6
7 BUILT_SOURCES = mono-dtrace.h
8
9 mono-dtrace.h: $(top_srcdir)/data/mono.d
10         $(DTRACE) $(DTRACEFLAGS) -h -s $(top_srcdir)/data/mono.d -o $@ || > $@
11
12 endif
13
14 if HOST_WIN32
15 win32_sources = \
16         os-event-win32.c \
17         mono-os-wait-win32.c
18
19 platform_sources = $(win32_sources)
20 else
21 unix_sources = \
22         os-event-unix.c
23
24 platform_sources = $(unix_sources)
25 endif
26
27 monoutils_sources = \
28         $(platform_sources)     \
29         mono-md5.c              \
30         mono-sha1.c             \
31         mono-logger.c           \
32         mono-logger-internals.h \
33         mono-codeman.c          \
34         dlmalloc.h              \
35         dlmalloc.c              \
36         mono-counters.c         \
37         mono-compiler.h         \
38         mono-complex.h          \
39         mono-dl.c               \
40         mono-dl-windows.c       \
41         mono-dl-darwin.c        \
42         mono-dl-posix.c         \
43         mono-dl-wasm.c  \
44         mono-dl.h               \
45         mono-dl-windows-internals.h     \
46         mono-log-windows.c      \
47         mono-log-common.c       \
48         mono-log-posix.c        \
49         mono-log-android.c \
50         mono-log-darwin.c \
51         mono-internal-hash.c    \
52         mono-internal-hash.h    \
53         mono-io-portability.c   \
54         mono-io-portability.h   \
55         monobitset.c            \
56         mono-filemap.c          \
57         mono-math.c             \
58         mono-mmap.c             \
59         mono-mmap-windows.c             \
60         mono-mmap.h             \
61         mono-mmap-internals.h   \
62         mono-mmap-windows-internals.h   \
63         mono-os-mutex.h         \
64         mono-os-mutex.c         \
65         mono-os-wait.h \
66         mono-coop-mutex.h               \
67         mono-once.h             \
68         mono-lazy-init.h                \
69         mono-networkinterfaces.c                \
70         mono-networkinterfaces.h                \
71         mono-proclib.c          \
72         mono-proclib-windows.c          \
73         mono-proclib.h          \
74         mono-proclib-windows-internals.h                \
75         mono-publib.c           \
76         mono-string.h           \
77         mono-time.c             \
78         mono-time.h             \
79         strenc.h                \
80         strenc.c                \
81         mono-uri.c              \
82         mono-poll.c             \
83         mono-path.c             \
84         mono-os-semaphore.h     \
85         mono-coop-semaphore.h           \
86         mono-sigcontext.h       \
87         mono-stdlib.c           \
88         mono-property-hash.h    \
89         mono-property-hash.c    \
90         mono-value-hash.h       \
91         mono-value-hash.c       \
92         freebsd-elf_common.h    \
93         freebsd-elf32.h         \
94         freebsd-elf64.h         \
95         freebsd-dwarf.h         \
96         dtrace.h                        \
97         gc_wrapper.h            \
98         mono-error.c    \
99         mono-error-internals.h  \
100         monobitset.h    \
101         mono-codeman.h  \
102         mono-counters.h \
103         mono-digest.h   \
104         mono-error.h    \
105         mono-machine.h  \
106         mono-math.h     \
107         mono-membar.h   \
108         mono-path.h     \
109         mono-poll.h     \
110         mono-uri.h      \
111         mono-stdlib.h   \
112         valgrind.h      \
113         mach-support.c  \
114         mach-support.h  \
115         memcheck.h      \
116         mono-context.c  \
117         mono-context.h  \
118         mono-stack-unwinding.h  \
119         hazard-pointer.c        \
120         hazard-pointer.h        \
121         lock-free-queue.c       \
122         lock-free-queue.h       \
123         lock-free-alloc.c       \
124         lock-free-alloc.h       \
125         lock-free-array-queue.c \
126         lock-free-array-queue.h \
127         mono-linked-list-set.c  \
128         mono-linked-list-set.h  \
129         mono-threads.c  \
130         mono-threads-state-machine.c    \
131         mono-threads-posix.c    \
132         mono-threads-posix-signals.c    \
133         mono-threads-mach.c     \
134         mono-threads-mach-helper.c      \
135         mono-threads-windows.c  \
136         mono-threads-linux.c    \
137         mono-threads-freebsd.c  \
138         mono-threads-netbsd.c   \
139         mono-threads-openbsd.c  \
140         mono-threads-android.c  \
141         mono-threads-haiku.c    \
142         mono-threads-wasm.c     \
143         mono-threads.h  \
144         mono-threads-debug.h    \
145         mono-threads-api.h      \
146         mono-threads-coop.c     \
147         mono-threads-coop.h     \
148         mono-tls.h      \
149         mono-tls.c      \
150         linux_magic.h   \
151         mono-memory-model.h     \
152         atomic.h        \
153         atomic.c        \
154         mono-hwcap.h    \
155         mono-hwcap.c    \
156         mono-hwcap-vars.h       \
157         bsearch.h       \
158         bsearch.c       \
159         mono-signal-handler.h   \
160         mono-conc-hashtable.h   \
161         mono-conc-hashtable.c   \
162         json.h  \
163         json.c  \
164         networking.c    \
165         networking-posix.c      \
166         networking-fallback.c   \
167         networking-missing.c    \
168         networking-windows.c    \
169         networking.h    \
170         mono-rand.c     \
171         mono-rand-windows.c     \
172         mono-rand.h \
173         mono-rand-windows-internals.h \
174         memfuncs.c \
175         memfuncs.h \
176         parse.c \
177         parse.h \
178         checked-build.c \
179         checked-build.h \
180         os-event.h \
181         refcount.h      \
182         w32api.h        \
183         unlocked.h      \
184         ward.h
185
186 arch_sources = 
187
188 if !CROSS_COMPILE
189
190 if X86
191 arch_sources += mach-support-x86.c
192 endif
193
194 if AMD64
195 arch_sources += mach-support-amd64.c
196 endif
197
198 if ARM
199 arch_sources += mach-support-arm.c
200 endif
201
202 if ARM64
203 arch_sources += mach-support-arm64.c
204 endif
205
206 else
207
208 arch_sources += mach-support-unknown.c
209
210 endif
211
212 if !CROSS_COMPILE
213
214 if X86
215 arch_sources += mono-hwcap-x86.c
216 endif
217
218 if AMD64
219 arch_sources += mono-hwcap-x86.c
220 endif
221
222 if ARM
223 arch_sources += mono-hwcap-arm.c
224 endif
225
226 if ARM64
227 arch_sources += mono-hwcap-arm64.c
228 endif
229
230 if MIPS
231 arch_sources += mono-hwcap-mips.c
232 endif
233
234 if POWERPC
235 arch_sources += mono-hwcap-ppc.c
236 endif
237
238 if POWERPC64
239 arch_sources += mono-hwcap-ppc.c
240 endif
241
242 if SPARC
243 arch_sources += mono-hwcap-sparc.c
244 endif
245
246 if SPARC64
247 arch_sources += mono-hwcap-sparc.c
248 endif
249
250 if S390X
251 arch_sources += mono-hwcap-s390x.c
252 endif
253
254 if HOST_WASM
255 arch_sources += mono-hwcap-wasm.c
256 endif
257
258 else
259
260 arch_sources += mono-hwcap-cross.c
261
262 endif
263
264 libmonoutils_la_SOURCES = $(monoutils_sources) $(arch_sources)
265 libmonoutilsincludedir = $(includedir)/mono-$(API_VER)/mono/utils
266
267 libmonoutilsinclude_HEADERS =   \
268         mono-logger.h           \
269         mono-error.h            \
270         mono-publib.h           \
271         mono-dl-fallback.h      \
272         mono-counters.h
273
274 EXTRA_DIST = mono-embed.h mono-embed.c