# 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.
-# DOS/DJGPP makefile v1.4 for Mesa
+# DOS/DJGPP makefile for Mesa
#
-# Copyright (C) 2002 - Borca Daniel
-# Email : dborca@yahoo.com
+# Author: Daniel Borca
+# Email : dborca@users.sourceforge.net
# Web : http://www.geocities.com/dborca
# Available options:
#
# Environment variables:
-# CPU optimize for the given processor.
-# default = k6
-# GLU=[mesa|sgi] specify GLU directory; can be `sgi' (requires GNU/C++)
-# or `mesa'.
-# default = mesa
-# GLIDE path to Glide3 SDK include files; used with FX.
-# default = $(TOP)/include/glide3
+# GLIDE path to Glide3 SDK; used with FX.
+# default = $(TOP)/glide3
# FX=1 build for 3dfx Glide3. Note that this disables
# compilation of most DMesa code and requires fxMesa.
# As a consequence, you'll need the DJGPP Glide3
# library to build any application.
# default = no
-# MATROX=1 build for Matrox Millennium I (MGA2064W) cards.
-# This is experimental and not intensively tested.
-# default = no
-# HAVE_X86=1 optimize for i386.
-# default = no
-# HAVE_MMX=1 allow MMX specializations, provided your assembler
-# supports MMX instruction set. However, the true CPU
-# capabilities are checked at run-time to avoid crashes.
-# default = no
-# HAVE_SSE=1 (see HAVE_MMX)
-# default = no
-# HAVE_3DNOW=1 (see HAVE_MMX)
+# X86=1 optimize for x86 (if possible, use MMX, SSE, 3DNow).
# default = no
#
# Targets:
.PHONY : all libgl libglu libglut clean realclean
-CPU ?= k6
-
-GLU ?= mesa
-
CFLAGS = -Wall -W -pedantic
-CFLAGS += -O2 -ffast-math -mcpu=$(CPU)
+CFLAGS += -O2 -ffast-math
export CFLAGS
libgl: lib
$(MAKE) -f Makefile.DJ -C src/mesa
libglu: lib
- $(MAKE) -f Makefile.DJ -C src/glu/$(GLU)
+ $(MAKE) -f Makefile.DJ -C src/glu/sgi
libglut: lib
$(MAKE) -f Makefile.DJ -C src/glut/dos