[Mesa-dev] [PATCH 15/32] svga: Convert to automake

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


---
 configure.ac                         |    1 +
 src/gallium/drivers/svga/.gitignore  |    1 +
 src/gallium/drivers/svga/Makefile    |   19 -------------------
 src/gallium/drivers/svga/Makefile.am |   17 +++++++++++++++++
 4 files changed, 19 insertions(+), 19 deletions(-)
 create mode 100644 src/gallium/drivers/svga/.gitignore
 delete mode 100644 src/gallium/drivers/svga/Makefile
 create mode 100644 src/gallium/drivers/svga/Makefile.am

diff --git a/configure.ac b/configure.ac
index c0ff3d5..d410e5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2025,6 +2025,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/drivers/r600/Makefile
 		src/gallium/drivers/rbug/Makefile
 		src/gallium/drivers/softpipe/Makefile
+		src/gallium/drivers/svga/Makefile
 		src/gallium/drivers/trace/Makefile
 		src/gallium/state_trackers/clover/Makefile
 		src/gallium/targets/Makefile
diff --git a/src/gallium/drivers/svga/.gitignore b/src/gallium/drivers/svga/.gitignore
new file mode 100644
index 0000000..f3c7a7c
--- /dev/null
+++ b/src/gallium/drivers/svga/.gitignore
@@ -0,0 +1 @@
+Makefile
diff --git a/src/gallium/drivers/svga/Makefile b/src/gallium/drivers/svga/Makefile
deleted file mode 100644
index 97f68f0..0000000
--- a/src/gallium/drivers/svga/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = svga
-
-# get C_SOURCES
-include Makefile.sources
-
-LIBRARY_INCLUDES = \
-	-I$(TOP)/src/gallium/drivers/svga/include
-
-# With linux-debug we get a lots of warnings, filter out the bad flags.
-CFLAGS := $(filter-out -pedantic, $(filter-out -ansi, $(CFLAGS)))
-
-LIBRARY_DEFINES = \
-	-std=gnu99 -fvisibility=hidden \
-	-DHAVE_STDINT_H -DHAVE_SYS_TYPES_H
-
-include ../../Makefile.template
diff --git a/src/gallium/drivers/svga/Makefile.am b/src/gallium/drivers/svga/Makefile.am
new file mode 100644
index 0000000..0bfe591
--- /dev/null
+++ b/src/gallium/drivers/svga/Makefile.am
@@ -0,0 +1,17 @@
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/src/gallium/drivers/svga/include \
+	-I$(top_srcdir)/src/gallium/drivers \
+	-I$(top_srcdir)/include \
+	$(GALLIUM_CFLAGS)
+
+AM_CFLAGS = -std=gnu99
+
+noinst_LTLIBRARIES = libsvga.la
+
+libsvga_la_SOURCES = $(C_SOURCES)
+
+all-local: libsvga.la
+	ln -f $(builddir)/.libs/libsvga.a $(builddir)/libsvga.a
-- 
1.7.8.6



More information about the mesa-dev mailing list