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 27 include Makefile.sources 28 29 noinst_LTLIBRARIES = \ 30 libmesautil.la \ 31 libxmlconfig.la 32 33 AM_CPPFLAGS = \ 34 $(PTHREAD_CFLAGS) \ 35 -I$(top_srcdir)/include 36 37 libmesautil_la_CPPFLAGS = \ 38 $(DEFINES) \ 39 -I$(top_srcdir)/include \ 40 -I$(top_srcdir)/src \ 41 -I$(top_srcdir)/src/mapi \ 42 -I$(top_srcdir)/src/mesa \ 43 -I$(top_srcdir)/src/gallium/include \ 44 -I$(top_srcdir)/src/gallium/auxiliary \ 45 $(VISIBILITY_CFLAGS) \ 46 $(MSVC2013_COMPAT_CFLAGS) \ 47 $(ZLIB_CFLAGS) 48 49 libmesautil_la_SOURCES = \ 50 $(MESA_UTIL_FILES) \ 51 $(MESA_UTIL_GENERATED_FILES) 52 53 libmesautil_la_LIBADD = \ 54 $(PTHREAD_LIBS) \ 55 $(CLOCK_LIB) \ 56 $(ZLIB_LIBS) \ 57 $(LIBATOMIC_LIBS) 58 59 libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES) 60 libxmlconfig_la_CFLAGS = \ 61 $(DEFINES) \ 62 -I$(top_srcdir)/include \ 63 -I$(top_srcdir)/src \ 64 -DSYSCONFDIR=\"$(sysconfdir)\" \ 65 $(VISIBILITY_CFLAGS) \ 66 $(EXPAT_CFLAGS) 67 libxmlconfig_la_LIBADD = $(EXPAT_LIBS) -lm 68 69 sysconf_DATA = drirc 70 71 u_atomic_test_LDADD = libmesautil.la 72 roundeven_test_LDADD = -lm 73 mesa_sha1_test_LDADD = libmesautil.la 74 75 check_PROGRAMS = u_atomic_test roundeven_test mesa-sha1_test 76 TESTS = $(check_PROGRAMS) 77 78 BUILT_SOURCES = $(MESA_UTIL_GENERATED_FILES) 79 CLEANFILES = $(BUILT_SOURCES) 80 EXTRA_DIST = \ 81 drirc \ 82 format_srgb.py \ 83 merge_driinfo.py \ 84 SConscript \ 85 xmlpool.h \ 86 sha1/README \ 87 meson.build 88 89 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) 90 91 format_srgb.c: format_srgb.py 92 $(PYTHON_GEN) $(srcdir)/format_srgb.py > $@ 93