util: Add a randomized test for the virtual memory allocator
[mesa.git] / src / util / Makefile.am
1 # Copyright © 2014 Intel Corporation
2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
9 #
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
12 # Software.
13 #
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 # IN THE SOFTWARE.
21
22 SUBDIRS = . \
23 xmlpool \
24 tests/hash_table \
25 tests/string_buffer \
26 tests/vma
27
28 include Makefile.sources
29
30 noinst_LTLIBRARIES = \
31 libmesautil.la \
32 libxmlconfig.la
33
34 AM_CPPFLAGS = \
35 $(PTHREAD_CFLAGS) \
36 -I$(top_srcdir)/include
37
38 libmesautil_la_CPPFLAGS = \
39 $(DEFINES) \
40 -I$(top_srcdir)/include \
41 -I$(top_srcdir)/src \
42 -I$(top_srcdir)/src/mapi \
43 -I$(top_srcdir)/src/mesa \
44 -I$(top_srcdir)/src/gallium/include \
45 -I$(top_srcdir)/src/gallium/auxiliary \
46 $(VISIBILITY_CFLAGS) \
47 $(MSVC2013_COMPAT_CFLAGS) \
48 $(ZLIB_CFLAGS)
49
50 libmesautil_la_SOURCES = \
51 $(MESA_UTIL_FILES) \
52 $(MESA_UTIL_GENERATED_FILES)
53
54 libmesautil_la_LIBADD = \
55 $(PTHREAD_LIBS) \
56 $(CLOCK_LIB) \
57 $(ZLIB_LIBS) \
58 $(LIBATOMIC_LIBS)
59
60 libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES)
61 libxmlconfig_la_CFLAGS = \
62 $(DEFINES) \
63 -I$(top_srcdir)/include \
64 -I$(top_srcdir)/src \
65 -DSYSCONFDIR=\"$(sysconfdir)\" \
66 $(VISIBILITY_CFLAGS) \
67 $(EXPAT_CFLAGS)
68 libxmlconfig_la_LIBADD = $(EXPAT_LIBS) -lm
69
70 sysconf_DATA = drirc
71
72 u_atomic_test_LDADD = libmesautil.la
73 roundeven_test_LDADD = -lm
74 mesa_sha1_test_LDADD = libmesautil.la
75
76 check_PROGRAMS = u_atomic_test roundeven_test mesa-sha1_test
77 TESTS = $(check_PROGRAMS)
78
79 BUILT_SOURCES = $(MESA_UTIL_GENERATED_FILES)
80 CLEANFILES = $(BUILT_SOURCES)
81 EXTRA_DIST = \
82 drirc \
83 format_srgb.py \
84 merge_driinfo.py \
85 SConscript \
86 xmlpool.h \
87 sha1/README \
88 meson.build
89
90 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
91
92 format_srgb.c: format_srgb.py
93 $(PYTHON_GEN) $(srcdir)/format_srgb.py > $@