mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
* Assorted Makefile cleanups/cruft removal
This commit is contained in:
parent
32a5a76d07
commit
4f1b8a2dc8
1 changed files with 11 additions and 46 deletions
|
@ -24,9 +24,9 @@ ARCH:=$(shell uname -m | sed -e s/i.86/i386/)
|
||||||
#############################################################################
|
#############################################################################
|
||||||
#
|
#
|
||||||
# If you require a different configuration from the defaults below, create a
|
# If you require a different configuration from the defaults below, create a
|
||||||
# new file name "Makefile.local" in the same directory as this file and define
|
# new file named "Makefile.local" in the same directory as this file and define
|
||||||
# your parameters there. This allows you change configuration without causing
|
# your parameters there. This allows you to change configuration without
|
||||||
# problems with keeping up to date with the repository.
|
# causing problems with keeping up to date with the repository.
|
||||||
#
|
#
|
||||||
#############################################################################
|
#############################################################################
|
||||||
-include Makefile.local
|
-include Makefile.local
|
||||||
|
@ -116,21 +116,19 @@ ifeq ($(PLATFORM),linux)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# bk001205: no mo' -I/usr/include/glide, no FX
|
|
||||||
# bk001205: no mo' -Dstricmp=strcasecmp, see q_shared.h
|
|
||||||
BASE_CFLAGS = -pipe -Wall -Wimplicit -Wstrict-prototypes
|
BASE_CFLAGS = -pipe -Wall -Wimplicit -Wstrict-prototypes
|
||||||
#BASE_CFLAGS += -Werror # Disabled due to #warning usage.
|
|
||||||
# rcg010216: DLL_ONLY for PPC
|
# rcg010216: DLL_ONLY for PPC
|
||||||
ifeq ($(strip $(DLL_ONLY)),true)
|
ifeq ($(strip $(DLL_ONLY)),true)
|
||||||
BASE_CFLAGS += -DDLL_ONLY
|
BASE_CFLAGS += -DDLL_ONLY
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# !!! FIXME: make this a build option? Make it coexist with X11 glimp?
|
|
||||||
ifeq ($(strip $(USE_SDL)),true)
|
ifeq ($(strip $(USE_SDL)),true)
|
||||||
BASE_CFLAGS += -DUSE_SDL=1 $(shell sdl-config --cflags)
|
BASE_CFLAGS += -DUSE_SDL=1 $(shell sdl-config --cflags)
|
||||||
endif
|
GL_CFLAGS =
|
||||||
|
else
|
||||||
GL_CFLAGS = -I/usr/X11R6/include
|
GL_CFLAGS = -I/usr/X11R6/include
|
||||||
|
endif
|
||||||
|
|
||||||
OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer \
|
OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer \
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
|
@ -153,24 +151,14 @@ ifeq ($(PLATFORM),linux)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# bk001204 - need -O for -Wall for uninitialized
|
|
||||||
# bk001205 - took out -O to get assertions (NDEBUG)
|
|
||||||
# bk001206 - MALLOC_CHECK in addition to ZONE_DEBUG
|
|
||||||
# TTimo 03/30/2001 temporary took out -Werror for initial merge
|
|
||||||
DEBUG_CFLAGS = $(BASE_CFLAGS) -g -DNO_MOUSEGRAB -O0
|
DEBUG_CFLAGS = $(BASE_CFLAGS) -g -DNO_MOUSEGRAB -O0
|
||||||
|
|
||||||
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
|
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
|
||||||
|
|
||||||
LIBEXT=a
|
|
||||||
|
|
||||||
SHLIBEXT=so
|
SHLIBEXT=so
|
||||||
SHLIBCFLAGS=-fPIC
|
SHLIBCFLAGS=-fPIC
|
||||||
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
||||||
|
|
||||||
AR=ar
|
|
||||||
ARFLAGS=rv
|
|
||||||
RANLIB=ranlib
|
|
||||||
|
|
||||||
THREAD_LDFLAGS=-lpthread
|
THREAD_LDFLAGS=-lpthread
|
||||||
LDFLAGS=-ldl -lm
|
LDFLAGS=-ldl -lm
|
||||||
|
|
||||||
|
@ -252,16 +240,10 @@ ifeq ($(PLATFORM),mingw32)
|
||||||
|
|
||||||
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
|
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
|
||||||
|
|
||||||
LIBEXT=lib
|
|
||||||
|
|
||||||
SHLIBEXT=dll
|
SHLIBEXT=dll
|
||||||
SHLIBCFLAGS=
|
SHLIBCFLAGS=
|
||||||
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
||||||
|
|
||||||
AR=ar
|
|
||||||
ARFLAGS=rv
|
|
||||||
RANLIB=ranlib
|
|
||||||
|
|
||||||
LDFLAGS= -mwindows -lwsock32 -lgdi32 -lwinmm -lole32
|
LDFLAGS= -mwindows -lwsock32 -lgdi32 -lwinmm -lole32
|
||||||
GLLDFLAGS=
|
GLLDFLAGS=
|
||||||
|
|
||||||
|
@ -327,21 +309,14 @@ ifeq ($(PLATFORM),freebsd)
|
||||||
-fno-strict-aliasing -fstrength-reduce
|
-fno-strict-aliasing -fstrength-reduce
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBEXT=a
|
|
||||||
|
|
||||||
SHLIBEXT=so
|
SHLIBEXT=so
|
||||||
SHLIBCFLAGS=-fPIC
|
SHLIBCFLAGS=-fPIC
|
||||||
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
||||||
|
|
||||||
ARFLAGS=ar rv
|
|
||||||
RANLIB=ranlib
|
|
||||||
|
|
||||||
THREAD_LDFLAGS=-lpthread
|
THREAD_LDFLAGS=-lpthread
|
||||||
# don't need -ldl (FreeBSD)
|
# don't need -ldl (FreeBSD)
|
||||||
LDFLAGS=-lm
|
LDFLAGS=-lm
|
||||||
|
|
||||||
#GLLDFLAGS=-L/usr/X11R6/lib -L$(MESADIR)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
|
|
||||||
#GLLDFLAGS=-L/usr/X11/lib -lGL -lX11 -lXext -lm
|
|
||||||
GLLDFLAGS=-L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
|
GLLDFLAGS=-L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
|
||||||
|
|
||||||
ifeq ($(ARCH),axp)
|
ifeq ($(ARCH),axp)
|
||||||
|
@ -375,15 +350,10 @@ ifeq ($(PLATFORM),irix)
|
||||||
RELEASE_CFLAGS=$(BASE_CFLAGS) -O3
|
RELEASE_CFLAGS=$(BASE_CFLAGS) -O3
|
||||||
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
|
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
|
||||||
|
|
||||||
LIBEXT=a
|
|
||||||
|
|
||||||
SHLIBEXT=so
|
SHLIBEXT=so
|
||||||
SHLIBCFLAGS=
|
SHLIBCFLAGS=
|
||||||
SHLIBLDFLAGS=-shared
|
SHLIBLDFLAGS=-shared
|
||||||
|
|
||||||
ARFLAGS=ar rv
|
|
||||||
RANLIB=ranlib
|
|
||||||
|
|
||||||
LDFLAGS=-ldl -lm
|
LDFLAGS=-ldl -lm
|
||||||
GLLDFLAGS=-L/usr/X11/$(LIB) -lGL -lX11 -lXext -lm
|
GLLDFLAGS=-L/usr/X11/$(LIB) -lGL -lX11 -lXext -lm
|
||||||
|
|
||||||
|
@ -396,20 +366,15 @@ else # ifeq IRIX
|
||||||
# SETUP AND BUILD -- GENERIC
|
# SETUP AND BUILD -- GENERIC
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
#CC=egcs
|
CC=cc
|
||||||
#BASE_CFLAGS=-Dstricmp=strcasecmp
|
BASE_CFLAGS=
|
||||||
#DEBUG_CFLAGS=$(BASE_CFLAGS) -g
|
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
|
||||||
#RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3
|
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3
|
||||||
|
|
||||||
LIBEXT=a
|
|
||||||
|
|
||||||
SHLIBEXT=so
|
SHLIBEXT=so
|
||||||
SHLIBCFLAGS=-fPIC
|
SHLIBCFLAGS=-fPIC
|
||||||
SHLIBLDFLAGS=-shared
|
SHLIBLDFLAGS=-shared
|
||||||
|
|
||||||
ARFLAGS=ar rv
|
|
||||||
RANLIB=ranlib
|
|
||||||
|
|
||||||
TARGETS=\
|
TARGETS=\
|
||||||
$(B)/$(PLATFORM)q3ded
|
$(B)/$(PLATFORM)q3ded
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue