Mesa (gallium-master-merge): mesa: Build both software rasterizers for debug

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Tue Feb 10 17:27:44 UTC 2009


Module: Mesa
Branch: gallium-master-merge
Commit: 767b1acbb757186bde30973394f256ab7498a075
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=767b1acbb757186bde30973394f256ab7498a075

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Tue Feb 10 17:43:25 2009 +0100

mesa: Build both software rasterizers for debug

   But put the gallium one in lib/gallium

---

 configs/default                  |    2 +-
 src/gallium/winsys/xlib/Makefile |    8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/configs/default b/configs/default
index 3a49c5a..4c8698c 100644
--- a/configs/default
+++ b/configs/default
@@ -81,7 +81,7 @@ MOTIF_CFLAGS = -I/usr/include/Motif1.2
 LIB_DIR = lib
 SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw
 GLU_DIRS = sgi
-DRIVER_DIRS = 
+DRIVER_DIRS = x11 osmesa
 # Which subdirs under $(TOP)/progs/ to enter:
 PROGRAM_DIRS = demos redbook samples glsl xdemos
 
diff --git a/src/gallium/winsys/xlib/Makefile b/src/gallium/winsys/xlib/Makefile
index 9d70f3c..bb187cc 100644
--- a/src/gallium/winsys/xlib/Makefile
+++ b/src/gallium/winsys/xlib/Makefile
@@ -62,15 +62,17 @@ LIBS = \
 
 
 
-default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
+default: $(TOP)/$(LIB_DIR)/gallium $(TOP)/$(LIB_DIR)/gallium/$(GL_LIB_NAME)
 
+$(TOP)/$(LIB_DIR)/gallium:
+	@ mkdir -p $(TOP)/$(LIB_DIR)/gallium
 
 # Make the libGL.so library
-$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(XLIB_WINSYS_OBJECTS) $(LIBS) Makefile
+$(TOP)/$(LIB_DIR)/gallium/$(GL_LIB_NAME): $(XLIB_WINSYS_OBJECTS) $(LIBS) Makefile
 	$(TOP)/bin/mklib -o $(GL_LIB) \
 		-linker "$(CC)" \
 		-major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
-		-install $(TOP)/$(LIB_DIR) \
+		-install $(TOP)/$(LIB_DIR)/gallium \
 		$(MKLIB_OPTIONS) $(XLIB_WINSYS_OBJECTS) \
 		--start-group $(LIBS) --end-group $(GL_LIB_DEPS)
 




More information about the mesa-commit mailing list