include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LIBRARIES = libradeonsi.a
-
-AM_CPPFLAGS = \
+AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/drivers/radeon \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS)
-AM_CFLAGS = $(LLVM_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(RADEON_CFLAGS) \
+ $(LLVM_CFLAGS)
-# This is a hack until we can move the backend into the LLVM project.
-# We need to use mklib, because it splits up libradeon.a into object files
-# so that we can link it with the radeonsi objects.
-libradeonsi_a_AR = $(top_srcdir)/bin/mklib -o radeonsi -static
+noinst_LTLIBRARIES = libradeonsi.la
-libradeonsi_a_SOURCES = $(C_SOURCES)
-libradeonsi_a_LIBADD = ../radeon/libradeon.a
+libradeonsi_la_SOURCES = $(C_SOURCES)
+libradeonsi_la_LIBADD = \
+ ../radeon/libradeon.la \
+ ../radeon/libllvmradeon.la