From 2f54ad93106ead87afa603a3f50e7a9572e4fffc Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 30 Jul 2005 16:29:23 +0000 Subject: (svn r2760) Remove stale comments, long unused stuff and simplify some checks --- Makefile | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/Makefile b/Makefile index 018278c31..ddccf0376 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,5 @@ # $Id$ -# This Makefile is partially based on "a completely generic Makefile", -# originally created by Justin Husted -# -# Rewrite and sane dependencies support by Petr Baudis -# Cygwin support and configuration by Jaen Saul -# A lot of modifications by Bjarni Corfitzen -# -# Last modified by: $Author: strigeus $ -# On: $Date: 2004/03/11 19:15:06 $ - - ############################################################################## # # Usage @@ -293,27 +282,19 @@ ifndef CFLAGS_HOST CFLAGS_HOST = $(BASECFLAGS) endif -# When calling the compiler, use these flags -# -g debugging symbols -# -Wall all warnings -# -s automatic strip -# -# You may also want: -# -O optimize or -O2 fully optimize (O's above 2 are not recommended) -# -pg profile - generate profiling data. See "man gprof" to use this. CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3) # GNU make can only test for (in)equality # this is a workaround to test for >= -ifeq ($(shell if test $(CC_VERSION) -ge 29; then echo true; fi), true) +ifeq ($(shell expr $(CC_VERSION) \>= 29), 1) CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes CFLAGS += -Wwrite-strings -Wpointer-arith endif -ifeq ($(shell if test $(CC_VERSION) -ge 30; then echo true; fi), true) +ifeq ($(shell expr $(CC_VERSION) \>= 30), 1) CFLAGS += -W -Wno-unused-parameter endif -ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true) +ifeq ($(shell expr $(CC_VERSION) \>= 34), 1) CFLAGS += -Wdeclaration-after-statement -Wold-style-definition endif @@ -534,15 +515,6 @@ CDEFS += -DENABLE_NETWORK ifdef QNX LIBS += -lsocket endif -ifdef UNIX -ifndef OSX -ifndef MORPHOS -# this have caused problems on many platforms and disabling it didn't break anything -# now we test if disabling it as a general breaks it for anybody -#LIBS += -lresolv -endif -endif -endif endif -- cgit v1.2.3-54-g00ecf