Merge pull request #1542 from ninjarobot/UriTemplateMatchException
[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-dl.c               \
25         mono-dl-windows.c       \
26         mono-dl-darwin.c        \
27         mono-dl-posix.c         \
28         mono-dl.h               \
29         mono-internal-hash.c    \
30         mono-internal-hash.h    \
31         mono-io-portability.c   \
32         mono-io-portability.h   \
33         monobitset.c            \
34         mono-filemap.c          \
35         mono-math.c             \
36         mono-mmap.c             \
37         mono-mmap.h             \
38         mono-mmap-internal.h    \
39         mono-mutex.c            \
40         mono-mutex.h            \
41         mono-networkinterfaces.c                \
42         mono-networkinterfaces.h                \
43         mono-proclib.c          \
44         mono-proclib.h          \
45         mono-publib.c           \
46         mono-string.h           \
47         mono-time.c             \
48         mono-time.h             \
49         strtod.h                \
50         strtod.c                \
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-posix.c    \
103         mono-threads-mach.c     \
104         mono-threads-mach-helper.c      \
105         mono-threads-windows.c  \
106         mono-threads-linux.c    \
107         mono-threads-freebsd.c  \
108         mono-threads-openbsd.c  \
109         mono-threads-android.c  \
110         mono-threads.h  \
111         mono-tls.h      \
112         mono-tls.c      \
113         linux_magic.h   \
114         mono-memory-model.h     \
115         atomic.h        \
116         atomic.c        \
117         mono-hwcap.h    \
118         mono-hwcap.c    \
119         bsearch.h       \
120         bsearch.c       \
121         mono-signal-handler.h   \
122         mono-conc-hashtable.h   \
123         mono-conc-hashtable.c   \
124         sha1.h          \
125         sha1.c  \
126         json.h  \
127         json.c  \       
128         networking.c    \
129         networking-posix.c      \
130         networking-fallback.c   \
131         networking-missing.c    \
132         networking-windows.c    \
133         networking.h
134
135 arch_sources = 
136
137 if !CROSS_COMPILE
138
139 if X86
140 arch_sources += mach-support-x86.c
141 endif
142
143 if AMD64
144 arch_sources += mach-support-amd64.c
145 endif
146
147 if ARM
148 arch_sources += mach-support-arm.c
149 endif
150
151 if ARM64
152 arch_sources += mach-support-arm.c
153 endif
154
155 else
156
157 arch_sources += mach-support-unknown.c
158
159 endif
160
161 if X86
162 arch_sources += mono-hwcap-x86.c mono-hwcap-x86.h
163 endif
164
165 if AMD64
166 arch_sources += mono-hwcap-x86.c mono-hwcap-x86.h
167 endif
168
169 if ARM
170 arch_sources += mono-hwcap-arm.c mono-hwcap-arm.h
171 endif
172
173 if ARM64
174 arch_sources += mono-hwcap-arm64.c mono-hwcap-arm64.h
175 endif
176
177 if MIPS
178 arch_sources += mono-hwcap-mips.c mono-hwcap-mips.h
179 endif
180
181 if POWERPC
182 arch_sources += mono-hwcap-ppc.c mono-hwcap-ppc.h
183 endif
184
185 if POWERPC64
186 arch_sources += mono-hwcap-ppc.c mono-hwcap-ppc.h
187 endif
188
189 if SPARC
190 arch_sources += mono-hwcap-sparc.c mono-hwcap-sparc.h
191 endif
192
193 if SPARC64
194 arch_sources += mono-hwcap-sparc.c mono-hwcap-sparc.h
195 endif
196
197 if IA64
198 arch_sources += mono-hwcap-ia64.c mono-hwcap-ia64.h
199 endif
200
201 if S390X
202 arch_sources += mono-hwcap-s390x.c mono-hwcap-s390x.h
203 endif
204
205 libmonoutils_la_SOURCES = $(monoutils_sources) $(arch_sources)
206 libmonoutilsincludedir = $(includedir)/mono-$(API_VER)/mono/utils
207
208 libmonoutilsinclude_HEADERS =   \
209         mono-logger.h           \
210         mono-error.h            \
211         mono-publib.h           \
212         mono-dl-fallback.h      \
213         mono-counters.h
214
215 EXTRA_DIST = ChangeLog mono-embed.h mono-embed.c