[Mesa-dev] [PATCH 09/29] freedreno: consolidate C sources list into Makefile.sources
Emil Velikov
emil.l.velikov at gmail.com
Sun Sep 22 13:29:32 PDT 2013
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/drivers/freedreno/Makefile.am | 13 ++-----------
src/gallium/drivers/freedreno/Makefile.sources | 11 +++++++++++
src/gallium/drivers/freedreno/a2xx/Makefile.am | 17 ++---------------
src/gallium/drivers/freedreno/a2xx/Makefile.sources | 15 +++++++++++++++
src/gallium/drivers/freedreno/a3xx/Makefile.am | 17 ++---------------
src/gallium/drivers/freedreno/a3xx/Makefile.sources | 15 +++++++++++++++
6 files changed, 47 insertions(+), 41 deletions(-)
create mode 100644 src/gallium/drivers/freedreno/Makefile.sources
create mode 100644 src/gallium/drivers/freedreno/a2xx/Makefile.sources
create mode 100644 src/gallium/drivers/freedreno/a3xx/Makefile.sources
diff --git a/src/gallium/drivers/freedreno/Makefile.am b/src/gallium/drivers/freedreno/Makefile.am
index b6dbbd1..9f5a80a 100644
--- a/src/gallium/drivers/freedreno/Makefile.am
+++ b/src/gallium/drivers/freedreno/Makefile.am
@@ -1,3 +1,4 @@
+include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
noinst_LTLIBRARIES = libfreedreno.la
@@ -13,17 +14,7 @@ AM_CFLAGS = \
SUBDIRS = a2xx a3xx
-libfreedreno_la_SOURCES = \
- freedreno_util.c \
- freedreno_fence.c \
- freedreno_resource.c \
- freedreno_surface.c \
- freedreno_draw.c \
- freedreno_state.c \
- freedreno_texture.c \
- freedreno_context.c \
- freedreno_screen.c \
- freedreno_gmem.c
+libfreedreno_la_SOURCES = $(C_SOURCES)
libfreedreno_la_LIBADD = \
a3xx/libfd3xx.la \
diff --git a/src/gallium/drivers/freedreno/Makefile.sources b/src/gallium/drivers/freedreno/Makefile.sources
new file mode 100644
index 0000000..02a88b6
--- /dev/null
+++ b/src/gallium/drivers/freedreno/Makefile.sources
@@ -0,0 +1,11 @@
+C_SOURCES := \
+ freedreno_util.c \
+ freedreno_fence.c \
+ freedreno_resource.c \
+ freedreno_surface.c \
+ freedreno_draw.c \
+ freedreno_state.c \
+ freedreno_texture.c \
+ freedreno_context.c \
+ freedreno_screen.c \
+ freedreno_gmem.c
diff --git a/src/gallium/drivers/freedreno/a2xx/Makefile.am b/src/gallium/drivers/freedreno/a2xx/Makefile.am
index 8ab0f76..b8a5ac1 100644
--- a/src/gallium/drivers/freedreno/a2xx/Makefile.am
+++ b/src/gallium/drivers/freedreno/a2xx/Makefile.am
@@ -1,3 +1,4 @@
+include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
noinst_LTLIBRARIES = libfd2xx.la
@@ -10,18 +11,4 @@ AM_CFLAGS = \
$(FREEDRENO_CFLAGS) \
$(VISIBILITY_CFLAGS)
-libfd2xx_la_SOURCES = \
- fd2_blend.c \
- fd2_compiler.c \
- fd2_context.c \
- fd2_draw.c \
- fd2_emit.c \
- fd2_gmem.c \
- fd2_program.c \
- fd2_rasterizer.c \
- fd2_screen.c \
- fd2_texture.c \
- fd2_util.c \
- fd2_zsa.c \
- disasm-a2xx.c \
- ir-a2xx.c
+libfd2xx_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/freedreno/a2xx/Makefile.sources b/src/gallium/drivers/freedreno/a2xx/Makefile.sources
new file mode 100644
index 0000000..1ef2852
--- /dev/null
+++ b/src/gallium/drivers/freedreno/a2xx/Makefile.sources
@@ -0,0 +1,15 @@
+C_SOURCES := \
+ fd2_blend.c \
+ fd2_compiler.c \
+ fd2_context.c \
+ fd2_draw.c \
+ fd2_emit.c \
+ fd2_gmem.c \
+ fd2_program.c \
+ fd2_rasterizer.c \
+ fd2_screen.c \
+ fd2_texture.c \
+ fd2_util.c \
+ fd2_zsa.c \
+ disasm-a2xx.c \
+ ir-a2xx.c
diff --git a/src/gallium/drivers/freedreno/a3xx/Makefile.am b/src/gallium/drivers/freedreno/a3xx/Makefile.am
index a7e415f..6b8b2e4 100644
--- a/src/gallium/drivers/freedreno/a3xx/Makefile.am
+++ b/src/gallium/drivers/freedreno/a3xx/Makefile.am
@@ -1,3 +1,4 @@
+include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
noinst_LTLIBRARIES = libfd3xx.la
@@ -10,18 +11,4 @@ AM_CFLAGS = \
$(FREEDRENO_CFLAGS) \
$(VISIBILITY_CFLAGS)
-libfd3xx_la_SOURCES = \
- fd3_blend.c \
- fd3_compiler.c \
- fd3_context.c \
- fd3_draw.c \
- fd3_emit.c \
- fd3_gmem.c \
- fd3_program.c \
- fd3_rasterizer.c \
- fd3_screen.c \
- fd3_texture.c \
- fd3_util.c \
- fd3_zsa.c \
- disasm-a3xx.c \
- ir-a3xx.c
+libfd3xx_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/freedreno/a3xx/Makefile.sources b/src/gallium/drivers/freedreno/a3xx/Makefile.sources
new file mode 100644
index 0000000..24ee6f0
--- /dev/null
+++ b/src/gallium/drivers/freedreno/a3xx/Makefile.sources
@@ -0,0 +1,15 @@
+C_SOURCES := \
+ fd3_blend.c \
+ fd3_compiler.c \
+ fd3_context.c \
+ fd3_draw.c \
+ fd3_emit.c \
+ fd3_gmem.c \
+ fd3_program.c \
+ fd3_rasterizer.c \
+ fd3_screen.c \
+ fd3_texture.c \
+ fd3_util.c \
+ fd3_zsa.c \
+ disasm-a3xx.c \
+ ir-a3xx.c
--
1.8.4
More information about the mesa-dev
mailing list