# Available options:
#
# Environment variables:
-# CPU optimize for the given processor.
-# default = pentium
# GLU=[mesa|sgi] specify GLU directory; can be `sgi' (requires GNU/C++)
# or `mesa'.
# default = mesa
.PHONY : all libgl libglu libglut clean realclean
-CPU ?= pentium
-
GLU ?= mesa
CFLAGS = -Wall -W -pedantic
-CFLAGS += -O2 -ffast-math -mtune=$(CPU)
+CFLAGS += -O2 -ffast-math
export CFLAGS
# Available options:
#
# Environment variables:
-# CPU optimize for the given processor.
-# default = pentium
# GLIDE path to Glide3 SDK; used with FX.
# default = $(TOP)/glide3
# FX=1 build for 3dfx Glide3. Note that this disables
.PHONY : all libgl clean realclean
-CPU ?= pentium
-
ifeq ($(ICD),1)
# when -std=c99 mingw will not define WIN32
CFLAGS = -Wall -W -Werror
# I love c89
CFLAGS = -Wall -W -pedantic
endif
-CFLAGS += -O2 -ffast-math -mtune=$(CPU)
+CFLAGS += -O2 -ffast-math
export CFLAGS
# Available options:
#
# Environment variables:
-# CPU optimize for the given processor.
-# default = pentium
# GLIDE path to Glide3 SDK; used with FX.
# default = $(TOP)/glide3
# FX=1 build for 3dfx Glide3. Note that this disables
.SECONDARY: ../util/readtex.o ../util/showbuffer.o
TOP = ../..
-CPU ?= pentium
GLIDE ?= $(TOP)/glide3
CC = gcc
CFLAGS = -Wall -W -pedantic
-CFLAGS += -O2 -ffast-math -mtune=$(CPU)
+CFLAGS += -O2 -ffast-math
CFLAGS += -I$(TOP)/include -I../util
CFLAGS += -DGLUT_IMPORT_LIB
ifeq ($(FX),1)
# Available options:
#
# Environment variables:
-# CPU optimize for the given processor.
-# default = pentium
#
# Targets:
# <file.exe> build a specific file
.SECONDARY: ../util/readtex.o ../util/showbuffer.o
TOP = ../..
-CPU ?= pentium
CC = mingw32-gcc
CFLAGS = -Wall -W -pedantic
-CFLAGS += -O2 -ffast-math -mtune=$(CPU)
+CFLAGS += -O2 -ffast-math
CFLAGS += -I$(TOP)/include -I../util
ifeq ($(FX),1)
CFLAGS += -DFX