intel/tools: Use a makefile included from intel/Makefile.am
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 21:26:40 +0000 (13:26 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Mar 2017 11:16:35 +0000 (11:16 +0000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
configure.ac
src/Makefile.am
src/intel/Makefile.am
src/intel/Makefile.tools.am [new file with mode: 0644]
src/intel/tools/Makefile.am [deleted file]

index 19a9cdd00708a703917ac6d3e53d6659062ebf82..5ab906898a6d37b42c2a979d88a70a67b1b6115e 100644 (file)
@@ -2687,7 +2687,6 @@ AC_CONFIG_FILES([Makefile
                src/glx/windows/windowsdriproto.pc
                src/gtest/Makefile
                src/intel/Makefile
-               src/intel/tools/Makefile
                src/intel/vulkan/Makefile
                src/loader/Makefile
                src/mapi/Makefile
index 25b9253fc395dc4e8ca7c650104b07e0142be018..01e9edfc4863a86edb4f71f3b9e42c263a3dd549 100644 (file)
@@ -117,10 +117,6 @@ if HAVE_EGL
 SUBDIRS += egl
 endif
 
-if HAVE_INTEL_DRIVERS
-SUBDIRS += intel/tools
-endif
-
 ## Requires the i965 compiler (part of mesa) and wayland-drm
 if HAVE_INTEL_VULKAN
 SUBDIRS += intel/vulkan
index 8d852a09c987d6ecf9845153e5b79f1f24a2dc8d..fc749bfc951211e9e47373e101ff4b63994fb9c6 100644 (file)
@@ -49,6 +49,7 @@ MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
 
 noinst_LTLIBRARIES =
+noinst_PROGRAMS =
 check_PROGRAMS =
 TESTS =
 BUILT_SOURCES =
@@ -60,5 +61,6 @@ include Makefile.common.am
 include Makefile.compiler.am
 include Makefile.genxml.am
 include Makefile.isl.am
+include Makefile.tools.am
 
 CLEANFILES += $(BUILT_SOURCES)
diff --git a/src/intel/Makefile.tools.am b/src/intel/Makefile.tools.am
new file mode 100644 (file)
index 0000000..5838819
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 2015-2017 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.
+
+noinst_PROGRAMS += tools/aubinator
+
+tools_aubinator_SOURCES = \
+       tools/aubinator.c \
+       tools/decoder.c \
+       tools/decoder.h \
+       tools/disasm.c \
+       tools/gen_disasm.h
+
+tools_aubinator_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(EXPAT_CFLAGS)
+
+tools_aubinator_LDADD = \
+       common/libintel_common.la \
+       compiler/libintel_compiler.la \
+       $(top_builddir)/src/util/libmesautil.la \
+       $(PER_GEN_LIBS) \
+       $(PTHREAD_LIBS) \
+       $(DLOPEN_LIBS) \
+       $(EXPAT_LIBS) \
+       -lm
diff --git a/src/intel/tools/Makefile.am b/src/intel/tools/Makefile.am
deleted file mode 100644 (file)
index 3ef4f31..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright © 2016 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.
-
-# The gallium includes are for the util/u_math.h include from main/macros.h
-AM_CPPFLAGS = \
-       $(INTEL_CFLAGS) \
-       $(VALGRIND_CFLAGS) \
-       $(DEFINES) \
-       -I$(top_srcdir)/include \
-       -I$(top_builddir)/src \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/mapi \
-       -I$(top_srcdir)/src/mesa \
-       -I$(top_srcdir)/src/gallium/auxiliary \
-       -I$(top_srcdir)/src/gallium/include \
-       -I$(top_builddir)/src/intel \
-       -I$(top_srcdir)/src/intel
-
-aubinator_DEPS = \
-       $(top_builddir)/src/intel/common/libintel_common.la \
-       $(top_builddir)/src/intel/compiler/libintel_compiler.la \
-       $(top_builddir)/src/util/libmesautil.la \
-       $(PER_GEN_LIBS) \
-       $(PTHREAD_LIBS) \
-       $(DLOPEN_LIBS) \
-       -lm
-
-noinst_PROGRAMS = aubinator
-
-aubinator_SOURCES = \
-       aubinator.c \
-       decoder.c \
-       decoder.h \
-       disasm.c \
-       gen_disasm.h
-
-aubinator_LDADD = \
-       $(aubinator_DEPS) \
-       $(EXPAT_LIBS)
-
-aubinator_CFLAGS = \
-       $(AM_CFLAGS) \
-       $(EXPAT_CFLAGS) \
-       -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src