diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-01 16:25:02 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-01 16:25:02 +0000 |
commit | 3ba8a49c810d5976c705160e8c96ae682ab85250 (patch) | |
tree | bbd9a43eef9f973284e88a7fb9c0c8fa2c8cc9e7 | |
parent | 8c20c7ba0c786c816d9a5c826da318beb2d2c0b7 (diff) |
Remove a bunch of really old/obsolete configs.
Use the new mklib script.
-rw-r--r-- | Makefile.X11 | 166 | ||||
-rw-r--r-- | progs/demos/Makefile.X11 | 33 | ||||
-rw-r--r-- | progs/redbook/Makefile.X11 | 26 | ||||
-rw-r--r-- | progs/samples/Makefile.X11 | 26 | ||||
-rw-r--r-- | progs/xdemos/Makefile.X11 | 57 | ||||
-rw-r--r-- | src/glu/mesa/Makefile.X11 | 23 | ||||
-rw-r--r-- | src/glu/sgi/Makefile.X11 | 25 | ||||
-rw-r--r-- | src/mesa/main/Makefile.X11 | 31 |
8 files changed, 113 insertions, 274 deletions
diff --git a/Makefile.X11 b/Makefile.X11 index 94ef10a7a7..4a525674f4 100644 --- a/Makefile.X11 +++ b/Makefile.X11 @@ -1,4 +1,4 @@ -# $Id: Makefile.X11,v 1.76 2003/04/07 14:45:52 brianp Exp $ +# $Id: Makefile.X11,v 1.77 2003/06/01 16:25:02 brianp Exp $ # Mesa 3-D graphics library # Version: 5.1 @@ -35,19 +35,12 @@ default: @echo "Type one of the following:" @echo " make aix for IBM RS/6000 with AIX" @echo " make aix-sl for IBM RS/6000, make shared libs" - @echo " make amiwin for Amiga with SAS/C and AmiWin" - @echo " make amix for Amiga 3000 UX SVR4 v2.1 systems" @echo " make beos-r4 for BeOS R4" - @echo " make bsdos for BSD/OS from BSDI using GCC" - @echo " make bsdos4 for BSD/OS 4.x, dynamic libraries" @echo " make cygnus for Win95/NT using Cygnus-Win32" @echo " make cygnus-linux for Win95/NT using Cygnus-Win32 under Linux" @echo " make darwin for Darwin - Mac OS X" - @echo " make dgux for Data General" @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" @@ -56,10 +49,6 @@ default: @echo " make hpux10-sl for HP systems with HPUX 10.x and 11.x, shared libs" @echo " make hpux10-gcc for HP systems with HPUX 10.x w/ GCC" @echo " make hpux10-gcc-sl for HP systems with HPUX 10.x w/ GCC, shared libs" - @echo " make irix4 for SGI systems with IRIX 4.x" - @echo " make irix5 for SGI systems with IRIX 5.x" - @echo " make irix5-gcc for SGI systems with IRIX 5.x using GCC" - @echo " make irix5-dso for SGI systems with IRIX 5.x, make DSOs" @echo " make irix6-o32 for SGI systems with IRIX 6.x, make o32-bit libs" @echo " make irix6-o32-dso for SGI systems with IRIX 6.x, make o32-bit DSOs" @echo " make irix6-n32 for SGI systems with IRIX 6.x, make n32-bit libs" @@ -68,43 +57,29 @@ default: @echo " make irix6-64 for SGI systems with IRIX 6.x, make 64-bit libs" @echo " make irix6-64-dso for SGI systems with IRIX 6.x, make 64-bit DSOs" - @echo " make linux for Linux systems, make shared .so libs" - @echo " make linux-static for Linux systems, make static .a libs" - @echo " make linux-x86 for Linux on Intel, make shared .so libs" - @echo " make linux-x86-static for Linux on Intel, make static .a libs" - @echo " make linux-ggi for Linux systems with libggi" - @echo " make linux-386-ggi for Linux systems with libggi w/ Intel assembly" - @echo " make linux-glide for Linux w/ 3Dfx Glide driver" - @echo " make linux-386-glide for Linux w/ 3Dfx Glide driver, Intel assembly" - @echo " make linux-386-opt-glide for Linux with 3Dfx Voodoo1 for GLQuake" - @echo " make linux-x86-glide for Linux w/ all x86 asm for Glide" - @echo " make linux-alpha for Linux on Alpha systems" - @echo " make linux-alpha-static for Linux on Alpha systems, static libs" - @echo " make linux-ppc for Linux on PowerPC systems" - @echo " make linux-ppc-static for Linux on PowerPC systems, static libs" - @echo " make linux-sparc for Linux on Sparc systems" - @echo " make linux-sparc5-elf for Sparc5 systems, make ELF shared libs" - @echo " make linux-sparc-ultra for UltraSparc systems, make ELF shared libs" + @echo " make linux for Linux" + @echo " make linux-x86 for Linux with x86 optimizations" + @echo " make linux-ggi for Linux with libggi driver" + @echo " make linux-x86-ggi for Linux with libggi driver and x86 optimizations" + @echo " make linux-glide for Linux with 3Dfx Glide driver" + @echo " make linux-x86-glide for Linux with 3Dfx Glide driver and x86 opts" + @echo " make linux-alpha for Linux with Alpha optimizations" + @echo " make linux-alpha-static for Linux with Alpha opts, make static libs" + @echo " make linux-ppc for Linux with PowerPC opts" + @echo " make linux-ppc-static for Linux with PowerPC opts, make static libs" + @echo " make linux-sparc for Linux with Sparc optimzations" + @echo " make linux-sparc5 for Linux with Sparc5 optimizations" + @echo " make linux-sparc-ultra for Linux with UltraSparc optimizations" @echo " make linux-osmesa16 for 16-bit/channel OSMesa" @echo " make linux-osmesa32 for 32-bit/channel OSMesa" @echo " make linux-icc for Linux with the Intel C/C++ compiler" @echo " make lynxos for LynxOS systems with GCC" - @echo " make macintosh for Macintosh" - @echo " make machten-2.2 for Macs w/ MachTen 2.2 (68k w/ FPU)" - @echo " make machten-4.0 for Macs w/ MachTen 4.0.1 or newer with GNU make" @echo " make mklinux for Linux on Power Macintosh" @echo " make netbsd for NetBSD 1.0 systems with GCC" - @echo " make next for NeXT systems with NEXTSTEP 3.3" @echo " make openbsd for OpenBSD systems" @echo " make openstep for OpenStep/MacOSX Server systems" - @echo " make os2-x11 for OS/2 with XFree86" @echo " make osf1 for DEC Alpha systems with OSF/1" - @echo " make osf1-sl for DEC Alpha systems with OSF/1, make shared libs" - @echo " make pgi-cygnus for Cygnus with Portland Group, Inc. compiler" - @echo " make pgi-mingw32 for mingW32 with Portland Group, Inc. compiler" @echo " make qnx for QNX V4 systems with Watcom compiler" - @echo " make sco for SCO Unix systems with ODT" - @echo " make sco5 for SCO 5.0.5 OpenServer Unix" @echo " make solaris-x86 for PCs with Solaris" @echo " make solaris-x86-gcc for PCs with Solaris using GCC" @echo " make sunos4 for Suns with SunOS 4.x" @@ -112,25 +87,10 @@ default: @echo " make sunos4-gcc for Suns with SunOS 4.x and GCC" @echo " make sunos4-gcc-sl for Suns with SunOS 4.x, GCC, make shared libs" @echo " make sunos5 for Suns with SunOS 5.x" - @echo " make sunos5-sl for Suns with SunOS 5.x, make shared libs" - @echo " make sunos5-ultra for Sun UltraSPARCs with SunOS 5.x" - @echo " make sunos5-ultra-sl for Sun UltraSPARCs with SunOS 5.x, make shared libs" - @echo " make sunos5-thread for Suns with SunOS 5.x, using Solaris threads" - @echo " make sunos5-pthread for Suns with SunOS 5.[56] using POSIX threads" - @echo " make sunos5-gcc-thread for Suns with SunOS 5.x and GCC, using Solaris threads" - @echo " make sunos5-gcc-pthread for Suns with SunOS 5.[56] and GCC, using POSIX threads" @echo " make sunos5-gcc for Suns with SunOS 5.x and GCC" - @echo " make sunos5-gcc-sl for Suns with SunOS 5.x, GCC, make shared libs" - @echo " make sunos5-x11r6-gcc-sl for Suns with X11R6, GCC, make shared libs" - @echo " make sunos5-gcc-thread for Suns with SunOS 5.x and GCC, using Solaris threads" - @echo " make sunos5-gcc-pthread for Suns with SunOS 5.[56] and GCC, using POSIX threads" - @echo " make sunSolaris-CC for Solaris using C++ compiler" @echo " make ultrix-gcc for DEC systems with Ultrix and GCC" - @echo " make unicos for Cray C90 (and other?) systems" @echo " make unixware for PCs running UnixWare" @echo " make unixware-shared for PCs running UnixWare, shared libs" - @echo " make uwin for Windows NT with AT&T/Wipro UWIN" - @echo " make vistra for Stardent Vistra systems" @echo " make clean remove .o files" @echo " make realclean remove .o, library and executable files" @@ -139,29 +99,23 @@ 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 gcc-sl \ +aix aix-sl darwin freebsd freebsd-386 \ hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \ hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \ -irix4 irix5 irix5-gcc irix5-dso \ -linux linux-static linux-debug linux-static-debug linux-prof \ -linux-x86 linux-icc linux-x86-static linux-x86-debug \ -linux-glide linux-386-glide linux-386-opt-glide \ -linux-x86-glide linux-glide-debug linux-glide-prof \ +linux linux-debug \ +linux-x86 linux-x86-sse linux-icc linux-x86-static linux-x86-debug \ +linux-glide linux-x86-glide linux-glide-debug \ linux-alpha-static linux-alpha \ linux-ppc-static linux-ppc \ -linux-sparc \ -linux-sparc5-elf \ -linux-sparc-ultra \ -lynxos machten-2.2 machten-4.0 \ -mklinux netbsd osf1 osf1-sl openbsd qnx sco sco5 \ -solaris-x86 solaris-x86-gcc sunSolaris-CC \ +linux-sparc linux-sparc5 linux-sparc-ultra \ +mklinux netbsd osf1 openbsd qnx \ +solaris-x86 solaris-x86-gcc \ sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \ -sunos5 sunos5-sl sunos5-ultra sunos5-ultra-sl sunos5-gcc sunos5-gcc-sl \ -sunos5-thread sunos5-pthread sunos5-gcc-thread sunos5-gcc-pthread \ -sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware uwin vistra: +sunos5 sunos5-gcc \ +ultrix-gcc unixware: -mkdir lib if [ -d src ] ; then touch src/depend ; fi - if [ -d si-glu ] ; then touch si-glu/depend ; fi + if [ -d si-glu ] ; then touch si-glu/depend ; fi if [ -d src-glut ] ; then touch src-glut/depend ; fi if [ -d widgets-sgi ] ; then touch widgets-sgi/depend ; fi if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi @@ -173,17 +127,14 @@ 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: +irix6-o32 irix6-o32-dso irix6-n32 irix6-n32-dso irix6-gcc-n32-sl: -mkdir lib32 if [ -d src ] ; then touch src/depend ; fi - if [ -d src-glu ] ; then touch src-glu/depend ; fi + if [ -d si-glu ] ; then touch si-glu/depend ; fi if [ -d src-glut ] ; then touch src-glut/depend ; fi if [ -d widgets-sgi ] ; then touch widgets-sgi/depend ; fi if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi - if [ -d src-glu ] ; then cd src-glu ; $(MAKE) -f Makefile.X11 $@ ; fi + if [ -d si-glu ] ; then cd si-glu ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d src-glut ] ; then cd src-glut ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi @@ -191,16 +142,14 @@ irix6-o32 irix6-o32-dso irix6-n32 irix6-n32-dso irix6-gcc-n32-sl irix-debug: if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d widgets-sgi ] ; then cd widgets-sgi; $(MAKE) -f Makefile.X11 $@ ; fi -CORE_OBJECTS = $(CORE_SOURCES:.c=.o) - irix6-64 irix6-64-dso: -mkdir lib64 - touch src/depend - touch src-glu/depend + if [ -d src ] ; then touch src/depend ; fi + if [ -d si-glu ] ; then touch si-glu/depend ; fi if [ -d src-glut ] ; then touch src-glut/depend ; fi if [ -d widgets-sgi ] ; then touch widgets-sgi/depend ; fi if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi - if [ -d src-glu ] ; then cd src-glu ; $(MAKE) -f Makefile.X11 $@ ; fi + if [ -d si-glu ] ; then cd si-glu ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d src-glut ] ; then cd src-glut ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi @@ -208,18 +157,6 @@ irix6-64 irix6-64-dso: if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d widgets-sgi ] ; then cd widgets-sgi; $(MAKE) -f Makefile.X11 $@ ; fi -CORE_OBJECTS = $(CORE_SOURCES:.c=.o) - -amiwin: - bin/mklib.amiwin - -# 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) beos-r4: -mkdir lib @@ -236,7 +173,6 @@ beos-r4: if [ -d samples ] ; then cd samples ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi -pgi-cygnus pgi-mingw32 \ cygnus cygnus-linux: -mkdir lib touch src/depend @@ -249,33 +185,12 @@ cygnus cygnus-linux: if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi if [ -d widgets-sgi ] ; then cd widgets-sgi; $(MAKE) -f Makefile.X11 $@ ; fi -macintosh: - @echo "See the README file for Macintosh intallation information" - -next: - -mkdir lib - cd src ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@ - cd src-glu ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@ - openstep: -mkdir lib cd src ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@ cd src-glu ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@ -os2-x11: - if not EXIST .\lib md lib - touch src/depend - touch src-glu/depend - if exist src-glut touch src-glut/depend - cd src & make -f Makefile.X11 $@ - cd src-glu & make -f Makefile.X11 $@ - if exist src-glut cd src-glut & make -f Makefile.X11 $@ - if exist demos cd demos & make -f Makefile.X11 $@ - if exist xdemos cd xdemos & make -f Makefile.X11 $@ - if exist samples cd samples & make -f Makefile.X11 $@ - if exist book cd book & make -f Makefile.X11 $@ - -linux-ggi linux-386-ggi: +linux-ggi linux-x86-ggi: -mkdir lib touch src/depend touch si-glu/depend @@ -299,7 +214,7 @@ linux-ggi linux-386-ggi: DESTDIR=/usr/local GGI_DEST=lib/ggi/mesa -linux-ggi-install linux-386-ggi-install: +linux-ggi-install linux-x86-ggi-install: install -d $(DESTDIR)/$(GGI_DEST)/default $(DESTDIR)/$(GGI_DEST)/display $(DESTDIR)/etc/ggi install -m 0755 src/GGI/default/*.so $(DESTDIR)/$(GGI_DEST)/default install -m 0755 src/GGI/display/*.so $(DESTDIR)/$(GGI_DEST)/display @@ -349,19 +264,15 @@ cvsclean: realclean -rm -f install-sh libtool ltmain.sh Makefile.in -rm -f missing mkinstalldirs stamp-h stamp-h.in + + + DIRECTORY = Mesa-5.1 LIB_NAME = MesaLib-5.1 DEMO_NAME = MesaDemos-5.1 GLU_NAME = MesaGLU-5.1 GLUT_NAME = GLUT-3.7 -# 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) LIB_FILES = \ $(DIRECTORY)/Makefile* \ @@ -380,14 +291,9 @@ LIB_FILES = \ $(DIRECTORY)/missing \ $(DIRECTORY)/mkinstalldirs \ $(DIRECTORY)/stamp-h.in \ - $(DIRECTORY)/docs/index.html \ - $(DIRECTORY)/docs/CONFORM \ + $(DIRECTORY)/docs/*.html \ $(DIRECTORY)/docs/COPYING \ - $(DIRECTORY)/docs/COPYRIGHT \ - $(DIRECTORY)/docs/DEVINFO \ - $(DIRECTORY)/docs/INSTALL \ $(DIRECTORY)/docs/INSTALL.GNU \ - $(DIRECTORY)/docs/README \ $(DIRECTORY)/docs/README.* \ $(DIRECTORY)/docs/RELNOTES* \ $(DIRECTORY)/docs/VERSIONS \ diff --git a/progs/demos/Makefile.X11 b/progs/demos/Makefile.X11 index f6e6aa91d9..7c6c8500be 100644 --- a/progs/demos/Makefile.X11 +++ b/progs/demos/Makefile.X11 @@ -1,18 +1,13 @@ -# $Id: Makefile.X11,v 1.23 2003/04/21 14:04:27 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 5.1 -# Copyright (C) 1995-2003 Brian Paul - -# Makefile for GLUT-based demo programs for Unix/X11 +# Makefile for GLUT-based demo programs ##### MACROS ##### -INCDIR = ../include -LIBDIR = ../lib +TOP = .. +INCDIR = $(TOP)/include +LIBDIR = $(TOP)/lib -GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS) +LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) @@ -71,7 +66,7 @@ PROGS = \ # make executable from .c file: .c: $(LIB_DEP) - $(CC) -I$(INCDIR) -I../util $(CFLAGS) $< $(GL_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ # special case: need the -lOSMesa library: osdemo: osdemo.c @@ -95,20 +90,10 @@ targets: readtex.c readtex.h $(PROGS) readtex.c: - cp ../util/readtex.c . + cp $(TOP)/util/readtex.c . readtex.h: - cp ../util/readtex.h . - - -# execute all programs -exec: $(PROGS) - @for prog in $(PROGS) ; \ - do \ - echo -n "Running $$prog ..." ; \ - $$prog ; \ - echo ; \ - done + cp $(TOP)/util/readtex.h . -include ../Make-config +include $(TOP)/Make-config diff --git a/progs/redbook/Makefile.X11 b/progs/redbook/Makefile.X11 index 4446132d93..0a3a87bf54 100644 --- a/progs/redbook/Makefile.X11 +++ b/progs/redbook/Makefile.X11 @@ -1,18 +1,13 @@ -# $Id: Makefile.X11,v 1.3 2000/02/16 01:09:06 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 3.1 -# Copyright (C) 1995-1998 Brian Paul - # Makefile for programs from the OpenGL Programming Guide ##### MACROS ##### -INCDIR = ../include -LIBDIR = ../lib +TOP = .. +INCDIR = $(TOP)/include +LIBDIR = $(TOP)/lib -GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS) +LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) @@ -33,7 +28,7 @@ PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \ .SUFFIXES: .c .c: $(LIB_DEP) - $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ @@ -51,14 +46,5 @@ realclean: targets: $(PROGS) -# execute all programs -exec: $(PROGS) - @for prog in $(PROGS) ; \ - do \ - echo -n "Running $$prog ..." ; \ - $$prog ; \ - echo ; \ - done - -include ../Make-config +include $(TOP)/Make-config diff --git a/progs/samples/Makefile.X11 b/progs/samples/Makefile.X11 index dd0c5e53eb..b18a19584a 100644 --- a/progs/samples/Makefile.X11 +++ b/progs/samples/Makefile.X11 @@ -1,18 +1,13 @@ -# $Id: Makefile.X11,v 1.3 2000/02/16 01:09:06 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 3.3 -# Copyright (C) 1995-1999 Brian Paul - # Makefile for assorted SGI OpenGL demos ##### MACROS ##### -INCDIR = ../include -LIBDIR = ../lib +TOP = .. +INCDIR = $(TOP)/include +LIBDIR = $(TOP)/lib -GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS) +LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) @@ -27,7 +22,7 @@ PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \ .SUFFIXES: .c .c: $(LIB_DEP) - $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ @@ -45,14 +40,5 @@ realclean: targets: $(PROGS) -# execute all programs -exec: $(PROGS) - @for prog in $(PROGS) ; \ - do \ - echo -n "Running $$prog ..." ; \ - ./$$prog; \ - echo ; \ - done - -include ../Make-config +include $(TOP)/Make-config diff --git a/progs/xdemos/Makefile.X11 b/progs/xdemos/Makefile.X11 index 4f5a1e13ca..27b4342309 100644 --- a/progs/xdemos/Makefile.X11 +++ b/progs/xdemos/Makefile.X11 @@ -1,18 +1,13 @@ -# $Id: Makefile.X11,v 1.13 2002/10/05 18:30:46 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 4.1 -# Copyright (C) 1995-2002 Brian Paul - # Makefile for non-GLUT (X11, SVGA, etc) demo programs ##### MACROS ##### -INCDIR = ../include -LIBDIR = ../lib +TOP = .. +INCDIR = $(TOP)/include +LIBDIR = $(TOP)/lib -GL_LIBS = -L$(LIBDIR) -lGLU -lGL $(APP_LIB_DEPS) +LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) @@ -38,7 +33,24 @@ PROGS = glthreads \ .SUFFIXES: .c .c: $(LIB_DEP) - $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ + + +# special cases +pbinfo: pbinfo.o pbutil.o + $(CC) pbinfo.o pbutil.o $(LIBS) -o $@ + +pbdemo: pbdemo.o pbutil.o + $(CC) pbdemo.o pbutil.o $(LIBS) -o $@ + +pbinfo.o: pbinfo.c pbutil.h + $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c + +pbdemo.o: pbdemo.c pbutil.h + $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c + +pbutil.o: pbutil.c pbutil.h + $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c @@ -56,30 +68,7 @@ realclean: targets: $(PROGS) -# execute all programs -exec: $(PROGS) - @for prog in $(PROGS) ; \ - do \ - echo -n "Running $$prog ..." ; \ - $$prog ; \ - echo ; \ - done - - -include ../Make-config -pbinfo: pbinfo.o pbutil.o - $(CC) pbinfo.o pbutil.o $(GL_LIBS) -o $@ - -pbdemo: pbdemo.o pbutil.o - $(CC) pbdemo.o pbutil.o $(GL_LIBS) -o $@ +include $(TOP)/Make-config -pbinfo.o: pbinfo.c pbutil.h - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< - -pbdemo.o: pbdemo.c pbutil.h - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< - -pbutil.o: pbutil.c pbutil.h - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< diff --git a/src/glu/mesa/Makefile.X11 b/src/glu/mesa/Makefile.X11 index e8a4e18c42..c16464fe9f 100644 --- a/src/glu/mesa/Makefile.X11 +++ b/src/glu/mesa/Makefile.X11 @@ -1,11 +1,4 @@ -# $Id: Makefile.X11,v 1.8 2000/07/11 14:11:04 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 3.3 -# Copyright (C) 1995-2000 Brian Paul - -# Makefile for GLU library - +# Makefile for old Mesa GLU library ##### MACROS ##### @@ -15,8 +8,9 @@ GLU_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY) VPATH = RCS -INCDIR = ../include -LIBDIR = ../lib +TOP = .. +INCDIR = $(TOP)/include +LIBDIR = $(TOP)/lib SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \ polytest.c project.c quadric.c tess.c tesselat.c @@ -44,10 +38,11 @@ targets: $(LIBDIR)/$(GLU_LIB) # Make the library: $(LIBDIR)/$(GLU_LIB): $(OBJECTS) - $(MAKELIB) $(GLU_LIB) $(GLU_MAJOR) $(GLU_MINOR) $(GLU_TINY) $(OBJECTS) - mv $(GLU_LIB)* $(LIBDIR) + $(TOP)/bin/mklib -o GLU -major $(GLU_MAJOR) -minor $(GLU_MINOR) \ + -patch $(GLU_TINY) $(GLU_LIB_DEPS) -install $(LIBDIR) \ + $(OBJECTS) -include ../Make-config +include $(TOP)/Make-config include depend @@ -58,4 +53,4 @@ include depend # by any source file. # dep: $(SOURCES) - makedepend -fdepend -Y -I../include $(SOURCES) + makedepend -fdepend -Y -I$(TOP)/include $(SOURCES) diff --git a/src/glu/sgi/Makefile.X11 b/src/glu/sgi/Makefile.X11 index 5481b508c7..2925d6eaa2 100644 --- a/src/glu/sgi/Makefile.X11 +++ b/src/glu/sgi/Makefile.X11 @@ -1,9 +1,3 @@ -# $Id: Makefile.X11,v 1.7 2002/01/08 15:58:32 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 4.1 -# Copyright (C) 1995-2002 Brian Paul - # Makefile for SGI SI GLU library .SUFFIXES : .cc @@ -16,8 +10,9 @@ GLU_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY) VPATH = RCS -INCDIRS = -I../include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess -LIBDIR = ../lib +TOP = .. +INCDIRS = -I$(TOP)/include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess +LIBDIR = $(TOP)/lib C_SOURCES = \ libutil/error.c \ @@ -125,7 +120,7 @@ OBJECTS = $(C_OBJECTS) $(CC_OBJECTS) $(CC) -c $(INCDIRS) $(CFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ .cc.o: - $(CPLUSPLUS) -c $(INCDIRS) $(CCFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ + $(CXX) -c $(INCDIRS) $(CXXFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ ##### TARGETS ##### @@ -143,11 +138,13 @@ targets: $(LIBDIR)/$(GLU_LIB) # Make the library: $(LIBDIR)/$(GLU_LIB): $(OBJECTS) - $(MAKELIB) $(GLU_LIB) $(GLU_MAJOR) $(GLU_MINOR) $(GLU_TINY) $(OBJECTS) - rm -f $(LIBDIR)/$(GLU_LIB)* - mv $(GLU_LIB)* $(LIBDIR) + $(TOP)/bin/mklib -o GLU -major $(GLU_MAJOR) -minor $(GLU_MINOR) \ + -patch $(GLU_TINY) $(GLU_LIB_DEPS) -cplusplus \ + -install $(LIBDIR) $(OBJECTS) + + -include ../Make-config +include $(TOP)/Make-config include depend @@ -158,4 +155,4 @@ include depend # by any source file. # dep: $(SOURCES) - makedepend -fdepend -Y -I../include $(SOURCES) + makedepend -fdepend -Y -I$(TOP)/include $(SOURCES) diff --git a/src/mesa/main/Makefile.X11 b/src/mesa/main/Makefile.X11 index 6300b601a1..499bbb5119 100644 --- a/src/mesa/main/Makefile.X11 +++ b/src/mesa/main/Makefile.X11 @@ -1,10 +1,4 @@ -# $Id: Makefile.X11,v 1.79 2003/04/17 02:33:11 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 5.1 -# Copyright (C) 1995-2003 Brian Paul - -# Makefile for core library +# Makefile for GL library ##### MACROS ##### @@ -15,8 +9,9 @@ GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY) VPATH = RCS -INCDIR = ../include -LIBDIR = ../lib +TOP = .. +INCDIR = $(TOP)/include +LIBDIR = $(TOP)/lib @@ -45,6 +40,7 @@ CORE_SOURCES = \ eval.c \ extensions.c \ feedback.c \ + fetchstate.c \ fog.c \ get.c \ glapi.c \ @@ -228,16 +224,15 @@ targets: $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(OSMESA_LIB) # Make the GL library $(LIBDIR)/$(GL_LIB): $(OBJECTS) - $(MAKELIB) $(GL_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS) - rm -f $(LIBDIR)/$(GL_LIB)* - mv $(GL_LIB)* $(LIBDIR) + $(TOP)/bin/mklib -o GL -major $(GL_MAJOR) -minor $(GL_MINOR) \ + -patch $(GL_TINY) -install $(LIBDIR) $(GL_LIB_DEPS) $(OBJECTS) # Make the OSMesa library $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS) - if [ ${OSMESA_LIB} ] ; then $(MAKELIB) $(OSMESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(OSMESA_OBJECTS) ; fi - if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi - if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi + if [ ${OSMESA_LIB} ] ; then $(TOP)/bin/mklib -o OSMesa \ + -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(GL_TINY) \ + -L$(LIBDIR) -lGL -install $(LIBDIR) $(OSMESA_OBJECTS) ; fi # Make an optional library with _just_ core objects libmesa: $(LIBDIR)/$(MESA_LIB) @@ -247,7 +242,7 @@ libmesa: $(LIBDIR)/$(MESA_LIB) $(LIBDIR)/$(MESA_LIB): $(CORE_OBJECTS) -include ../Make-config +include $(TOP)/Make-config include depend @@ -258,7 +253,7 @@ include depend # by any source file. # dep: $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES) - makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES) + makedepend -fdepend -Y -I$(TOP)/include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES) tags: - etags `find . -name \*.[ch]` `find ../include` + etags `find . -name \*.[ch]` `find $(TOP)/include` |