Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
noinst_LTLIBRARIES = libdridrm.la
-libdridrm_la_SOURCES = \
- dri_context.c \
- dri_screen.c \
- dri_drawable.c \
- dri2.c
+libdridrm_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ dri_context.c \
+ dri_screen.c \
+ dri_drawable.c \
+ dri2.c
xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
])
-sources = [
- 'dri_context.c',
- 'dri_drawable.c',
- 'dri_screen.c',
- 'dri2.c',
-]
-
st_dri = env.ConvenienceLibrary(
target = 'st_dri',
- source = sources,
+ source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
)
Export('st_dri')