[Mesa-dev] [PATCH 27/32] winsys/sw/wayland: Convert to automake

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


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

diff --git a/configure.ac b/configure.ac
index b4d5ed8..d3b30d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2045,6 +2045,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/winsys/sw/dri/Makefile
 		src/gallium/winsys/sw/fbdev/Makefile
 		src/gallium/winsys/sw/null/Makefile
+		src/gallium/winsys/sw/wayland/Makefile
 		src/gbm/Makefile
 		src/gbm/main/gbm.pc
 		src/glsl/Makefile
diff --git a/src/gallium/winsys/sw/wayland/.gitignore b/src/gallium/winsys/sw/wayland/.gitignore
new file mode 100644
index 0000000..f3c7a7c
--- /dev/null
+++ b/src/gallium/winsys/sw/wayland/.gitignore
@@ -0,0 +1 @@
+Makefile
diff --git a/src/gallium/winsys/sw/wayland/Makefile b/src/gallium/winsys/sw/wayland/Makefile
deleted file mode 100644
index b3f2081..0000000
--- a/src/gallium/winsys/sw/wayland/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-TOP = ../../../../..
-include $(TOP)/configs/current
-
-LIBNAME = ws_wayland
-
-LIBRARY_INCLUDES = $(WAYLAND_CFLAGS)
-
-LIBRARY_DEFINES =
-
-C_SOURCES = \
-	wayland_sw_winsys.c
-
-include ../../../Makefile.template
diff --git a/src/gallium/winsys/sw/wayland/Makefile.am b/src/gallium/winsys/sw/wayland/Makefile.am
new file mode 100644
index 0000000..d7bad04
--- /dev/null
+++ b/src/gallium/winsys/sw/wayland/Makefile.am
@@ -0,0 +1,13 @@
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CPPFLAGS = \
+	$(GALLIUM_CFLAGS)
+	$(WAYLAND_CFLAGS)
+
+noinst_LTLIBRARIES = libws_wayland.la
+
+libws_wayland_la_SOURCES = wayland_sw_winsys.c
+
+#XXX: Delete this when all targets using the ws_wayland winsys are converted to automake.
+all-local: libws_wayland.la
+	ln -f $(builddir)/.libs/libws_wayland.a $(builddir)/libws_wayland.a
-- 
1.7.8.6



More information about the mesa-dev mailing list