Commit b953bebc authored by Brian Paul's avatar Brian Paul
Browse files

updated old-style makefiles for new tree

parent 9ac51f57
# $Id: Make-config,v 1.69 2003/04/07 14:45:53 brianp Exp $
# Mesa Make-config file
# This file describes the compiler options, etc needed to build Mesa
# on various systems using conventional Makefiles (not autoconf/automake).
#
# To add a new system configuration use an existing config as an example,
# then update the top-level Makefile.X11 file. You may also have to add
# new platform support to the bin/mklib script.
MESA_MAJOR=5
MESA_MINOR=1
MESA_TINY=0
VERSION=$(MESA_MAJOR).$(MESA_MINOR)
# Mesa 3-D graphics library
#
# Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# The following variables are passed to each Makefile:
# The following variables should be defined for each configuration:
#
# GL_LIB the name of the Mesa "GL" library file (usually libGL.so)
# GLU_LIB the name of the Mesa "GLU" library file (usually libGLU.so)
# GLUT_LIB the name of the GLUT library file (usually libglut.so)
# GLW_LIB the name of the GLw widget library file (usually libGLw.so)
# CC the C compiler (usually cc or gcc)
# CFLAGS flags to C compiler (usually -O)
# MAKELIB the script or command to make a library file
# CXX the C++ compiler (usuall c++ or g++ or CC)
# CFLAGS options for C compiler (like -O)
# CXXFLAGS options for the C++ compiler (like -O)
# GL_LIB_DEPS list of libraries which the GL library depends on
# GLU_LIB_DEPS list of libraries which the GLU library depends on
# GLUT_LIB_DEPS list of libraries which the GLUT library depends on
# GLW_LIB_DEPS list of libraries which the GLw (Xt/OpenGL) library depends on
# APP_LIB_DEPS list of libraries which demo programs depend upon
# ASM_SOURCES optional list of assembly language files to assemble
#
#
# Optionally, you can add definitions for the INCDIR and LIBDIR variables
# which specify where to find the Mesa include files and where to put the
# Mesa libraries. The defaults are ../include and ../lib. This use of
# overriding makefile macros on the command line should work with most
# variants of make.
#
# If your system supports the X Shared Memory extension add -DUSE_XSHM to the
# CFLAGS line and add -lXext to the GL_LIB_DEPS line.
#
# Some compilers complain about const parameters. Adding -DNO_CONST to the
# CFLAGS line should silence suth warnings.
#
#
# To add a new system configuration just follow the examples below and update
# the top-level Makefile.X11 file.
# MAKELIB the script or command to make a library file
# XXX MAKELIB is obsolete; edit bin/mklib to support new systems
aix:
......@@ -70,7 +43,7 @@ aix:
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CFLAGS = -O -DAIXV3" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"MAKELIB = $(TOP)/bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
aix-sl:
......@@ -82,28 +55,9 @@ aix-sl:
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CFLAGS = -O -DAIXV3" \
"MAKELIB = ../bin/mklib.aix" \
"MAKELIB = $(TOP)/bin/mklib.aix" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
# Make-config additions for the Amiga 3000 UX
# Carlyn Voss Iuzzolino 5/8/95:
# Modified gcc part as follows:
# Needed to take out -pedantic because that makes gcc complain about
# ANSI-CC not allowing #ident in Amiga's /usr/include/*.h files.
# Took out -O2 (unrecognized option for gcc on the Amiga).
# Needs /usr/lib/libsocket.a file.
amix:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CFLAGS =" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -lX11 -lsocket -lnsl -lm"
beos-r4:
$(MAKE) -f Makefile.BeOS-R4 targets \
"GL_LIB = libGL.so" \
......@@ -113,33 +67,8 @@ beos-r4:
"OSMESA_LIB = libOSMesa.so" \
"CC = g++" \
"CFLAGS = -O -DNO_CONST" \
"MAKELIB = ../bin/mklib.beos-r4" \
"APP_LIB_DEPS = "
bsdos:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CFLAGS = -I/usr/X11/include -O2" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -L/usr/X11/lib -lX11 -lipc -lm"
bsdos4:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CFLAGS = -I/usr/X11/include -O2 -fPIC" \
"MAKELIB = ../bin/mklib.bsdos4" \
"APP_LIB_DEPS = -L/usr/X11/lib -lX11 -lipc -lm"
cygnus:
$(MAKE) -f Makefile.cygnus $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
......@@ -148,7 +77,7 @@ cygnus:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"DLLTOOL = dlltool" \
"WING_DIR= /wing" \
"LD = ld" \
......@@ -156,9 +85,9 @@ cygnus:
-O2 -funroll-loops \
-fexpensive-optimizations -fomit-frame-pointer -ffast-math \
-malign-loops=2 -malign-functions=2" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"WLIBS = ../lib/wing32.a -lkernel32 -luser32 -lgdi32"
"CXXFLAGS = $(CFLAGS)" \
"MAKELIB = $(TOP)/bin/mklib.ar-ruv" \
"WLIBS = $(TOP)/lib/wing32.a -lkernel32 -luser32 -lgdi32"
cygnus-linux:
$(MAKE) -f Makefile.cygnus $(MFLAGS) -f Makefile.X11 targets \
......@@ -175,8 +104,8 @@ cygnus-linux:
-O2 -funroll-loops \
-fexpensive-optimizations -fomit-frame-pointer -ffast-math \
-malign-loops=2 -malign-functions=2" \
"MAKELIB = ../bin/mklib.cygnus-linux" \
"WLIBS = ../lib/wing32.a -lkernel32 -luser32 -lgdi32"
"MAKELIB = $(TOP)/bin/mklib.cygnus-linux" \
"WLIBS = $(TOP)/lib/wing32.a -lkernel32 -luser32 -lgdi32"
darwin:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -186,31 +115,16 @@ darwin:
"GLW_LIB = libGLw.dylib" \
"OSMESA_LIB = libOSMesa.dylib" \
"CC = cc" \
"CPLUSPLUS = cc" \
"CXX = cc" \
"CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math \
-funroll-loops -fexpensive-optimizations -no-cpp-precomp \
-dynamic -Ddarwin" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.darwin" \
"CXXFLAGS = $(CFLAGS)" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
"GLUT_LIB_DEPS = -L../lib -lGLU -lGL \
"GLU_LIB_DEPS = -L$(TOP)/lib -lGL -lm" \
"GLUT_LIB_DEPS = -L$(TOP)/lib -lGLU -lGL \
-L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm"
dgux:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CFLAGS = -O" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -lX11 -lm"
freebsd:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
......@@ -219,10 +133,9 @@ freebsd:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.freebsd" \
"CXXFLAGS = $(CFLAGS)" \
"APP_LIB_DEPS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
freebsd-386:
......@@ -233,50 +146,21 @@ freebsd-386:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -O3 -ffast-math -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 -DUSE_X86_ASM -DFREEBSD" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.freebsd" \
"CXXFLAGS = $(CFLAGS)" \
"APP_LIB_DEPS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm" \
"ASM_SOURCES = X86/common_x86_asm.S X86/glapi_x86.S \
X86/x86_xform2.S X86/x86_xform3.S X86/x86_xform4.S \
X86/x86_cliptest.S"
gcc:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CFLAGS = -pedantic -O2" \
"CCFLAGS = $(CFLAGS)" \
"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" \
"MAKELIB = $(TOP)/bin/mklib.gcc-sl" \
hpux9:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -287,7 +171,7 @@ hpux9:
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CFLAGS = +O3 -Aa -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"MAKELIB = $(TOP)/bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11 -lm"
hpux9-gcc:
......@@ -298,10 +182,10 @@ hpux9-gcc:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"CXXFLAGS = $(CFLAGS)" \
"MAKELIB = $(TOP)/bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11 -lm"
hpux9-sl:
......@@ -313,7 +197,6 @@ hpux9-sl:
"OSMESA_LIB = libOSMesa.sl" \
"CC = cc" \
"CFLAGS = +z +O3 +Olibcalls +ESlit -Aa +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.hpux" \
"APP_LIB_DEPS = -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11 -lm"
hpux9-gcc-sl:
......@@ -324,10 +207,9 @@ hpux9-gcc-sl:
"GLW_LIB = libGLw.sl" \
"OSMESA_LIB = libOSMesa.sl" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -fPIC -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.hpux" \
"CXXFLAGS = $(CFLAGS)" \
"APP_LIB_DEPS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11 -lm"
# The hpux10 configs should work for hpux11 as well.
......@@ -339,10 +221,10 @@ hpux10:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CPLUSPLUS = aCC" \
"CXX = aCC" \
"CFLAGS = +O3 +DAportable -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"CCFLAGS = +O3 +DAportable -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"CXXFLAGS = +O3 +DAportable -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"MAKELIB = $(TOP)/bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm -L/usr/lib -lCsup"
hpux10-sl:
......@@ -353,10 +235,9 @@ hpux10-sl:
"GLW_LIB = libGLw" \
"OSMESA_LIB = libOSMesa" \
"CC = cc" \
"CPLUSPLUS = aCC" \
"CXX = aCC" \
"CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"CCFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.hpux" \
"CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
hpux10-gcc:
......@@ -367,10 +248,10 @@ hpux10-gcc:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"CXXFLAGS = $(CFLAGS)" \
"MAKELIB = $(TOP)/bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
hpux10-gcc-sl:
......@@ -381,67 +262,12 @@ hpux10-gcc-sl:
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -fPIC -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.hpux" \
"CXXFLAGS = $(CFLAGS)" \
"APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
# For IRIX 4: don't use -fullwarn because it causes too much garbage
irix4:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CFLAGS = -O2 -ansi -prototypes -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.ar-rcv" \
"APP_LIB_DEPS = -lXext -lXmu -lXi -lX11 -lm"
# On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
irix5:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = cc" \
"CFLAGS = -O2 -ansi -fullwarn -DUSE_XSHM -DNO_CONST" \
"MAKELIB = ../bin/mklib.ar-rcv" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
# On IRIX 5.2+gcc
irix5-gcc:
make $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CFLAGS = -O2 -pedantic -DUSE_XSHM" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.ar-rcv" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
# IRIX 5 using Dynamic Shared Objects (DSO)
irix5-dso:
$(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 = cc" \
"CFLAGS = -O2 -ansi -fullwarn -DUSE_XSHM -DNO_CONST" \
"MAKELIB = ../bin/mklib.irix5" \
"APP_LIB_DEPS = -rpath ../lib -lX11 -lXmu -lXi -lm"
# IRIX 6 32-bit Targets
# Turn Warnings off for these errors (MIPSpro Compiler 7.30)
# 1521: A nonstandard preprocessing directive is used.
......@@ -457,13 +283,12 @@ irix6-o32:
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"LIBDIR = ../lib32" \
"LIBDIR = $(TOP)/lib32" \
"CC = cc" \
"CPLUSPLUS = CC" \
"CXX = CC" \
"CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM" \
"CCFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666" \
"MAKELIB = ../bin/mklib.ar-rcv" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
"CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666" \
"APP_LIB_DEPS = -32 -glut -lGLU -lGL -lX11 -lXext -lXmu -lXi -lm"
irix6-o32-dso:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -472,13 +297,12 @@ irix6-o32-dso:
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"LIBDIR = ../lib32" \
"LIBDIR = $(TOP)/lib32" \
"CC = cc" \
"CPLUSPLUS = CC" \
"CXX = CC" \
"CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM" \
"CCFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666" \
"MAKELIB = ../bin/mklib.irix6-32" \
"APP_LIB_DEPS = -rpath ../lib32 -lX11 -lXext -lXmu -lXi -lm"
"CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666" \
"APP_LIB_DEPS = -32 -rpath $(TOP)/lib32 -lglut -lGLU -lGL -lX11 -lXext -lXmu -lXi -lm"
irix6-n32:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -487,13 +311,12 @@ irix6-n32:
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"LIBDIR = ../lib32" \
"LIBDIR = $(TOP)/lib32" \
"CC = cc" \
"CPLUSPLUS = CC" \
"CXX = CC" \
"CFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1521,1552 -DUSE_XSHM" \
"CCFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552" \
"MAKELIB = ../bin/mklib.ar-rcv" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
"CXXFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552" \
"APP_LIB_DEPS = -n32 -lglut -lGLU -lGL -lX11 -lXext -lXmu -lXi -lm"
irix6-n32-dso:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -502,13 +325,12 @@ irix6-n32-dso:
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"LIBDIR = ../lib32" \
"LIBDIR = $(TOP)/lib32" \
"CC = cc" \
"CPLUSPLUS = CC" \
"CXX = CC" \
"CFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1521,1552 -DUSE_XSHM" \
"CCFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552" \
"MAKELIB = ../bin/mklib.irix6-n32" \
"APP_LIB_DEPS = -rpath ../lib32 -lX11 -lXmu -lXi -lfpe -lm"
"CXXFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552" \
"APP_LIB_DEPS = -n32 -rpath $(TOP)/lib32 -lglut -lGLU -lGL -lX11 -lXmu -lXi -lfpe -lm"
irix6-gcc-n32-sl:
make $(MFLAGS) -f Makefile.X11 targets \
......@@ -517,13 +339,12 @@ irix6-gcc-n32-sl:
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"LIBDIR = ../lib32" \
"LIBDIR = $(TOP)/lib32" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -mabi=n32 -mips3 -O3 -DUSE_XSHM" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.irix6-n32" \
"APP_LIB_DEPS = -rpath ../lib32 -lX11 -lXmu -lXi -lm"
"CXXFLAGS = $(CFLAGS)" \
"APP_LIB_DEPS = -rpath $(TOP)/lib32 -lX11 -lXmu -lXi -lm"
# For IRIX 6-64: -woff:
# 1068 - integer conversion resulted in a change of sign
......@@ -540,11 +361,12 @@ irix6-64:
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"LIBDIR = ../lib64" \
"LIBDIR = $(TOP)/lib64" \
"CC = cc" \
"CXX = CC" \
"CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.ar-rcv" \
"APP_LIB_DEPS = -lX11 -lXext -lXmu -lXi -lm"
"CXXFLAGS = -64 -O3 -ansi -woff 1174" \
"APP_LIB_DEPS = -64 -lglut -lGLU -lGL -lX11 -lXext -lXmu -lXi -lm"
irix6-64-dso:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -553,11 +375,12 @@ irix6-64-dso:
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"LIBDIR = ../lib64" \
"LIBDIR = $(TOP)/lib64" \
"CC = cc" \
"CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM" \
"MAKELIB = ../bin/mklib.irix6-64" \
"APP_LIB_DEPS = -rpath ../lib64 -lX11 -lXmu -lXi -lm"
"CXX = CC" \
"CXXFLAGS = -64 -O3 -ansi -woff 1174" \
"APP_LIB_DEPS = -64 -rpath $(TOP)/lib64 -lglut -lGLU -lGL -lX11 -lXmu -lXi -lm"
linux:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -567,45 +390,14 @@ linux:
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.linux" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
"GLUT_LIB_DEPS = -L../lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"APP_LIB_DEPS = -lm"
linux-static:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CFLAGS = -O3 -funroll-loops -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"APP_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lm -lpthread"
linux-trace:
$(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 = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -DMESA_TRACE -I/usr/X11R6/include" \
"CCFLAGS = $(CFLAGS)" \
"MAKELIB = ../bin/mklib.linux" \
"CXXFLAGS = $(CFLAGS)" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
"GLUT_LIB_DEPS = -L../lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"APP_LIB_DEPS = -lm"
"GLU_LIB_DEPS = -L$(TOP)/lib -lGL -lm" \
"GLUT_LIB_DEPS = -L$(TOP)/lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"GLW_LIB_DEPS = -L$(TOP)/lib -lGL -L/usr/X11R6/lib -lXt -lX11" \
"APP_LIB_DEPS = -lglut -lGLU -lGL -lm" \
linux-x86:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
......@@ -615,13 +407,13 @@ linux-x86:
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CXX = g++" \
"CFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include" \
"MAKELIB = ../bin/mklib.linux" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lm -lpthread" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
"GLUT_LIB_DEPS = -L../lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"APP_LIB_DEPS = -lm" \
"GLU_LIB_DEPS = -L$(TOP)/lib -lGL -lm" \
"GLUT_LIB_DEPS = -L$(TOP)/lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"GLW_LIB_DEPS = -L$(TOP)/lib -lGL -L/usr/X11R6/lib -lXt -lX11" \
"APP_LIB_DEPS = -lglut -lGLU -lGL -lm" \
"ASM_SOURCES = X86/common_x86_asm.S X86/glapi_x86.S \
X86/x86_xform2.S X86/x86_xform3.S X86/x86_xform4.S \
X86/x86_cliptest.S \
......@@ -633,20 +425,19 @@ linux-x86:
X86/sse_xform3.S X86/sse_xform4.S \
X86/sse_normal.S"
linux-icc:
linux-x86-sse:
$(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 = icc" \
"CPLUSPLUS = g++" \
"CFLAGS = -O3 -tpp6 -axK -KPIC -D_GCC_LIMITS_H_ -D__GNUC__ -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include" \
"MAKELIB = ../bin/mklib.linux" \
"CC = gcc" \
"CXX = g++" \
"CFLAGS = -mcpu=pentium4 -mfpmath=sse -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include" \
"GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lm -lpthread" \
"GLU_LIB_DEPS = -L../lib -lGL -lm" \
"GLUT_LIB_DEPS = -L../lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"GLU_LIB_DEPS = -L$(TOP)/lib -lGL -lm" \
"GLUT_LIB_DEPS = -L$(TOP)/lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm" \
"APP_LIB_DEPS = -lm" \
"ASM_SOURCES = X86/common_x86_asm.S X86/glapi_x86.S \
X86/x86_xform2.S X86/x86_xform3.S X86/x86_xform4.S \
......@@ -659,20 +450,19 @@ linux-icc:
X86/sse_xform3.S X86/sse_xform4.S \
X86/sse_normal.S"
linux-x86-static:
linux-icc:
$(MAKE) $(MFLAGS) -f Makefile.X11 targets \
"GL_LIB = libGL.a" \
"GLU_LIB = libGLU.a" \
"GLUT_LIB = libglut.a" \
"GLW_LIB = libGLw.a" \
"OSMESA_LIB = libOSMesa.a" \
"CC = gcc" \
"CPLUSPLUS = g++" \
"CFLAGS = -Wall -O3 -ansi -pedantic -fPIC -ffast-math -funroll-loops -fomit-frame-pointer -malign-loops=2 -malign-functions=2 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include" \
"MAKELIB = ../bin/mklib.ar-ruv" \
"GL_LIB = libGL.so" \
"GLU_LIB = libGLU.so" \
"GLUT_LIB = libglut.so" \
"GLW_LIB = libGLw.so" \
"OSMESA_LIB = libOSMesa.so" \
"CC = icc" \