i965/fs: Use the LRP instruction for ir_triop_lrp when possible.
[mesa.git] / src / mesa / libdricore / Makefile.am
1 # Copyright © 2012 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 SRCDIR=$(top_srcdir)/src/mesa/
23 BUILDDIR=$(top_builddir)/src/mesa/
24 include ../sources.mak
25 include ../../glsl/Makefile.sources
26
27 noinst_PROGRAMS =
28
29 AM_CPPFLAGS = \
30 $(INCLUDE_DIRS) \
31 $(API_DEFINES) \
32 $(DEFINES) \
33 -DUSE_DRICORE
34
35 libdricore@VERSION@_la_SOURCES = \
36 $(MESA_FILES) \
37 $(LIBGLCPP_GENERATED_FILES) \
38 $(LIBGLCPP_FILES) \
39 $(LIBGLSL_FILES) \
40 $(BUILTIN_COMPILER_GENERATED_CXX_FILES) \
41 $(top_builddir)/src/glsl/builtin_function.cpp
42 libdricore@VERSION@_la_LDFLAGS = -version-number 1:0
43 libdricore@VERSION@_la_LIBADD = \
44 ../program/libdricore_program.la \
45 $()
46
47 if HAVE_X86_ASM
48 libdricore@VERSION@_la_SOURCES += $(X86_FILES)
49 AM_CPPFLAGS += \
50 -I$(top_builddir)/src/mesa/x86 \
51 -I$(top_srcdir)/src/mesa/x86
52 endif
53
54 if HAVE_X86_64_ASM
55 libdricore@VERSION@_la_SOURCES += $(X86_64_FILES)
56 AM_CPPFLAGS += \
57 -I$(top_builddir)/src/mesa/x86-64 \
58 -I$(top_srcdir)/src/mesa/x86-64
59 endif
60
61 if HAVE_SPARC_ASM
62 libdricore@VERSION@_la_SOURCES += $(SPARC_FILES)
63 AM_CPPFLAGS += \
64 -I$(top_builddir)/src/mesa/sparc \
65 -I$(top_srcdir)/src/mesa/sparc
66 endif
67
68 if HAVE_DRI
69 lib_LTLIBRARIES = libdricore@VERSION@.la
70
71 # Provide compatibility with scripts for the old Mesa build system for
72 # a while by putting a link to the driver into /lib of the build tree.
73 all-local: libdricore@VERSION@.la
74 $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
75 ln -f .libs/libdricore@VERSION@.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libdricore@VERSION@.so.1;
76 ln -sf libdricore@VERSION@.so.1 $(top_builddir)/$(LIB_DIR)/libdricore@VERSION@.so
77 endif
78
79 CLEANFILES = \
80 $(top_builddir)/$(LIB_DIR)/libdricore@VERSION@.so.1 \
81 $(top_builddir)/$(LIB_DIR)/libdricore@VERSION@.so
82
83 -include $(DEPENDS)