summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Make-config14
-rw-r--r--Makefile.X118
2 files changed, 20 insertions, 2 deletions
diff --git a/Make-config b/Make-config
index 8da27c591aa..fffe356defa 100644
--- a/Make-config
+++ b/Make-config
@@ -152,6 +152,20 @@ freebsd-386:
"APP_LIB_DEPS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm" \
"ASM_SOURCES = $(X86_SOURCES)"
+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 \
diff --git a/Makefile.X11 b/Makefile.X11
index 3457c332523..95ea5271e17 100644
--- a/Makefile.X11
+++ b/Makefile.X11
@@ -1,4 +1,4 @@
-# $Id: Makefile.X11,v 1.78 2003/06/10 14:46:24 brianp Exp $
+# $Id: Makefile.X11,v 1.79 2003/08/22 18:06:59 brianp Exp $
# Mesa 3-D graphics library
# Version: 5.1
@@ -41,6 +41,7 @@ default:
@echo " make darwin for Darwin - Mac OS X"
@echo " make freebsd for FreeBSD systems with GCC"
@echo " make freebsd-386 for FreeBSD systems with GCC, w/ Intel assembly"
+ @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"
@@ -99,7 +100,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 darwin freebsd freebsd-386 \
+aix aix-sl darwin freebsd freebsd-386 gcc-sl \
hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \
hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \
linux linux-debug \
@@ -127,6 +128,9 @@ ultrix-gcc unixware:
if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
if [ -d src/glw ] ; then cd src/glw ; $(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:
-mkdir lib32
if [ -d src/mesa ] ; then touch src/mesa/depend ; fi