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