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