Makefile.am 2.69 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# Copyright © 2014 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

22 23 24
SUBDIRS = . \
	xmlpool \
	tests/hash_table \
25 26
	tests/string_buffer \
	tests/set
27 28 29 30

if HAVE_STD_CXX11
SUBDIRS += tests/vma
endif
31 32 33

include Makefile.sources

34 35 36
noinst_LTLIBRARIES = \
	libmesautil.la \
	libxmlconfig.la
37

38
AM_CPPFLAGS = \
39
	$(PTHREAD_CFLAGS) \
40 41
	-I$(top_srcdir)/include

42 43 44
libmesautil_la_CPPFLAGS = \
	$(DEFINES) \
	-I$(top_srcdir)/include \
45 46 47
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/mapi \
	-I$(top_srcdir)/src/mesa \
48 49
	-I$(top_srcdir)/src/gallium/include \
	-I$(top_srcdir)/src/gallium/auxiliary \
50
	$(VISIBILITY_CFLAGS) \
51 52
	$(MSVC2013_COMPAT_CFLAGS) \
	$(ZLIB_CFLAGS)
53

54 55
libmesautil_la_SOURCES = \
	$(MESA_UTIL_FILES) \
Emil Velikov's avatar
Emil Velikov committed
56 57
	$(MESA_UTIL_GENERATED_FILES)

58
libmesautil_la_LIBADD = \
59
	$(PTHREAD_LIBS) \
60
	$(CLOCK_LIB) \
61 62
	$(ZLIB_LIBS) \
	$(LIBATOMIC_LIBS)
63

64 65 66 67 68 69
libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES)
libxmlconfig_la_CFLAGS = \
	$(DEFINES) \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/src \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
70
	-DDATADIR=\"$(datadir)\" \
71 72 73 74
	$(VISIBILITY_CFLAGS) \
	$(EXPAT_CFLAGS)
libxmlconfig_la_LIBADD = $(EXPAT_LIBS) -lm

75 76
drircdir = $(datadir)/drirc.d
drirc_DATA = 00-mesa-defaults.conf
77

78
u_atomic_test_LDADD = libmesautil.la
79
roundeven_test_LDADD = -lm
80
mesa_sha1_test_LDADD = libmesautil.la
81

82
check_PROGRAMS = u_atomic_test roundeven_test mesa-sha1_test
83 84
TESTS = $(check_PROGRAMS)

Emil Velikov's avatar
Emil Velikov committed
85 86
BUILT_SOURCES = $(MESA_UTIL_GENERATED_FILES)
CLEANFILES = $(BUILT_SOURCES)
87
EXTRA_DIST = \
88
	00-mesa-defaults.conf \
89
	format_srgb.py \
90
	merge_driinfo.py \
91
	SConscript \
92
	xmlpool.h \
93 94
	sha1/README \
	meson.build
95

96
PYTHON_GEN = $(AM_V_GEN)$(PYTHON) $(PYTHON_FLAGS)
97 98 99

format_srgb.c: format_srgb.py
	$(PYTHON_GEN) $(srcdir)/format_srgb.py > $@