[Nouveau] =?j?q?=5BPATCH=204/4=5D=20nvc0=3A=20use=20automake=20to=20generate=20Makefile?=

Lucas Stach dev at lynxeye.de
Thu Aug 2 16:53:10 PDT 2012


---
 configure.ac                         |  1 +
 src/gallium/drivers/nvc0/Makefile    | 12 ------------
 src/gallium/drivers/nvc0/Makefile.am | 25 +++++++++++++++++++++++++
 3 Dateien geändert, 26 Zeilen hinzugefügt(+), 12 Zeilen entfernt(-)
 delete mode 100644 src/gallium/drivers/nvc0/Makefile
 create mode 100644 src/gallium/drivers/nvc0/Makefile.am

diff --git a/configure.ac b/configure.ac
index aa20393..dca7352 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2132,6 +2132,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/drivers/nouveau/Makefile
 		src/gallium/drivers/nv30/Makefile
 		src/gallium/drivers/nv50/Makefile
+		src/gallium/drivers/nvc0/Makefile
 		src/gallium/drivers/r300/Makefile
 		src/gallium/drivers/r600/Makefile
 		src/gallium/targets/opencl/Makefile
diff --git a/src/gallium/drivers/nvc0/Makefile b/src/gallium/drivers/nvc0/Makefile
deleted file mode 100644
index c412625..0000000
--- a/src/gallium/drivers/nvc0/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = nvc0
-
-# get C/CPP_SOURCES
-include Makefile.sources
-
-LIBRARY_INCLUDES = \
-	$(LIBDRM_CFLAGS)
-
-include ../../Makefile.template
diff --git a/src/gallium/drivers/nvc0/Makefile.am b/src/gallium/drivers/nvc0/Makefile.am
new file mode 100644
index 0000000..8d60c6e
--- /dev/null
+++ b/src/gallium/drivers/nvc0/Makefile.am
@@ -0,0 +1,25 @@
+include Makefile.sources
+
+noinst_LIBRARIES = libnvc0.a
+
+AM_CFLAGS = \
+	-I$(top_srcdir)/src/gallium/include \
+	-I$(top_srcdir)/src/gallium/auxiliary \
+	-I$(top_srcdir)/src/gallium/drivers \
+	-I$(top_srcdir)/include \
+	$(NOUVEAU_CFLAGS) \
+	$(DEFINES) \
+	$(PIC_FLAGS) \
+	$(VISIBILITY_CFLAGS)
+	
+AM_CXXFLAGS = \
+	-I$(top_srcdir)/src/gallium/include \
+	-I$(top_srcdir)/src/gallium/auxiliary \
+	-I$(top_srcdir)/src/gallium/drivers \
+	$(DEFINES) \
+	$(PIC_FLAGS) \
+	$(VISIBILITY_CFLAGS)
+
+libnvc0_a_SOURCES = \
+	$(C_SOURCES) \
+	$(CPP_SOURCES)
\ No newline at end of file
-- 
1.7.11.2



More information about the Nouveau mailing list