Merge pull request #2045 from BillSeurer/timezone
[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 monoutils_sources = \
15         mono-md5.c              \
16         mono-sha1.c             \
17         mono-logger.c           \
18         mono-logger-internal.h  \
19         mono-codeman.c          \
20         dlmalloc.h              \
21         dlmalloc.c              \
22         mono-counters.c         \
23         mono-compiler.h         \
24         mono-complex.h          \
25         mono-dl.c               \
26         mono-dl-windows.c       \
27         mono-dl-darwin.c        \
28         mono-dl-posix.c         \
29         mono-dl.h               \
30         mono-internal-hash.c    \
31         mono-internal-hash.h    \
32         mono-io-portability.c   \
33         mono-io-portability.h   \
34         monobitset.c            \
35         mono-filemap.c          \
36         mono-math.c             \
37         mono-mmap.c             \
38         mono-mmap.h             \
39         mono-mmap-internal.h    \
40         mono-mutex.c            \
41         mono-mutex.h            \
42         mono-lazy-init.h                \
43         mono-networkinterfaces.c                \
44         mono-networkinterfaces.h                \
45         mono-proclib.c          \
46         mono-proclib.h          \
47         mono-publib.c           \
48         mono-string.h           \
49         mono-time.c             \
50         mono-time.h             \
51         strenc.h                \
52         strenc.c                \
53         mono-uri.c              \
54         mono-poll.c             \
55         mono-path.c             \
56         mono-semaphore.c        \
57         mono-semaphore.h        \
58         mono-sigcontext.h       \
59         mono-stdlib.c           \
60         mono-property-hash.h    \
61         mono-property-hash.c    \
62         mono-value-hash.h       \
63         mono-value-hash.c       \
64         freebsd-elf_common.h    \
65         freebsd-elf32.h         \
66         freebsd-elf64.h         \
67         freebsd-dwarf.h         \
68         dtrace.h                        \
69         gc_wrapper.h            \
70         mono-error.c    \
71         mono-error-internals.h  \
72         monobitset.h    \
73         mono-codeman.h  \
74         mono-counters.h \
75         mono-digest.h   \
76         mono-error.h    \
77         mono-machine.h  \
78         mono-math.h     \
79         mono-membar.h   \
80         mono-path.h     \
81         mono-poll.h     \
82         mono-uri.h      \
83         mono-stdlib.h   \
84         valgrind.h      \
85         mach-support.c  \
86         mach-support.h  \
87         memcheck.h      \
88         mono-context.c  \
89         mono-context.h  \
90         mono-stack-unwinding.h  \
91         hazard-pointer.c        \
92         hazard-pointer.h        \
93         lock-free-queue.c       \
94         lock-free-queue.h       \
95         lock-free-alloc.c       \
96         lock-free-alloc.h       \
97         lock-free-array-queue.c \
98         lock-free-array-queue.h \
99         mono-linked-list-set.c  \
100         mono-linked-list-set.h  \
101         mono-threads.c  \
102         mono-threads-state-machine.c    \
103         mono-threads-posix.c    \
104         mono-threads-posix-signals.c    \
105         mono-threads-posix-signals.h    \
106         mono-threads-mach.c     \
107         mono-threads-mach-helper.c      \
108         mono-threads-windows.c  \
109         mono-threads-linux.c    \
110         mono-threads-freebsd.c  \
111         mono-threads-openbsd.c  \
112         mono-threads-android.c  \
113         mono-threads.h  \
114         mono-threads-api.h      \
115         mono-threads-coop.c     \
116         mono-threads-coop.h     \
117         mono-threads-mach-abort-syscall.c       \
118         mono-threads-posix-abort-syscall.c      \
119         mono-threads-windows-abort-syscall.c    \
120         mono-tls.h      \
121         mono-tls.c      \
122         linux_magic.h   \
123         mono-memory-model.h     \
124         atomic.h        \
125         atomic.c        \
126         mono-hwcap.h    \
127         mono-hwcap.c    \
128         bsearch.h       \
129         bsearch.c       \
130         mono-signal-handler.h   \
131         mono-conc-hashtable.h   \
132         mono-conc-hashtable.c   \
133         sha1.h          \
134         sha1.c  \
135         json.h  \
136         json.c  \
137         networking.c    \
138         networking-posix.c      \
139         networking-fallback.c   \
140         networking-missing.c    \
141         networking-windows.c    \
142         networking.h    \
143         mono-rand.c     \
144         mono-rand.h \
145         memfuncs.c \
146         memfuncs.h \
147         parse.c \
148         parse.h \
149         checked-build.c \
150         checked-build.h
151
152 arch_sources = 
153
154 if !CROSS_COMPILE
155
156 if X86
157 arch_sources += mach-support-x86.c
158 endif
159
160 if AMD64
161 arch_sources += mach-support-amd64.c
162 endif
163
164 if ARM
165 arch_sources += mach-support-arm.c
166 endif
167
168 if ARM64
169 arch_sources += mach-support-arm64.c
170 endif
171
172 else
173
174 arch_sources += mach-support-unknown.c
175
176 endif
177
178 if X86
179 arch_sources += mono-hwcap-x86.c mono-hwcap-x86.h
180 endif
181
182 if AMD64
183 arch_sources += mono-hwcap-x86.c mono-hwcap-x86.h
184 endif
185
186 if ARM
187 arch_sources += mono-hwcap-arm.c mono-hwcap-arm.h
188 endif
189
190 if ARM64
191 arch_sources += mono-hwcap-arm64.c mono-hwcap-arm64.h
192 endif
193
194 if MIPS
195 arch_sources += mono-hwcap-mips.c mono-hwcap-mips.h
196 endif
197
198 if POWERPC
199 arch_sources += mono-hwcap-ppc.c mono-hwcap-ppc.h
200 endif
201
202 if POWERPC64
203 arch_sources += mono-hwcap-ppc.c mono-hwcap-ppc.h
204 endif
205
206 if SPARC
207 arch_sources += mono-hwcap-sparc.c mono-hwcap-sparc.h
208 endif
209
210 if SPARC64
211 arch_sources += mono-hwcap-sparc.c mono-hwcap-sparc.h
212 endif
213
214 if IA64
215 arch_sources += mono-hwcap-ia64.c mono-hwcap-ia64.h
216 endif
217
218 if S390X
219 arch_sources += mono-hwcap-s390x.c mono-hwcap-s390x.h
220 endif
221
222 libmonoutils_la_SOURCES = $(monoutils_sources) $(arch_sources)
223 libmonoutilsincludedir = $(includedir)/mono-$(API_VER)/mono/utils
224
225 libmonoutilsinclude_HEADERS =   \
226         mono-logger.h           \
227         mono-error.h            \
228         mono-publib.h           \
229         mono-dl-fallback.h      \
230         mono-counters.h
231
232 EXTRA_DIST = ChangeLog mono-embed.h mono-embed.c