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
noinst_LTLIBRARIES = librbug.la
-I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/include
-librbug_la_SOURCES = \
- rbug_core.c \
- rbug_context.c \
- rbug_objects.c \
- rbug_screen.c
+librbug_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ rbug_core.c \
+ rbug_context.c \
+ rbug_objects.c \
+ rbug_screen.c
rbug = env.ConvenienceLibrary(
target = 'rbug',
- source = [
- 'rbug_context.c',
- 'rbug_core.c',
- 'rbug_objects.c',
- 'rbug_screen.c',
- ])
+ source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+ )
env.Alias('rbug', rbug)