# 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.
-# MinGW makefile v1.1 for Mesa
+# MinGW makefile v1.2 for Mesa
#
-# Copyright (C) 2002 - Borca Daniel
+# Copyright (C) 2002 - Daniel Borca
# Email : dborca@users.sourceforge.net
# Web : http://www.geocities.com/dborca
# 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
-\r
-# when -std=c99 mingw will not define WIN32
-CFLAGS = -Wall -W -Werror -pedantic -std=c99 -DWIN32
-CFLAGS += -O2 -ffast-math -mcpu=$(CPU)
+ifeq ($(ICD),1)
+ # when -std=c99 mingw will not define WIN32
+ CFLAGS = -Wall -W -Werror
+else
+ # I love c89
+ CFLAGS = -Wall -W -pedantic
+endif
+CFLAGS += -O2 -ffast-math
export CFLAGS