summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-04-07 14:48:41 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-04-07 14:48:41 +0000
commit92012f068f72679d5b1a31cbef90885740c0e718 (patch)
treeda3587d15191068298f8504838e138e83d1a6a18
parent156f5766f42392152bae14ff52241ef4d514813d (diff)
Added gcc-sl target and mklib.gcc-sl shell script (Philip Brown).
-rw-r--r--Make-config24
-rw-r--r--Makefile.X118
-rw-r--r--src/mesa/Makefile.X118
-rw-r--r--src/mesa/main/Makefile.X118
4 files changed, 45 insertions, 3 deletions
diff --git a/Make-config b/Make-config
index 1aeca849ac..cf8fbcda4d 100644
--- a/Make-config
+++ b/Make-config
@@ -1,4 +1,4 @@
-# $Id: Make-config,v 1.67.2.1 2003/03/27 18:35:55 brianp Exp $
+# $Id: Make-config,v 1.67.2.2 2003/04/07 14:48:42 brianp Exp $
MESA_MAJOR=5
MESA_MINOR=0
@@ -256,6 +256,28 @@ gcc:
"MAKELIB = ../bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -lX11 -lm"
+gcc-sl:
+ $(MAKE) $(MFLAGS) -f Makefile.X11 targets \
+ "GL_LIB = libGL.so" \
+ "GLU_LIB = libGLU.so" \
+ "GLUT_LIB = libglut.so" \
+ "GLW_LIB = libGLw.so" \
+ "OSMESA_LIB = libOSMesa.so" \
+ "CC = gcc" \
+ "CPLUSPLUS = g++" \
+ "CFLAGS = -fPIC -O3" \
+ "CCFLAGS = $(CFLAGS)" \
+ "MAKELIB = ../bin/mklib.gcc-sl" \
+ "APP_LIB_DEPS = -lX11 -lm"
+
+#special hidden target, to make a shared lib for ONLY Mesa "core"
+gcc-mesa-sl:
+ $(MAKE) $(MFLAGS) -f Makefile.X11 libmesa \
+ "MESA_LIB = libMesa.so" \
+ "CC = gcc" \
+ "CFLAGS = -fPIC -O3" \
+ "MAKELIB = ../bin/mklib.gcc-sl" \
+
hpux9:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
diff --git a/Makefile.X11 b/Makefile.X11
index 125f98f65d..c86e44d9f5 100644
--- a/Makefile.X11
+++ b/Makefile.X11
@@ -1,4 +1,4 @@
-# $Id: Makefile.X11,v 1.69.2.4 2003/03/11 15:34:29 brianp Exp $
+# $Id: Makefile.X11,v 1.69.2.5 2003/04/07 14:48:41 brianp Exp $
# Mesa 3-D graphics library
# Version: 5.0.1
@@ -47,6 +47,7 @@ default:
@echo " make freebsd for FreeBSD systems with GCC"
@echo " make freebsd-386 for FreeBSD systems with GCC, w/ Intel assembly"
@echo " make gcc for a generic system with GCC"
+ @echo " make gcc-sl for a generic system with GCC for shared libs"
@echo " make hpux9 for HP systems with HPUX 9.x"
@echo " make hpux9-sl for HP systems with HPUX 9.x, make shared libs"
@echo " make hpux9-gcc for HP systems with HPUX 9.x using GCC"
@@ -139,7 +140,7 @@ default:
# XXX we may have to split up this group of targets into those that
# have a C++ compiler and those that don't for the SI-GLU library.
-aix aix-sl amix bsdos bsdos4 darwin dgux freebsd freebsd-386 gcc \
+aix aix-sl amix bsdos bsdos4 darwin dgux freebsd freebsd-386 gcc gcc-sl \
hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \
hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \
irix4 irix5 irix5-gcc irix5-dso \
@@ -173,6 +174,9 @@ sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware uwin vistra:
if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi
if [ -d widgets-sgi ] ; then cd widgets-sgi; $(MAKE) -f Makefile.X11 $@ ; fi
+gcc-mesa-sl:
+ if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi
+
irix6-o32 irix6-o32-dso irix6-n32 irix6-n32-dso irix6-gcc-n32-sl irix-debug:
-mkdir lib32
if [ -d src ] ; then touch src/depend ; fi
diff --git a/src/mesa/Makefile.X11 b/src/mesa/Makefile.X11
index 341cc9b74a..d86cdceda9 100644
--- a/src/mesa/Makefile.X11
+++ b/src/mesa/Makefile.X11
@@ -177,6 +177,7 @@ OBJECTS = $(ASM_SOURCES:.S=.o) \
$(DRIVER_SOURCES:.c=.o) \
$(ADDITIONAL_OBJ)
+CORE_OBJECTS = $(CORE_SOURCES:.c=.o)
OSMESA_SOURCES = OSmesa/osmesa.c
OSMESA_OBJECTS = OSmesa/osmesa.o
@@ -235,6 +236,13 @@ $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
+# Make an optional library with _just_ core objects
+libmesa: $(LIBDIR)/$(MESA_LIB)
+ if [ ${MESA_LIB} ] ; then $(MAKELIB) $(MESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(CORE_OBJECTS) ; fi
+ if [ ${MESA_LIB} ] ; then rm -f $(LIBDIR)/$(MESA_LIB)* ; fi
+ if [ ${MESA_LIB} ] ; then mv $(MESA_LIB)* $(LIBDIR) ; fi
+
+$(LIBDIR)/$(MESA_LIB): $(CORE_OBJECTS)
include ../Make-config
diff --git a/src/mesa/main/Makefile.X11 b/src/mesa/main/Makefile.X11
index 341cc9b74a..d86cdceda9 100644
--- a/src/mesa/main/Makefile.X11
+++ b/src/mesa/main/Makefile.X11
@@ -177,6 +177,7 @@ OBJECTS = $(ASM_SOURCES:.S=.o) \
$(DRIVER_SOURCES:.c=.o) \
$(ADDITIONAL_OBJ)
+CORE_OBJECTS = $(CORE_SOURCES:.c=.o)
OSMESA_SOURCES = OSmesa/osmesa.c
OSMESA_OBJECTS = OSmesa/osmesa.o
@@ -235,6 +236,13 @@ $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
+# Make an optional library with _just_ core objects
+libmesa: $(LIBDIR)/$(MESA_LIB)
+ if [ ${MESA_LIB} ] ; then $(MAKELIB) $(MESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(CORE_OBJECTS) ; fi
+ if [ ${MESA_LIB} ] ; then rm -f $(LIBDIR)/$(MESA_LIB)* ; fi
+ if [ ${MESA_LIB} ] ; then mv $(MESA_LIB)* $(LIBDIR) ; fi
+
+$(LIBDIR)/$(MESA_LIB): $(CORE_OBJECTS)
include ../Make-config