summaryrefslogtreecommitdiff
path: root/amdgpu
diff options
context:
space:
mode:
authorMauro Rossi <issor.oruam@gmail.com>2015-08-20 16:55:20 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-08-20 16:56:51 +0100
commitae7f7b27a10d4ff0967c45984e5bf577cef8b036 (patch)
treeb195d3ac616f0cca0e654c2617d5f5e6d37c2f4e /amdgpu
parentab2fadabde3829b1ec56bd4756165dd9bd281488 (diff)
amdgpu: add Makefile.sources
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> [Emil Velikov: remove duplicate amdgpu.h from LIBDRM_AMDGPU_FILES] Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/Makefile.am18
-rw-r--r--amdgpu/Makefile.sources14
2 files changed, 18 insertions, 14 deletions
diff --git a/amdgpu/Makefile.am b/amdgpu/Makefile.am
index ed97803f..37f71983 100644
--- a/amdgpu/Makefile.am
+++ b/amdgpu/Makefile.am
@@ -22,6 +22,8 @@
# Authors:
# Jérôme Glisse <glisse@freedesktop.org>
+include Makefile.sources
+
AM_CFLAGS = \
$(WARN_CFLAGS) -Wno-switch-enum \
-I$(top_srcdir) \
@@ -33,22 +35,10 @@ libdrm_amdgpu_ladir = $(libdir)
libdrm_amdgpu_la_LDFLAGS = -version-number 1:0:0 -no-undefined
libdrm_amdgpu_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
-libdrm_amdgpu_la_SOURCES = \
- amdgpu.h \
- amdgpu_bo.c \
- amdgpu_cs.c \
- amdgpu_device.c \
- amdgpu_gpu_info.c \
- amdgpu_internal.h \
- amdgpu_vamgr.c \
- util_hash.c \
- util_hash.h \
- util_hash_table.c \
- util_hash_table.h
+libdrm_amdgpu_la_SOURCES = $(LIBDRM_AMDGPU_FILES)
libdrm_amdgpuincludedir = ${includedir}/libdrm
-libdrm_amdgpuinclude_HEADERS = \
- amdgpu.h
+libdrm_amdgpuinclude_HEADERS = $(LIBDRM_AMDGPU_H_FILES)
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = libdrm_amdgpu.pc
diff --git a/amdgpu/Makefile.sources b/amdgpu/Makefile.sources
new file mode 100644
index 00000000..0c0b9a93
--- /dev/null
+++ b/amdgpu/Makefile.sources
@@ -0,0 +1,14 @@
+LIBDRM_AMDGPU_FILES := \
+ amdgpu_bo.c \
+ amdgpu_cs.c \
+ amdgpu_device.c \
+ amdgpu_gpu_info.c \
+ amdgpu_internal.h \
+ amdgpu_vamgr.c \
+ util_hash.c \
+ util_hash.h \
+ util_hash_table.c \
+ util_hash_table.h
+
+LIBDRM_AMDGPU_H_FILES := \
+ amdgpu.h