[Mesa-dev] [PATCH 24/32] winsys/sw/dri: Convert to automake

Matt Turner mattst88 at gmail.com
Wed Aug 29 23:17:16 PDT 2012


---
 configure.ac                          |    1 +
 src/gallium/winsys/sw/dri/.gitignore  |    1 +
 src/gallium/winsys/sw/dri/Makefile    |   13 -------------
 src/gallium/winsys/sw/dri/Makefile.am |   12 ++++++++++++
 4 files changed, 14 insertions(+), 13 deletions(-)
 create mode 100644 src/gallium/winsys/sw/dri/.gitignore
 delete mode 100644 src/gallium/winsys/sw/dri/Makefile
 create mode 100644 src/gallium/winsys/sw/dri/Makefile.am

diff --git a/configure.ac b/configure.ac
index 5de7df8..d4532a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2042,6 +2042,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/winsys/radeon/drm/Makefile
 		src/gallium/winsys/svga/drm/Makefile
 		src/gallium/winsys/sw/Makefile
+		src/gallium/winsys/sw/dri/Makefile
 		src/gbm/Makefile
 		src/gbm/main/gbm.pc
 		src/glsl/Makefile
diff --git a/src/gallium/winsys/sw/dri/.gitignore b/src/gallium/winsys/sw/dri/.gitignore
new file mode 100644
index 0000000..f3c7a7c
--- /dev/null
+++ b/src/gallium/winsys/sw/dri/.gitignore
@@ -0,0 +1 @@
+Makefile
diff --git a/src/gallium/winsys/sw/dri/Makefile b/src/gallium/winsys/sw/dri/Makefile
deleted file mode 100644
index a3fca6b..0000000
--- a/src/gallium/winsys/sw/dri/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-TOP = ../../../../..
-include $(TOP)/configs/current
-
-LIBNAME = swdri
-
-LIBRARY_INCLUDES =
-
-LIBRARY_DEFINES =
-
-C_SOURCES = \
-	dri_sw_winsys.c
-
-include ../../../Makefile.template
diff --git a/src/gallium/winsys/sw/dri/Makefile.am b/src/gallium/winsys/sw/dri/Makefile.am
new file mode 100644
index 0000000..ffd9c7b
--- /dev/null
+++ b/src/gallium/winsys/sw/dri/Makefile.am
@@ -0,0 +1,12 @@
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CPPFLAGS = \
+	$(GALLIUM_CFLAGS)
+
+noinst_LTLIBRARIES = libswdri.la
+
+libswdri_la_SOURCES = dri_sw_winsys.c
+
+#XXX: Delete this when all targets using the swdri winsys are converted to automake.
+all-local: libswdri.la
+	ln -f $(builddir)/.libs/libswdri.a $(builddir)/libswdri.a
-- 
1.7.8.6



More information about the mesa-dev mailing list