st/dri/drm: Add a second libdridrm library
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2014 01:05:05 +0000 (02:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Jul 2014 09:52:52 +0000 (10:52 +0100)
Will be used to create the single dri target library, on our
way to convert all the dri targets during the conversion to
to static/shared pipe-drivers.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Rob Clark <robclark@freedesktop.org>
Tested-by: Thomas Helland <thomashelland90 at gmail.com>
Acked-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/state_trackers/dri/drm/Makefile.am

index a348f65f39000b8c7c12c5450f6cbdb64945c159..d04a06a9fcc5b7cf64c54bfe41262cb6d5c2d27a 100644 (file)
@@ -36,10 +36,18 @@ AM_CPPFLAGS = \
        $(LIBDRM_CFLAGS) \
        $(VISIBILITY_CFLAGS)
 
-noinst_LTLIBRARIES = libdridrm.la
+noinst_LTLIBRARIES = libdridrm.la libdridrm_s.la
 
 libdridrm_la_CPPFLAGS = \
        $(AM_CPPFLAGS) \
        -DSPLIT_TARGETS=1
 
+if HAVE_GALLIUM_STATIC_TARGETS
+libdridrm_s_la_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -DGALLIUM_STATIC_TARGETS=1
+endif # HAVE_GALLIUM_STATIC_TARGETS
+
 libdridrm_la_SOURCES = $(C_SOURCES)
+
+libdridrm_s_la_SOURCES = $(C_SOURCES)