# 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
-
-# GALLIUM_CFLAGS must appear before src/gallium/drivers
-# because there are stupidly two rbug_context.h files in
-# different directories, and which one is included by the
-# preprocessor is determined by the ordering of the -I flags.
AM_CFLAGS = \
- $(GALLIUM_CFLAGS) \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include
+ $(GALLIUM_DRIVER_CFLAGS)
+
+noinst_LTLIBRARIES = librbug.la
-librbug_la_SOURCES = \
- rbug_core.c \
- rbug_context.c \
- rbug_objects.c \
- rbug_screen.c
+librbug_la_SOURCES = $(C_SOURCES)
-all-local: librbug.la
- ln -f $(builddir)/.libs/librbug.a $(builddir)/librbug.a
+EXTRA_DIST = SConscript README