Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
 configure.ac                              |  1 +
 src/gallium/drivers/Makefile.am           | 13 +------------
 src/gallium/drivers/noop/Makefile.am      | 16 ++++++++++++++++
 src/gallium/drivers/noop/Makefile.sources |  3 +++
 src/gallium/drivers/noop/SConscript       |  8 +++-----
 5 files changed, 24 insertions(+), 17 deletions(-)
 create mode 100644 src/gallium/drivers/noop/Makefile.am
 create mode 100644 src/gallium/drivers/noop/Makefile.sources

diff --git a/configure.ac b/configure.ac
index f6a0291..38d4e5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1993,6 +1993,7 @@ AC_CONFIG_FILES([Makefile
                src/gallium/drivers/identity/Makefile
                src/gallium/drivers/ilo/Makefile
                src/gallium/drivers/llvmpipe/Makefile
+               src/gallium/drivers/noop/Makefile
                src/gallium/drivers/nouveau/Makefile
                src/gallium/drivers/r300/Makefile
                src/gallium/drivers/r600/Makefile
diff --git a/src/gallium/drivers/Makefile.am b/src/gallium/drivers/Makefile.am
index c75fb82..3f7621d 100644
--- a/src/gallium/drivers/Makefile.am
+++ b/src/gallium/drivers/Makefile.am
@@ -11,7 +11,7 @@ AM_CFLAGS = $(VISIBILITY_CFLAGS)
 
 noinst_LTLIBRARIES =
 
-SUBDIRS = . identity trace rbug
+SUBDIRS = . identity noop trace rbug
 
 
################################################################################
 
@@ -24,17 +24,6 @@ galahad_libgalahad_la_SOURCES = \
 
 
################################################################################
 
-# Meta-driver which combines whichever software rasterizers have been
-# built into a single convenience library.
-
-noinst_LTLIBRARIES += noop/libnoop.la
-
-noop_libnoop_la_SOURCES = \
-       noop/noop_pipe.c \
-       noop/noop_state.c
-
-################################################################################
-
 if HAVE_GALLIUM_R600
 
 SUBDIRS += radeon
diff --git a/src/gallium/drivers/noop/Makefile.am 
b/src/gallium/drivers/noop/Makefile.am
new file mode 100644
index 0000000..1f4ba02
--- /dev/null
+++ b/src/gallium/drivers/noop/Makefile.am
@@ -0,0 +1,16 @@
+################################################################################
+
+# Meta-driver which combines whichever software rasterizers have been
+# built into a single convenience library.
+
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = \
+       -I$(top_srcdir)/src/gallium/drivers \
+       $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS)
+
+noinst_LTLIBRARIES = libnoop.la
+
+libnoop_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/noop/Makefile.sources 
b/src/gallium/drivers/noop/Makefile.sources
new file mode 100644
index 0000000..916385e
--- /dev/null
+++ b/src/gallium/drivers/noop/Makefile.sources
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       noop_pipe.c \
+       noop_state.c
diff --git a/src/gallium/drivers/noop/SConscript 
b/src/gallium/drivers/noop/SConscript
index a4d0dca..9cb2e29 100644
--- a/src/gallium/drivers/noop/SConscript
+++ b/src/gallium/drivers/noop/SConscript
@@ -7,9 +7,7 @@ env = env.Clone()
 
 noop = env.ConvenienceLibrary(
        target = 'noop',
-       source = [
-               'noop_pipe.c',
-               'noop_state.c'
-               ]
-    ) + extra
+       source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+       ) + extra
+
 Export('noop')
-- 
1.8.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to