[Mesa-dev] [PATCH 25/32] winsys/sw/fbdev: Convert to automake

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


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

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



More information about the mesa-dev mailing list