summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/identity
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2013-06-05 23:28:11 +0100
committerTom Stellard <[email protected]>2013-10-01 07:29:50 -0700
commitd7c66ff59ef07abe85a2867f82326376f94386e3 (patch)
tree372a80b57ab321302e93dd7c7f32b3e00411e6bd /src/gallium/drivers/identity
parent959ed5c1636441cbd4dfb720e3d57e0a03bd9992 (diff)
identity: consolidate C sources list into Makefile.sources
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/identity')
-rw-r--r--src/gallium/drivers/identity/Makefile.am11
-rw-r--r--src/gallium/drivers/identity/Makefile.sources4
-rw-r--r--src/gallium/drivers/identity/SConscript7
3 files changed, 17 insertions, 5 deletions
diff --git a/src/gallium/drivers/identity/Makefile.am b/src/gallium/drivers/identity/Makefile.am
new file mode 100644
index 00000000000..1caf3286a4c
--- /dev/null
+++ b/src/gallium/drivers/identity/Makefile.am
@@ -0,0 +1,11 @@
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = \
+ -I$(top_srcdir)/src/gallium/drivers \
+ $(GALLIUM_CFLAGS) \
+ $(VISIBILITY_CFLAGS)
+
+noinst_LTLIBRARIES = libidentity.la
+
+libidentity_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/identity/Makefile.sources b/src/gallium/drivers/identity/Makefile.sources
new file mode 100644
index 00000000000..14351e0e8d8
--- /dev/null
+++ b/src/gallium/drivers/identity/Makefile.sources
@@ -0,0 +1,4 @@
+C_SOURCES := \
+ id_objects.c \
+ id_context.c \
+ id_screen.c
diff --git a/src/gallium/drivers/identity/SConscript b/src/gallium/drivers/identity/SConscript
index d24d1ec7c61..120995143d2 100644
--- a/src/gallium/drivers/identity/SConscript
+++ b/src/gallium/drivers/identity/SConscript
@@ -4,11 +4,8 @@ env = env.Clone()
identity = env.ConvenienceLibrary(
target = 'identity',
- source = [
- 'id_context.c',
- 'id_objects.c',
- 'id_screen.c',
- ])
+ source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+ )
env.Alias('identity', identity)