Skip to contentSkip to conversation

=?j?q?=5BPATCH=200/4=5D=20Convert=20Nouveau=20gallium=20drivers=20to=20automake?=

DISCUSSION Lucas Stach 3 participants 6 messages Aug 2, 2012 – Aug 3, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Trivial series to convert Nouveau gallium drivers to automake in order to generate Makefiles.

This is just the general direction in which the MESA buildsystem is moving. Aside from this it makes the "make" output a lot more readable and therefore helps to spot compiler warnings more easily.

Lucas Stach (4):
nouveau: use automake to generate Makefile
nv30: use automake to generate Makefile
nv50: use automake to generate Makefile
nvc0: use automake to generate Makefile

 configure.ac                            |  4 ++++
 src/gallium/drivers/nouveau/Makefile    | 16 ----------------
 src/gallium/drivers/nouveau/Makefile.am | 16 ++++++++++++++++
 src/gallium/drivers/nv30/Makefile       | 12 ------------
 src/gallium/drivers/nv30/Makefile.am    | 16 ++++++++++++++++
 src/gallium/drivers/nv50/Makefile       | 12 ------------
 src/gallium/drivers/nv50/Makefile.am    | 25 +++++++++++++++++++++++++
 src/gallium/drivers/nvc0/Makefile       | 12 ------------
 src/gallium/drivers/nvc0/Makefile.am    | 25 +++++++++++++++++++++++++
 9 Dateien geändert, 86 Zeilen hinzugefügt(+), 52 Zeilen entfernt(-)
 delete mode 100644 src/gallium/drivers/nouveau/Makefile
 create mode 100644 src/gallium/drivers/nouveau/Makefile.am
 delete mode 100644 src/gallium/drivers/nv30/Makefile
 create mode 100644 src/gallium/drivers/nv30/Makefile.am
 delete mode 100644 src/gallium/drivers/nv50/Makefile
 create mode 100644 src/gallium/drivers/nv50/Makefile.am
 delete mode 100644 src/gallium/drivers/nvc0/Makefile
 create mode 100644 src/gallium/drivers/nvc0/Makefile.am
Signature · 1 line
1.7.11.2

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

#1 lore raw

=?j?q?=5BPATCH=201/4=5D=20nouveau=3A=20use=20automake=20to=20generate=20Makefile?=

---
 configure.ac                            |  1 +
 src/gallium/drivers/nouveau/Makefile    | 16 ----------------
 src/gallium/drivers/nouveau/Makefile.am | 16 ++++++++++++++++
 3 Dateien geändert, 17 Zeilen hinzugefügt(+), 16 Zeilen entfernt(-)
 delete mode 100644 src/gallium/drivers/nouveau/Makefile
 create mode 100644 src/gallium/drivers/nouveau/Makefile.am
configure.ac +1 -0
index b6481a6..d1fc0f3 100644
@@ -2129,6 +2129,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/auxiliary/pipe-loader/Makefile
 		src/gallium/state_trackers/clover/Makefile
 		src/gallium/drivers/Makefile
+		src/gallium/drivers/nouveau/Makefile
 		src/gallium/drivers/r300/Makefile
 		src/gallium/drivers/r600/Makefile
 		src/gallium/targets/opencl/Makefile
src/gallium/drivers/nouveau/Makefile deleted +0 -16
deleted file mode 100644
index d583324..0000000
@@ -1,16 +0,0 @@
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = nouveau
-
-LIBRARY_INCLUDES = \
-	$(LIBDRM_CFLAGS) \
-	-I$(TOP)/src/gallium/drivers/nouveau/include
-
-LIBRARY_INCLUDES += $(shell $(PKG_CONFIG) libdrm libdrm_nouveau --cflags-only-I)
-LIBRARY_DEFINES += $(shell $(PKG_CONFIG) libdrm libdrm_nouveau --cflags-only-other)
-
-# get C_SOURCES
-include Makefile.sources
-
-include ../../Makefile.template
src/gallium/drivers/nouveau/Makefile.am new file +16 -0
new file mode 100644
index 0000000..dd4a767
@@ -0,0 +1,16 @@
+include Makefile.sources
+
+noinst_LIBRARIES = libnouveau.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)
+
+libnouveau_a_SOURCES = \
+	$(C_SOURCES)
\ No newline at end of file
Signature · 1 line
1.7.11.2

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

#3 lore raw

=?j?q?=5BPATCH=202/4=5D=20nv30=3A=20use=20automake=20to=20generate=20Makefile?=

In reply to a message not in the archive
---
 configure.ac                         |  1 +
 src/gallium/drivers/nv30/Makefile    | 12 ------------
 src/gallium/drivers/nv30/Makefile.am | 16 ++++++++++++++++
 3 Dateien geändert, 17 Zeilen hinzugefügt(+), 12 Zeilen entfernt(-)
 delete mode 100644 src/gallium/drivers/nv30/Makefile
 create mode 100644 src/gallium/drivers/nv30/Makefile.am
configure.ac +1 -0
index d1fc0f3..59b4b68 100644
@@ -2130,6 +2130,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/state_trackers/clover/Makefile
 		src/gallium/drivers/Makefile
 		src/gallium/drivers/nouveau/Makefile
+		src/gallium/drivers/nv30/Makefile
 		src/gallium/drivers/r300/Makefile
 		src/gallium/drivers/r600/Makefile
 		src/gallium/targets/opencl/Makefile
src/gallium/drivers/nv30/Makefile deleted +0 -12
deleted file mode 100644
index de521aa..0000000
@@ -1,12 +0,0 @@
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = nv30
-
-include Makefile.sources
-
-LIBRARY_INCLUDES = \
-	$(LIBDRM_CFLAGS)
-
-include ../../Makefile.template
-# DO NOT DELETE
src/gallium/drivers/nv30/Makefile.am new file +16 -0
new file mode 100644
index 0000000..e4034168
@@ -0,0 +1,16 @@
+include Makefile.sources
+
+noinst_LIBRARIES = libnv30.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)
+
+libnv30_a_SOURCES = \
+	$(C_SOURCES)
\ No newline at end of file
Signature · 1 line
1.7.11.2

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

=?j?q?=5BPATCH=203/4=5D=20nv50=3A=20use=20automake=20to=20generate=20Makefile?=

In reply to Lucas Stach
---
 configure.ac                         |  1 +
 src/gallium/drivers/nv50/Makefile    | 12 ------------
 src/gallium/drivers/nv50/Makefile.am | 25 +++++++++++++++++++++++++
 3 Dateien geändert, 26 Zeilen hinzugefügt(+), 12 Zeilen entfernt(-)
 delete mode 100644 src/gallium/drivers/nv50/Makefile
 create mode 100644 src/gallium/drivers/nv50/Makefile.am
configure.ac +1 -0
index 59b4b68..aa20393 100644
@@ -2131,6 +2131,7 @@ AC_CONFIG_FILES([configs/current
 		src/gallium/drivers/Makefile
 		src/gallium/drivers/nouveau/Makefile
 		src/gallium/drivers/nv30/Makefile
+		src/gallium/drivers/nv50/Makefile
 		src/gallium/drivers/r300/Makefile
 		src/gallium/drivers/r600/Makefile
 		src/gallium/targets/opencl/Makefile
src/gallium/drivers/nv50/Makefile deleted +0 -12
deleted file mode 100644
index 18e30b0..0000000
@@ -1,12 +0,0 @@
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = nv50
-
-# get C/CPP_SOURCES
-include Makefile.sources
-
-LIBRARY_INCLUDES = \
-	$(LIBDRM_CFLAGS)
-
-include ../../Makefile.template
src/gallium/drivers/nv50/Makefile.am new file +25 -0
new file mode 100644
index 0000000..bdef611
@@ -0,0 +1,25 @@
+include Makefile.sources
+
+noinst_LIBRARIES = libnv50.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)
+
+libnv50_a_SOURCES = \
+	$(C_SOURCES) \
+	$(CPP_SOURCES)
\ No newline at end of file
Signature · 1 line
1.7.11.2

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

#5 lore raw

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

In reply to Lucas Stach
---
 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
configure.ac +1 -0
index aa20393..dca7352 100644
@@ -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
src/gallium/drivers/nvc0/Makefile deleted +0 -12
deleted file mode 100644
index c412625..0000000
@@ -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
src/gallium/drivers/nvc0/Makefile.am new file +25 -0
new file mode 100644
index 0000000..8d60c6e
@@ -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
Signature · 1 line
1.7.11.2

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

#6 lore raw

Re: [PATCH 0/4] Convert Nouveau gallium drivers to automake

In reply to Lucas Stach
Quoted 7 lines · Lucas Stach

Trivial series to convert Nouveau gallium drivers to automake in order to generate Makefiles.

This is just the general direction in which the MESA buildsystem is moving. Aside from this it makes the "make" output a lot more readable and therefore helps to spot compiler warnings more easily.

Quoted 6 lines

Lucas Stach (4):
nouveau: use automake to generate Makefile
nv30: use automake to generate Makefile
nv50: use automake to generate Makefile
nvc0: use automake to generate Makefile

Hi Lucas,

I haven't had time to clean up these patches[1] yet, but there are examples in that series of how to build both .a and .la libraries at the same time (see [PATCH 3/6] r300g: Build a libtool archive), which will make it easier to transition the gallium targets to automake. You may want to do the same with the nouveau builds.

-Tom

[1]
http://www.mail-archive.com/[email protected]/msg23538.html

Quoted 27 lines
 configure.ac                            |  4 ++++
 src/gallium/drivers/nouveau/Makefile    | 16 ----------------
 src/gallium/drivers/nouveau/Makefile.am | 16 ++++++++++++++++
 src/gallium/drivers/nv30/Makefile       | 12 ------------
 src/gallium/drivers/nv30/Makefile.am    | 16 ++++++++++++++++
 src/gallium/drivers/nv50/Makefile       | 12 ------------
 src/gallium/drivers/nv50/Makefile.am    | 25 +++++++++++++++++++++++++
 src/gallium/drivers/nvc0/Makefile       | 12 ------------
 src/gallium/drivers/nvc0/Makefile.am    | 25 +++++++++++++++++++++++++
 9 Dateien geändert, 86 Zeilen hinzugefügt(+), 52 Zeilen entfernt(-)
 delete mode 100644 src/gallium/drivers/nouveau/Makefile
 create mode 100644 src/gallium/drivers/nouveau/Makefile.am
 delete mode 100644 src/gallium/drivers/nv30/Makefile
 create mode 100644 src/gallium/drivers/nv30/Makefile.am
 delete mode 100644 src/gallium/drivers/nv50/Makefile
 create mode 100644 src/gallium/drivers/nv50/Makefile.am
 delete mode 100644 src/gallium/drivers/nvc0/Makefile
 create mode 100644 src/gallium/drivers/nvc0/Makefile.am
Signature · 7 lines
1.7.11.2


_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev