radeon/winsys: Convert to automake
authorTom Stellard <tstellar@gmail.com>
Fri, 24 Aug 2012 18:44:57 +0000 (11:44 -0700)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Thu, 10 Jan 2013 21:01:06 +0000 (22:01 +0100)
configure.ac
src/gallium/winsys/radeon/drm/.gitignore [new file with mode: 0644]
src/gallium/winsys/radeon/drm/Makefile [deleted file]
src/gallium/winsys/radeon/drm/Makefile.am [new file with mode: 0644]

index 5cc611ff8b0dedf79f92220c90bab6c22b0dabe3..354635b137758d7d27a3403cad4becaace5ee660 100644 (file)
@@ -2010,6 +2010,7 @@ AC_CONFIG_FILES([configs/current
                src/gallium/targets/Makefile
                src/gallium/targets/opencl/Makefile
                src/gallium/winsys/Makefile
+               src/gallium/winsys/radeon/drm/Makefile
                src/gbm/Makefile
                src/gbm/main/gbm.pc
                src/glsl/Makefile
diff --git a/src/gallium/winsys/radeon/drm/.gitignore b/src/gallium/winsys/radeon/drm/.gitignore
new file mode 100644 (file)
index 0000000..f3c7a7c
--- /dev/null
@@ -0,0 +1 @@
+Makefile
diff --git a/src/gallium/winsys/radeon/drm/Makefile b/src/gallium/winsys/radeon/drm/Makefile
deleted file mode 100644 (file)
index 517360e..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-
-TOP = ../../../../..
-include $(TOP)/configs/current
-
-LIBNAME = radeonwinsys
-
-# get C_SOURCES
-include Makefile.sources
-
-LIBRARY_INCLUDES = -I$(TOP)/include \
-                  $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
-
-include ../../../Makefile.template
-
-symlinks:
diff --git a/src/gallium/winsys/radeon/drm/Makefile.am b/src/gallium/winsys/radeon/drm/Makefile.am
new file mode 100644 (file)
index 0000000..5b2506b
--- /dev/null
@@ -0,0 +1,15 @@
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = \
+       -I$(top_srcdir)/include \
+       $(GALLIUM_CFLAGS) \
+       $(RADEON_CFLAGS)
+
+noinst_LTLIBRARIES = libradeonwinsys.la
+
+libradeonwinsys_la_SOURCES = $(C_SOURCES)
+
+#XXX: Delete this when all targets using the radeon winsys are converted to automake.
+all-local: libradeonwinsys.la
+       ln -f $(builddir)/.libs/libradeonwinsys.a $(builddir)/libradeonwinsys.a