2005-08-26 17:39:27 +00:00
|
|
|
#
|
2007-09-06 18:21:10 +00:00
|
|
|
# ioq3 Makefile
|
2005-08-26 17:39:27 +00:00
|
|
|
#
|
|
|
|
# GNU Make required
|
|
|
|
#
|
|
|
|
|
2011-02-04 17:31:12 +00:00
|
|
|
COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g')
|
2005-11-26 07:46:21 +00:00
|
|
|
|
2007-12-07 10:12:55 +00:00
|
|
|
COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/)
|
2007-12-07 10:11:47 +00:00
|
|
|
|
2007-11-25 23:41:01 +00:00
|
|
|
ifeq ($(COMPILE_PLATFORM),sunos)
|
|
|
|
# Solaris uname and GNU uname differ
|
2007-12-07 10:12:55 +00:00
|
|
|
COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/i386/)
|
2007-12-07 10:11:47 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(COMPILE_PLATFORM),darwin)
|
|
|
|
# Apple does some things a little differently...
|
2007-12-07 10:12:55 +00:00
|
|
|
COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/i386/)
|
2005-11-26 07:46:21 +00:00
|
|
|
endif
|
2005-09-27 16:35:25 +00:00
|
|
|
|
2006-03-21 22:21:05 +00:00
|
|
|
ifeq ($(COMPILE_PLATFORM),mingw32)
|
|
|
|
ifeq ($(COMPILE_ARCH),i386)
|
|
|
|
COMPILE_ARCH=x86
|
|
|
|
endif
|
2011-08-02 21:03:14 +00:00
|
|
|
ifeq ($(COMPILE_ARCH),x86_64)
|
|
|
|
COMPILE_ARCH=x64
|
|
|
|
endif
|
2006-03-21 22:21:05 +00:00
|
|
|
endif
|
|
|
|
|
2008-04-09 23:43:30 +00:00
|
|
|
ifndef BUILD_STANDALONE
|
|
|
|
BUILD_STANDALONE =
|
|
|
|
endif
|
2008-01-03 06:19:11 +00:00
|
|
|
ifndef BUILD_CLIENT
|
|
|
|
BUILD_CLIENT =
|
|
|
|
endif
|
|
|
|
ifndef BUILD_SERVER
|
|
|
|
BUILD_SERVER =
|
|
|
|
endif
|
|
|
|
ifndef BUILD_GAME_SO
|
|
|
|
BUILD_GAME_SO =
|
|
|
|
endif
|
|
|
|
ifndef BUILD_GAME_QVM
|
|
|
|
BUILD_GAME_QVM =
|
|
|
|
endif
|
2011-10-28 19:12:43 +00:00
|
|
|
ifndef BUILD_BASEGAME
|
|
|
|
BUILD_BASEGAME =
|
|
|
|
endif
|
2008-08-22 22:47:26 +00:00
|
|
|
ifndef BUILD_MISSIONPACK
|
|
|
|
BUILD_MISSIONPACK=
|
|
|
|
endif
|
2012-10-26 01:23:06 +00:00
|
|
|
ifndef BUILD_RENDERER_REND2
|
|
|
|
BUILD_RENDERER_REND2=
|
|
|
|
endif
|
2005-12-30 17:50:47 +00:00
|
|
|
|
2005-09-27 16:35:25 +00:00
|
|
|
#############################################################################
|
|
|
|
#
|
|
|
|
# If you require a different configuration from the defaults below, create a
|
2005-09-27 17:45:16 +00:00
|
|
|
# new file named "Makefile.local" in the same directory as this file and define
|
|
|
|
# your parameters there. This allows you to change configuration without
|
|
|
|
# causing problems with keeping up to date with the repository.
|
2005-09-27 16:35:25 +00:00
|
|
|
#
|
|
|
|
#############################################################################
|
|
|
|
-include Makefile.local
|
|
|
|
|
2005-12-29 00:04:41 +00:00
|
|
|
ifndef PLATFORM
|
|
|
|
PLATFORM=$(COMPILE_PLATFORM)
|
|
|
|
endif
|
|
|
|
export PLATFORM
|
|
|
|
|
2007-10-13 12:03:47 +00:00
|
|
|
ifeq ($(COMPILE_ARCH),powerpc)
|
|
|
|
COMPILE_ARCH=ppc
|
2005-12-29 00:04:41 +00:00
|
|
|
endif
|
2008-11-10 09:46:41 +00:00
|
|
|
ifeq ($(COMPILE_ARCH),powerpc64)
|
|
|
|
COMPILE_ARCH=ppc64
|
|
|
|
endif
|
2005-12-29 00:04:41 +00:00
|
|
|
|
2007-10-13 12:03:47 +00:00
|
|
|
ifndef ARCH
|
|
|
|
ARCH=$(COMPILE_ARCH)
|
2005-12-29 00:04:41 +00:00
|
|
|
endif
|
|
|
|
export ARCH
|
|
|
|
|
|
|
|
ifneq ($(PLATFORM),$(COMPILE_PLATFORM))
|
|
|
|
CROSS_COMPILING=1
|
|
|
|
else
|
|
|
|
CROSS_COMPILING=0
|
|
|
|
|
|
|
|
ifneq ($(ARCH),$(COMPILE_ARCH))
|
|
|
|
CROSS_COMPILING=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
export CROSS_COMPILING
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
ifndef VERSION
|
|
|
|
VERSION=1.36
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CLIENTBIN
|
|
|
|
CLIENTBIN=ioquake3
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef SERVERBIN
|
|
|
|
SERVERBIN=ioq3ded
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef BASEGAME
|
|
|
|
BASEGAME=baseq3
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef BASEGAME_CFLAGS
|
|
|
|
BASEGAME_CFLAGS=
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef MISSIONPACK
|
|
|
|
MISSIONPACK=missionpack
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef MISSIONPACK_CFLAGS
|
|
|
|
MISSIONPACK_CFLAGS=-DMISSIONPACK
|
|
|
|
endif
|
|
|
|
|
2005-09-03 22:45:50 +00:00
|
|
|
ifndef COPYDIR
|
|
|
|
COPYDIR="/usr/local/games/quake3"
|
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2009-09-14 23:49:20 +00:00
|
|
|
ifndef COPYBINDIR
|
|
|
|
COPYBINDIR=$(COPYDIR)
|
|
|
|
endif
|
|
|
|
|
2005-09-27 16:35:25 +00:00
|
|
|
ifndef MOUNT_DIR
|
2006-01-15 21:45:57 +00:00
|
|
|
MOUNT_DIR=code
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef BUILD_DIR
|
|
|
|
BUILD_DIR=build
|
2005-09-27 16:35:25 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-02-07 04:03:19 +00:00
|
|
|
ifndef TEMPDIR
|
|
|
|
TEMPDIR=/tmp
|
|
|
|
endif
|
|
|
|
|
2005-09-29 05:25:26 +00:00
|
|
|
ifndef GENERATE_DEPENDENCIES
|
|
|
|
GENERATE_DEPENDENCIES=1
|
2005-09-27 16:35:25 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2005-11-13 18:58:14 +00:00
|
|
|
ifndef USE_OPENAL
|
|
|
|
USE_OPENAL=1
|
|
|
|
endif
|
|
|
|
|
2005-11-13 21:01:44 +00:00
|
|
|
ifndef USE_OPENAL_DLOPEN
|
2009-10-13 15:39:39 +00:00
|
|
|
USE_OPENAL_DLOPEN=1
|
2005-11-13 21:01:44 +00:00
|
|
|
endif
|
|
|
|
|
2006-09-11 16:41:55 +00:00
|
|
|
ifndef USE_CURL
|
|
|
|
USE_CURL=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef USE_CURL_DLOPEN
|
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
USE_CURL_DLOPEN=0
|
|
|
|
else
|
|
|
|
USE_CURL_DLOPEN=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-01-06 17:36:03 +00:00
|
|
|
ifndef USE_CODEC_VORBIS
|
|
|
|
USE_CODEC_VORBIS=0
|
|
|
|
endif
|
|
|
|
|
2008-05-30 17:19:31 +00:00
|
|
|
ifndef USE_MUMBLE
|
|
|
|
USE_MUMBLE=1
|
|
|
|
endif
|
|
|
|
|
2008-06-01 07:51:23 +00:00
|
|
|
ifndef USE_VOIP
|
|
|
|
USE_VOIP=1
|
|
|
|
endif
|
|
|
|
|
2012-03-29 04:05:13 +00:00
|
|
|
ifndef USE_FREETYPE
|
|
|
|
USE_FREETYPE=0
|
|
|
|
endif
|
|
|
|
|
2008-06-05 08:55:08 +00:00
|
|
|
ifndef USE_INTERNAL_SPEEX
|
|
|
|
USE_INTERNAL_SPEEX=1
|
|
|
|
endif
|
|
|
|
|
2009-10-19 14:00:16 +00:00
|
|
|
ifndef USE_INTERNAL_ZLIB
|
|
|
|
USE_INTERNAL_ZLIB=1
|
|
|
|
endif
|
|
|
|
|
2011-03-12 16:45:15 +00:00
|
|
|
ifndef USE_INTERNAL_JPEG
|
|
|
|
USE_INTERNAL_JPEG=1
|
|
|
|
endif
|
|
|
|
|
2005-12-01 20:53:28 +00:00
|
|
|
ifndef USE_LOCAL_HEADERS
|
|
|
|
USE_LOCAL_HEADERS=1
|
|
|
|
endif
|
|
|
|
|
2011-08-01 01:19:55 +00:00
|
|
|
ifndef USE_RENDERER_DLOPEN
|
|
|
|
USE_RENDERER_DLOPEN=1
|
|
|
|
endif
|
|
|
|
|
2009-11-08 17:04:30 +00:00
|
|
|
ifndef DEBUG_CFLAGS
|
|
|
|
DEBUG_CFLAGS=-g -O0
|
2009-11-03 19:23:51 +00:00
|
|
|
endif
|
|
|
|
|
2011-06-01 15:17:18 +00:00
|
|
|
ifndef USE_OLD_VM64
|
|
|
|
USE_OLD_VM64=0
|
|
|
|
endif
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
|
2006-01-15 21:45:57 +00:00
|
|
|
BD=$(BUILD_DIR)/debug-$(PLATFORM)-$(ARCH)
|
|
|
|
BR=$(BUILD_DIR)/release-$(PLATFORM)-$(ARCH)
|
2005-08-26 17:39:27 +00:00
|
|
|
CDIR=$(MOUNT_DIR)/client
|
|
|
|
SDIR=$(MOUNT_DIR)/server
|
|
|
|
RDIR=$(MOUNT_DIR)/renderer
|
2012-10-26 01:23:06 +00:00
|
|
|
R2DIR=$(MOUNT_DIR)/rend2
|
2005-08-26 17:39:27 +00:00
|
|
|
CMDIR=$(MOUNT_DIR)/qcommon
|
2007-09-05 18:17:46 +00:00
|
|
|
SDLDIR=$(MOUNT_DIR)/sdl
|
|
|
|
ASMDIR=$(MOUNT_DIR)/asm
|
|
|
|
SYSDIR=$(MOUNT_DIR)/sys
|
2005-08-26 17:39:27 +00:00
|
|
|
GDIR=$(MOUNT_DIR)/game
|
|
|
|
CGDIR=$(MOUNT_DIR)/cgame
|
|
|
|
BLIBDIR=$(MOUNT_DIR)/botlib
|
|
|
|
NDIR=$(MOUNT_DIR)/null
|
|
|
|
UIDIR=$(MOUNT_DIR)/ui
|
|
|
|
Q3UIDIR=$(MOUNT_DIR)/q3_ui
|
2011-03-12 16:45:15 +00:00
|
|
|
JPDIR=$(MOUNT_DIR)/jpeg-8c
|
2008-06-01 18:53:28 +00:00
|
|
|
SPEEXDIR=$(MOUNT_DIR)/libspeex
|
2009-10-19 14:00:16 +00:00
|
|
|
ZDIR=$(MOUNT_DIR)/zlib
|
2007-09-12 23:37:33 +00:00
|
|
|
Q3ASMDIR=$(MOUNT_DIR)/tools/asm
|
|
|
|
LBURGDIR=$(MOUNT_DIR)/tools/lcc/lburg
|
|
|
|
Q3CPPDIR=$(MOUNT_DIR)/tools/lcc/cpp
|
|
|
|
Q3LCCETCDIR=$(MOUNT_DIR)/tools/lcc/etc
|
|
|
|
Q3LCCSRCDIR=$(MOUNT_DIR)/tools/lcc/src
|
2007-09-05 18:17:46 +00:00
|
|
|
LOKISETUPDIR=misc/setup
|
2008-04-15 14:19:03 +00:00
|
|
|
NSISDIR=misc/nsis
|
2006-01-15 21:45:57 +00:00
|
|
|
SDLHDIR=$(MOUNT_DIR)/SDL12
|
|
|
|
LIBSDIR=$(MOUNT_DIR)/libs
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2009-10-15 13:11:49 +00:00
|
|
|
bin_path=$(shell which $(1) 2> /dev/null)
|
|
|
|
|
2009-10-08 22:29:55 +00:00
|
|
|
# We won't need this if we only build the server
|
2009-10-08 19:21:42 +00:00
|
|
|
ifneq ($(BUILD_CLIENT),0)
|
|
|
|
# set PKG_CONFIG_PATH to influence this, e.g.
|
|
|
|
# PKG_CONFIG_PATH=/opt/cross/i386-mingw32msvc/lib/pkgconfig
|
2009-10-15 13:11:49 +00:00
|
|
|
ifneq ($(call bin_path, pkg-config),)
|
2009-10-13 15:22:43 +00:00
|
|
|
CURL_CFLAGS=$(shell pkg-config --silence-errors --cflags libcurl)
|
|
|
|
CURL_LIBS=$(shell pkg-config --silence-errors --libs libcurl)
|
|
|
|
OPENAL_CFLAGS=$(shell pkg-config --silence-errors --cflags openal)
|
|
|
|
OPENAL_LIBS=$(shell pkg-config --silence-errors --libs openal)
|
|
|
|
SDL_CFLAGS=$(shell pkg-config --silence-errors --cflags sdl|sed 's/-Dmain=SDL_main//')
|
|
|
|
SDL_LIBS=$(shell pkg-config --silence-errors --libs sdl)
|
2012-03-29 04:05:13 +00:00
|
|
|
FREETYPE_CFLAGS=$(shell pkg-config --silence-errors --cflags freetype2)
|
2009-10-08 19:21:42 +00:00
|
|
|
endif
|
|
|
|
# Use sdl-config if all else fails
|
|
|
|
ifeq ($(SDL_CFLAGS),)
|
2009-10-15 13:11:49 +00:00
|
|
|
ifneq ($(call bin_path, sdl-config),)
|
2009-10-08 19:21:42 +00:00
|
|
|
SDL_CFLAGS=$(shell sdl-config --cflags)
|
|
|
|
SDL_LIBS=$(shell sdl-config --libs)
|
|
|
|
endif
|
2009-05-03 18:49:48 +00:00
|
|
|
endif
|
2008-05-10 18:51:02 +00:00
|
|
|
endif
|
2008-04-28 07:10:32 +00:00
|
|
|
|
2013-01-05 15:35:32 +00:00
|
|
|
# Add git version info
|
2013-01-03 21:08:28 +00:00
|
|
|
USE_GIT=
|
|
|
|
ifeq ($(wildcard .git),.git)
|
2013-01-05 15:05:30 +00:00
|
|
|
GIT_REV=$(shell git show -s --pretty=format:%h-%ad --date=short)
|
2013-01-03 21:08:28 +00:00
|
|
|
ifneq ($(GIT_REV),)
|
|
|
|
VERSION:=$(VERSION)_GIT_$(GIT_REV)
|
|
|
|
USE_GIT=1
|
2006-08-22 16:13:51 +00:00
|
|
|
endif
|
2006-01-15 21:45:57 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- LINUX
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
## Defaults
|
2005-08-27 02:24:00 +00:00
|
|
|
LIB=lib
|
2005-10-31 16:46:05 +00:00
|
|
|
|
|
|
|
INSTALL=install
|
|
|
|
MKDIR=mkdir
|
|
|
|
|
2011-02-07 04:34:39 +00:00
|
|
|
ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu"))
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-02-06 17:19:06 +00:00
|
|
|
ifeq ($(ARCH),axp)
|
|
|
|
ARCH=alpha
|
2005-08-26 17:39:27 +00:00
|
|
|
else
|
2005-08-28 17:21:46 +00:00
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
|
LIB=lib64
|
2005-08-30 11:37:41 +00:00
|
|
|
else
|
2005-08-31 09:03:28 +00:00
|
|
|
ifeq ($(ARCH),ppc64)
|
|
|
|
LIB=lib64
|
|
|
|
else
|
|
|
|
ifeq ($(ARCH),s390x)
|
|
|
|
LIB=lib64
|
2005-08-28 17:21:46 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
endif
|
2005-08-31 09:03:28 +00:00
|
|
|
endif
|
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2008-11-12 13:40:04 +00:00
|
|
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
|
2011-10-27 21:32:28 +00:00
|
|
|
-pipe -DUSE_ICON
|
2011-08-01 12:48:31 +00:00
|
|
|
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
2005-11-26 07:46:21 +00:00
|
|
|
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
|
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
2005-09-23 01:59:42 +00:00
|
|
|
|
2005-08-28 17:21:46 +00:00
|
|
|
ifeq ($(ARCH),x86_64)
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \
|
2005-11-03 18:34:03 +00:00
|
|
|
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
|
|
|
-fstrength-reduce
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
2005-12-18 15:36:07 +00:00
|
|
|
HAVE_VM_COMPILED = true
|
2005-08-26 17:39:27 +00:00
|
|
|
else
|
2005-08-28 17:21:46 +00:00
|
|
|
ifeq ($(ARCH),i386)
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \
|
2005-11-03 18:34:03 +00:00
|
|
|
-funroll-loops -falign-loops=2 -falign-jumps=2 \
|
|
|
|
-falign-functions=2 -fstrength-reduce
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
2005-10-29 17:41:17 +00:00
|
|
|
HAVE_VM_COMPILED=true
|
2005-08-30 11:37:41 +00:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),ppc)
|
2005-11-26 07:46:21 +00:00
|
|
|
BASE_CFLAGS += -maltivec
|
2008-11-10 09:46:41 +00:00
|
|
|
HAVE_VM_COMPILED=true
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),ppc64)
|
|
|
|
BASE_CFLAGS += -maltivec
|
|
|
|
HAVE_VM_COMPILED=true
|
2005-08-30 11:37:41 +00:00
|
|
|
endif
|
2009-03-02 17:29:26 +00:00
|
|
|
ifeq ($(ARCH),sparc)
|
|
|
|
OPTIMIZE += -mtune=ultrasparc3 -mv8plus
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM += -mtune=ultrasparc3 -mv8plus
|
2009-03-02 17:29:46 +00:00
|
|
|
HAVE_VM_COMPILED=true
|
2009-03-02 17:29:26 +00:00
|
|
|
endif
|
2011-02-06 17:19:06 +00:00
|
|
|
ifeq ($(ARCH),alpha)
|
|
|
|
# According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=410555
|
|
|
|
# -ffast-math will cause the client to die with SIGFPE on Alpha
|
|
|
|
OPTIMIZE = $(OPTIMIZEVM)
|
|
|
|
endif
|
2005-08-28 17:21:46 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
SHLIBEXT=so
|
2009-09-15 02:48:17 +00:00
|
|
|
SHLIBCFLAGS=-fPIC -fvisibility=hidden
|
2005-08-26 17:39:27 +00:00
|
|
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
THREAD_LIBS=-lpthread
|
|
|
|
LIBS=-ldl -lm
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-08-01 11:53:59 +00:00
|
|
|
CLIENT_LIBS=$(SDL_LIBS)
|
2011-08-01 13:15:31 +00:00
|
|
|
RENDERER_LIBS = $(SDL_LIBS) -lGL
|
2005-08-30 23:25:02 +00:00
|
|
|
|
2005-11-26 07:46:21 +00:00
|
|
|
ifeq ($(USE_OPENAL),1)
|
|
|
|
ifneq ($(USE_OPENAL_DLOPEN),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lopenal
|
2005-11-26 07:46:21 +00:00
|
|
|
endif
|
2005-11-15 22:22:45 +00:00
|
|
|
endif
|
2007-09-05 18:17:46 +00:00
|
|
|
|
2006-09-11 16:41:55 +00:00
|
|
|
ifeq ($(USE_CURL),1)
|
|
|
|
ifneq ($(USE_CURL_DLOPEN),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lcurl
|
2006-09-11 16:41:55 +00:00
|
|
|
endif
|
|
|
|
endif
|
2005-11-15 22:22:45 +00:00
|
|
|
|
2006-01-06 17:36:03 +00:00
|
|
|
ifeq ($(USE_CODEC_VORBIS),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lvorbisfile -lvorbis -logg
|
2006-01-06 17:36:03 +00:00
|
|
|
endif
|
|
|
|
|
2008-05-30 17:19:31 +00:00
|
|
|
ifeq ($(USE_MUMBLE),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lrt
|
2008-05-30 17:19:31 +00:00
|
|
|
endif
|
|
|
|
|
2012-03-29 04:05:13 +00:00
|
|
|
ifeq ($(USE_FREETYPE),1)
|
|
|
|
BASE_CFLAGS += $(FREETYPE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2005-08-27 18:10:36 +00:00
|
|
|
ifeq ($(ARCH),i386)
|
|
|
|
# linux32 make ...
|
|
|
|
BASE_CFLAGS += -m32
|
2007-10-12 10:25:13 +00:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),ppc64)
|
|
|
|
BASE_CFLAGS += -m64
|
|
|
|
endif
|
2005-08-27 18:10:36 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
else # ifeq Linux
|
|
|
|
|
2005-11-26 07:46:21 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- MAC OS X
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),darwin)
|
2006-08-02 04:01:36 +00:00
|
|
|
HAVE_VM_COMPILED=true
|
2012-12-31 01:32:15 +00:00
|
|
|
LIBS = -framework Cocoa
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS=
|
2011-08-10 21:14:17 +00:00
|
|
|
RENDERER_LIBS=
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM=
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2008-01-03 06:19:11 +00:00
|
|
|
BASE_CFLAGS = -Wall -Wimplicit -Wstrict-prototypes
|
2005-11-26 07:46:21 +00:00
|
|
|
|
2006-08-02 04:01:36 +00:00
|
|
|
ifeq ($(ARCH),ppc)
|
2011-09-29 02:44:08 +00:00
|
|
|
BASE_CFLAGS += -arch ppc -faltivec -mmacosx-version-min=10.2
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM += -O3
|
2006-08-02 04:01:36 +00:00
|
|
|
endif
|
2008-11-10 09:46:41 +00:00
|
|
|
ifeq ($(ARCH),ppc64)
|
2011-09-29 02:44:08 +00:00
|
|
|
BASE_CFLAGS += -arch ppc64 -faltivec -mmacosx-version-min=10.2
|
2008-11-10 09:46:41 +00:00
|
|
|
endif
|
2006-08-02 05:12:20 +00:00
|
|
|
ifeq ($(ARCH),i386)
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM += -march=prescott -mfpmath=sse
|
2006-08-02 04:01:36 +00:00
|
|
|
# x86 vm will crash without -mstackrealign since MMX instructions will be
|
|
|
|
# used no matter what and they corrupt the frame pointer in VM calls
|
2011-09-29 02:44:08 +00:00
|
|
|
BASE_CFLAGS += -arch i386 -m32 -mstackrealign
|
2006-08-02 04:01:36 +00:00
|
|
|
endif
|
2011-08-10 20:48:53 +00:00
|
|
|
ifeq ($(ARCH),x86_64)
|
2011-09-29 02:44:08 +00:00
|
|
|
OPTIMIZEVM += -arch x86_64 -mfpmath=sse
|
2011-08-10 20:48:53 +00:00
|
|
|
endif
|
2006-08-02 04:01:36 +00:00
|
|
|
|
2008-11-12 13:40:04 +00:00
|
|
|
BASE_CFLAGS += -fno-strict-aliasing -DMACOS_X -fno-common -pipe
|
2005-11-26 07:46:21 +00:00
|
|
|
|
|
|
|
ifeq ($(USE_OPENAL),1)
|
2006-08-02 04:01:36 +00:00
|
|
|
ifneq ($(USE_OPENAL_DLOPEN),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -framework OpenAL
|
2005-11-26 07:46:21 +00:00
|
|
|
endif
|
|
|
|
endif
|
2007-07-15 12:08:11 +00:00
|
|
|
|
2006-09-11 16:41:55 +00:00
|
|
|
ifeq ($(USE_CURL),1)
|
|
|
|
ifneq ($(USE_CURL_DLOPEN),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lcurl
|
2006-09-11 16:41:55 +00:00
|
|
|
endif
|
|
|
|
endif
|
2005-11-26 07:46:21 +00:00
|
|
|
|
2012-03-29 04:05:13 +00:00
|
|
|
ifeq ($(USE_FREETYPE),1)
|
|
|
|
BASE_CFLAGS += $(FREETYPE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2006-01-06 17:36:03 +00:00
|
|
|
ifeq ($(USE_CODEC_VORBIS),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lvorbisfile -lvorbis -logg
|
2006-01-06 17:36:03 +00:00
|
|
|
endif
|
|
|
|
|
2007-11-02 23:36:23 +00:00
|
|
|
BASE_CFLAGS += -D_THREAD_SAFE=1
|
|
|
|
|
|
|
|
ifeq ($(USE_LOCAL_HEADERS),1)
|
|
|
|
BASE_CFLAGS += -I$(SDLHDIR)/include
|
|
|
|
endif
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
# We copy sdlmain before ranlib'ing it so that subversion doesn't think
|
|
|
|
# the file has been modified by each build.
|
|
|
|
LIBSDLMAIN=$(B)/libSDLmain.a
|
|
|
|
LIBSDLMAINSRC=$(LIBSDIR)/macosx/libSDLmain.a
|
2011-08-10 21:14:17 +00:00
|
|
|
CLIENT_LIBS += -framework IOKit \
|
2012-12-31 01:32:15 +00:00
|
|
|
$(LIBSDIR)/macosx/libSDL-1.2.0.dylib
|
|
|
|
RENDERER_LIBS += -framework OpenGL $(LIBSDIR)/macosx/libSDL-1.2.0.dylib
|
2005-11-26 07:46:21 +00:00
|
|
|
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM += -falign-loops=16
|
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
2005-11-26 07:46:21 +00:00
|
|
|
|
|
|
|
SHLIBEXT=dylib
|
|
|
|
SHLIBCFLAGS=-fPIC -fno-common
|
2011-09-29 02:44:08 +00:00
|
|
|
SHLIBLDFLAGS=-dynamiclib $(LDFLAGS) -Wl,-U,_com_altivec
|
2005-11-26 07:46:21 +00:00
|
|
|
|
|
|
|
NOTSHLIBCFLAGS=-mdynamic-no-pic
|
|
|
|
|
2007-09-12 23:37:33 +00:00
|
|
|
TOOLS_CFLAGS += -DMACOS_X
|
|
|
|
|
2005-11-26 07:46:21 +00:00
|
|
|
else # ifeq darwin
|
|
|
|
|
|
|
|
|
2005-09-22 03:21:33 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- MINGW32
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
|
2009-10-13 15:22:43 +00:00
|
|
|
# Some MinGW installations define CC to cc, but don't actually provide cc,
|
|
|
|
# so explicitly use gcc instead (which is the only option anyway)
|
2009-10-15 13:11:49 +00:00
|
|
|
ifeq ($(call bin_path, $(CC)),)
|
2009-10-14 00:16:17 +00:00
|
|
|
CC=gcc
|
|
|
|
endif
|
2009-10-13 15:22:43 +00:00
|
|
|
|
2008-05-10 18:51:02 +00:00
|
|
|
ifndef WINDRES
|
|
|
|
WINDRES=windres
|
|
|
|
endif
|
2005-09-22 03:21:33 +00:00
|
|
|
|
2008-11-12 13:40:04 +00:00
|
|
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
|
2007-11-02 23:36:23 +00:00
|
|
|
-DUSE_ICON
|
|
|
|
|
2008-08-09 19:12:30 +00:00
|
|
|
# In the absence of wspiapi.h, require Windows XP or later
|
|
|
|
ifeq ($(shell test -e $(CMDIR)/wspiapi.h; echo $$?),1)
|
|
|
|
BASE_CFLAGS += -DWINVER=0x501
|
|
|
|
endif
|
2008-04-05 16:01:58 +00:00
|
|
|
|
2005-11-13 18:58:14 +00:00
|
|
|
ifeq ($(USE_OPENAL),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += $(OPENAL_CFLAGS)
|
2011-08-02 22:00:57 +00:00
|
|
|
ifneq ($(USE_OPENAL_DLOPEN),1)
|
2008-04-28 07:10:32 +00:00
|
|
|
CLIENT_LDFLAGS += $(OPENAL_LDFLAGS)
|
2006-09-11 16:41:55 +00:00
|
|
|
endif
|
|
|
|
endif
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2010-03-19 08:59:22 +00:00
|
|
|
ifeq ($(ARCH),x64)
|
2010-02-28 09:00:02 +00:00
|
|
|
OPTIMIZEVM = -O3 -fno-omit-frame-pointer \
|
|
|
|
-falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
|
|
|
|
-fstrength-reduce
|
|
|
|
OPTIMIZE = $(OPTIMIZEVM) --fast-math
|
|
|
|
HAVE_VM_COMPILED = true
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86)
|
|
|
|
OPTIMIZEVM = -O3 -march=i586 -fno-omit-frame-pointer \
|
|
|
|
-falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
|
|
|
|
-fstrength-reduce
|
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
|
|
|
HAVE_VM_COMPILED = true
|
|
|
|
endif
|
2006-06-06 18:09:09 +00:00
|
|
|
|
2005-09-22 03:21:33 +00:00
|
|
|
SHLIBEXT=dll
|
|
|
|
SHLIBCFLAGS=
|
|
|
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
BINEXT=.exe
|
|
|
|
|
2010-02-16 09:43:44 +00:00
|
|
|
LIBS= -lws2_32 -lwinmm -lpsapi
|
2011-08-01 12:48:31 +00:00
|
|
|
CLIENT_LDFLAGS += -mwindows
|
2011-08-01 13:25:55 +00:00
|
|
|
CLIENT_LIBS = -lgdi32 -lole32
|
|
|
|
RENDERER_LIBS = -lgdi32 -lole32 -lopengl32
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2012-03-29 04:05:13 +00:00
|
|
|
ifeq ($(USE_FREETYPE),1)
|
|
|
|
BASE_CFLAGS += -Ifreetype2
|
|
|
|
endif
|
|
|
|
|
2006-09-11 16:41:55 +00:00
|
|
|
ifeq ($(USE_CURL),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += $(CURL_CFLAGS)
|
2006-09-11 16:41:55 +00:00
|
|
|
ifneq ($(USE_CURL_DLOPEN),1)
|
2008-04-28 07:10:32 +00:00
|
|
|
ifeq ($(USE_LOCAL_HEADERS),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += -DCURL_STATICLIB
|
2010-03-19 08:59:22 +00:00
|
|
|
ifeq ($(ARCH),x64)
|
2011-08-02 22:00:57 +00:00
|
|
|
CLIENT_LIBS += $(LIBSDIR)/win64/libcurl.a
|
|
|
|
else
|
2010-02-28 09:00:02 +00:00
|
|
|
CLIENT_LIBS += $(LIBSDIR)/win32/libcurl.a
|
|
|
|
endif
|
2008-04-28 07:10:32 +00:00
|
|
|
else
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += $(CURL_LIBS)
|
2008-04-28 07:10:32 +00:00
|
|
|
endif
|
2006-09-11 16:41:55 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-01-06 17:36:03 +00:00
|
|
|
ifeq ($(USE_CODEC_VORBIS),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lvorbisfile -lvorbis -logg
|
2006-01-06 17:36:03 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-22 03:21:33 +00:00
|
|
|
ifeq ($(ARCH),x86)
|
|
|
|
# build 32bit
|
|
|
|
BASE_CFLAGS += -m32
|
2010-02-28 09:00:02 +00:00
|
|
|
else
|
|
|
|
BASE_CFLAGS += -m64
|
2005-09-22 03:21:33 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
# libmingw32 must be linked before libSDLmain
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lmingw32
|
2011-08-01 13:25:55 +00:00
|
|
|
RENDERER_LIBS += -lmingw32
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2008-04-28 07:10:32 +00:00
|
|
|
ifeq ($(USE_LOCAL_HEADERS),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += -I$(SDLHDIR)/include
|
2010-02-28 09:00:02 +00:00
|
|
|
ifeq ($(ARCH), x86)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += $(LIBSDIR)/win32/libSDLmain.a \
|
2008-04-28 07:10:32 +00:00
|
|
|
$(LIBSDIR)/win32/libSDL.dll.a
|
2011-08-01 13:25:55 +00:00
|
|
|
RENDERER_LIBS += $(LIBSDIR)/win32/libSDLmain.a \
|
|
|
|
$(LIBSDIR)/win32/libSDL.dll.a
|
2012-02-07 09:29:13 +00:00
|
|
|
SDLDLL=SDL.dll
|
2010-02-28 09:00:02 +00:00
|
|
|
else
|
|
|
|
CLIENT_LIBS += $(LIBSDIR)/win64/libSDLmain.a \
|
2011-06-13 15:47:43 +00:00
|
|
|
$(LIBSDIR)/win64/libSDL64.dll.a
|
2011-08-01 13:25:55 +00:00
|
|
|
RENDERER_LIBS += $(LIBSDIR)/win64/libSDLmain.a \
|
|
|
|
$(LIBSDIR)/win64/libSDL64.dll.a
|
2012-02-07 09:29:13 +00:00
|
|
|
SDLDLL=SDL64.dll
|
2010-02-28 09:00:02 +00:00
|
|
|
endif
|
2008-04-28 07:10:32 +00:00
|
|
|
else
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += $(SDL_LIBS)
|
2011-08-01 13:25:55 +00:00
|
|
|
RENDERER_LIBS += $(SDL_LIBS)
|
2012-02-07 09:29:13 +00:00
|
|
|
SDLDLL=SDL.dll
|
2008-04-28 07:10:32 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-22 03:21:33 +00:00
|
|
|
else # ifeq mingw32
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- FREEBSD
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),freebsd)
|
|
|
|
|
2010-01-07 19:53:52 +00:00
|
|
|
# flags
|
|
|
|
BASE_CFLAGS = $(shell env MACHINE_ARCH=$(ARCH) make -f /dev/null -VCFLAGS) \
|
|
|
|
-Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
|
|
|
|
-DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON
|
2011-08-01 12:48:31 +00:00
|
|
|
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
2010-01-07 19:53:52 +00:00
|
|
|
HAVE_VM_COMPILED = true
|
2005-09-23 01:59:42 +00:00
|
|
|
|
2011-01-27 07:19:25 +00:00
|
|
|
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
|
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
2007-09-05 18:17:46 +00:00
|
|
|
|
2005-09-23 01:59:42 +00:00
|
|
|
SHLIBEXT=so
|
|
|
|
SHLIBCFLAGS=-fPIC
|
|
|
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
THREAD_LIBS=-lpthread
|
2005-09-23 01:59:42 +00:00
|
|
|
# don't need -ldl (FreeBSD)
|
2008-11-02 17:32:21 +00:00
|
|
|
LIBS=-lm
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS =
|
2006-01-26 21:20:47 +00:00
|
|
|
|
2011-08-01 11:53:59 +00:00
|
|
|
CLIENT_LIBS += $(SDL_LIBS)
|
2011-08-01 13:15:31 +00:00
|
|
|
RENDERER_LIBS = $(SDL_LIBS) -lGL
|
2006-01-26 21:20:47 +00:00
|
|
|
|
2010-01-07 19:53:52 +00:00
|
|
|
# optional features/libraries
|
2006-01-26 21:20:47 +00:00
|
|
|
ifeq ($(USE_OPENAL),1)
|
2010-01-07 19:53:52 +00:00
|
|
|
ifeq ($(USE_OPENAL_DLOPEN),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += $(THREAD_LIBS) -lopenal
|
2006-01-26 21:20:47 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-01-07 19:53:52 +00:00
|
|
|
ifeq ($(USE_CURL),1)
|
|
|
|
ifeq ($(USE_CURL_DLOPEN),1)
|
|
|
|
CLIENT_LIBS += -lcurl
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_CODEC_VORBIS),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lvorbisfile -lvorbis -logg
|
2006-01-26 21:20:47 +00:00
|
|
|
endif
|
2005-09-23 01:59:42 +00:00
|
|
|
|
2010-01-07 19:53:52 +00:00
|
|
|
# cross-compiling tweaks
|
|
|
|
ifeq ($(ARCH),i386)
|
|
|
|
ifeq ($(CROSS_COMPILING),1)
|
|
|
|
BASE_CFLAGS += -m32
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),amd64)
|
|
|
|
ifeq ($(CROSS_COMPILING),1)
|
|
|
|
BASE_CFLAGS += -m64
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
else # ifeq freebsd
|
|
|
|
|
2007-10-12 23:27:47 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- OPENBSD
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),openbsd)
|
|
|
|
|
2011-06-06 14:59:54 +00:00
|
|
|
ARCH=$(shell uname -m)
|
2007-10-12 23:27:47 +00:00
|
|
|
|
2008-11-12 13:40:04 +00:00
|
|
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
|
2011-06-06 14:59:54 +00:00
|
|
|
-DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON
|
2011-08-01 12:48:31 +00:00
|
|
|
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
2007-10-12 23:27:47 +00:00
|
|
|
|
2009-09-14 23:49:20 +00:00
|
|
|
ifeq ($(USE_CURL),1)
|
2011-08-02 22:00:57 +00:00
|
|
|
CLIENT_CFLAGS += $(CURL_CFLAGS)
|
2009-09-14 23:49:20 +00:00
|
|
|
USE_CURL_DLOPEN=0
|
|
|
|
endif
|
|
|
|
|
2012-12-16 02:58:47 +00:00
|
|
|
# no shm_open on OpenBSD
|
|
|
|
USE_MUMBLE=0
|
|
|
|
|
2007-10-12 23:27:47 +00:00
|
|
|
SHLIBEXT=so
|
|
|
|
SHLIBCFLAGS=-fPIC
|
|
|
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
|
|
|
|
2009-09-14 23:49:20 +00:00
|
|
|
THREAD_LIBS=-pthread
|
2008-11-02 17:32:21 +00:00
|
|
|
LIBS=-lm
|
2007-10-12 23:27:47 +00:00
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS =
|
2007-10-12 23:27:47 +00:00
|
|
|
|
2011-08-01 11:53:59 +00:00
|
|
|
CLIENT_LIBS += $(SDL_LIBS)
|
2011-08-01 13:15:31 +00:00
|
|
|
RENDERER_LIBS = $(SDL_LIBS) -lGL
|
2007-10-12 23:27:47 +00:00
|
|
|
|
|
|
|
ifeq ($(USE_OPENAL),1)
|
|
|
|
ifneq ($(USE_OPENAL_DLOPEN),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += $(THREAD_LIBS) -lossaudio -lopenal
|
2007-10-12 23:27:47 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_CODEC_VORBIS),1)
|
2008-11-02 17:32:21 +00:00
|
|
|
CLIENT_LIBS += -lvorbisfile -lvorbis -logg
|
2007-10-12 23:27:47 +00:00
|
|
|
endif
|
|
|
|
|
2013-01-05 15:35:50 +00:00
|
|
|
ifeq ($(USE_CURL),1)
|
2009-09-14 23:49:20 +00:00
|
|
|
ifneq ($(USE_CURL_DLOPEN),1)
|
|
|
|
CLIENT_LIBS += -lcurl
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-10-12 23:27:47 +00:00
|
|
|
else # ifeq openbsd
|
|
|
|
|
2005-12-27 19:46:01 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- NETBSD
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),netbsd)
|
|
|
|
|
|
|
|
ifeq ($(shell uname -m),i386)
|
|
|
|
ARCH=i386
|
|
|
|
endif
|
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
LIBS=-lm
|
2005-12-27 19:46:01 +00:00
|
|
|
SHLIBEXT=so
|
|
|
|
SHLIBCFLAGS=-fPIC
|
|
|
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
2008-11-02 17:32:21 +00:00
|
|
|
THREAD_LIBS=-lpthread
|
2005-12-27 19:46:01 +00:00
|
|
|
|
2008-11-12 13:40:04 +00:00
|
|
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
|
2005-12-27 19:46:01 +00:00
|
|
|
|
2011-08-02 22:00:57 +00:00
|
|
|
ifeq ($(ARCH),i386)
|
|
|
|
HAVE_VM_COMPILED=true
|
2005-12-27 19:46:01 +00:00
|
|
|
endif
|
|
|
|
|
2005-12-30 17:50:47 +00:00
|
|
|
BUILD_CLIENT = 0
|
2005-12-27 19:46:01 +00:00
|
|
|
|
|
|
|
else # ifeq netbsd
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- IRIX
|
|
|
|
#############################################################################
|
|
|
|
|
2007-11-26 20:18:53 +00:00
|
|
|
ifeq ($(PLATFORM),irix64)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-06-06 15:03:27 +00:00
|
|
|
ARCH=mips
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2007-11-26 20:18:53 +00:00
|
|
|
CC = c99
|
|
|
|
MKDIR = mkdir -p
|
|
|
|
|
|
|
|
BASE_CFLAGS=-Dstricmp=strcasecmp -Xcpluscomm -woff 1185 \
|
2011-08-02 22:00:57 +00:00
|
|
|
-I. -I$(ROOT)/usr/include
|
2011-08-01 12:48:31 +00:00
|
|
|
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZE = -O3
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2005-09-23 01:59:42 +00:00
|
|
|
SHLIBEXT=so
|
|
|
|
SHLIBCFLAGS=
|
|
|
|
SHLIBLDFLAGS=-shared
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
LIBS=-ldl -lm -lgen
|
2007-11-26 20:18:53 +00:00
|
|
|
# FIXME: The X libraries probably aren't necessary?
|
2011-08-01 11:53:59 +00:00
|
|
|
CLIENT_LIBS=-L/usr/X11/$(LIB) $(SDL_LIBS) \
|
2007-11-26 20:18:53 +00:00
|
|
|
-lX11 -lXext -lm
|
2011-08-01 13:15:31 +00:00
|
|
|
RENDERER_LIBS = $(SDL_LIBS) -lGL
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
else # ifeq IRIX
|
|
|
|
|
2005-10-29 22:05:20 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- SunOS
|
|
|
|
#############################################################################
|
|
|
|
|
2006-04-04 07:12:24 +00:00
|
|
|
ifeq ($(PLATFORM),sunos)
|
2005-10-29 22:05:20 +00:00
|
|
|
|
2007-07-17 08:12:35 +00:00
|
|
|
CC=gcc
|
2005-10-31 16:46:05 +00:00
|
|
|
INSTALL=ginstall
|
|
|
|
MKDIR=gmkdir
|
2005-10-29 22:05:20 +00:00
|
|
|
COPYDIR="/usr/local/share/games/quake3"
|
|
|
|
|
|
|
|
ifneq (,$(findstring i86pc,$(shell uname -m)))
|
|
|
|
ARCH=i386
|
|
|
|
else #default to sparc
|
|
|
|
ARCH=sparc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ARCH),i386)
|
|
|
|
ifneq ($(ARCH),sparc)
|
|
|
|
$(error arch $(ARCH) is currently not supported)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-11-12 13:40:04 +00:00
|
|
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
|
2009-11-08 17:04:30 +00:00
|
|
|
-pipe -DUSE_ICON
|
2011-08-01 12:48:31 +00:00
|
|
|
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
2005-10-29 22:05:20 +00:00
|
|
|
|
2009-12-18 21:52:36 +00:00
|
|
|
OPTIMIZEVM = -O3 -funroll-loops
|
2005-10-29 22:05:20 +00:00
|
|
|
|
|
|
|
ifeq ($(ARCH),sparc)
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM += -O3 \
|
2008-03-28 16:16:38 +00:00
|
|
|
-fstrength-reduce -falign-functions=2 \
|
2009-11-08 17:04:30 +00:00
|
|
|
-mtune=ultrasparc3 -mv8plus -mno-faster-structs
|
2009-05-03 18:49:48 +00:00
|
|
|
HAVE_VM_COMPILED=true
|
2005-10-29 22:05:20 +00:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),i386)
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZEVM += -march=i586 -fomit-frame-pointer \
|
|
|
|
-falign-loops=2 -falign-jumps=2 \
|
2006-11-30 08:01:43 +00:00
|
|
|
-falign-functions=2 -fstrength-reduce
|
|
|
|
HAVE_VM_COMPILED=true
|
|
|
|
BASE_CFLAGS += -m32
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += -I/usr/X11/include/NVIDIA
|
2007-11-30 15:08:57 +00:00
|
|
|
CLIENT_LDFLAGS += -L/usr/X11/lib/NVIDIA -R/usr/X11/lib/NVIDIA
|
2005-10-29 22:05:20 +00:00
|
|
|
endif
|
|
|
|
endif
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
2005-10-29 22:05:20 +00:00
|
|
|
|
|
|
|
SHLIBEXT=so
|
|
|
|
SHLIBCFLAGS=-fPIC
|
|
|
|
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
|
|
|
|
2008-11-02 17:32:21 +00:00
|
|
|
THREAD_LIBS=-lpthread
|
|
|
|
LIBS=-lsocket -lnsl -ldl -lm
|
2005-10-29 22:05:20 +00:00
|
|
|
|
2006-01-04 03:14:01 +00:00
|
|
|
BOTCFLAGS=-O0
|
|
|
|
|
2011-08-01 11:53:59 +00:00
|
|
|
CLIENT_LIBS +=$(SDL_LIBS) -lX11 -lXext -liconv -lm
|
2011-08-01 13:15:31 +00:00
|
|
|
RENDERER_LIBS = $(SDL_LIBS) -lGL
|
2005-10-29 22:05:20 +00:00
|
|
|
|
2006-04-04 07:12:24 +00:00
|
|
|
else # ifeq sunos
|
2005-10-29 22:05:20 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
# SETUP AND BUILD -- GENERIC
|
|
|
|
#############################################################################
|
2011-08-02 22:00:57 +00:00
|
|
|
BASE_CFLAGS=
|
2009-12-18 21:52:36 +00:00
|
|
|
OPTIMIZE = -O3
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2005-09-23 01:59:42 +00:00
|
|
|
SHLIBEXT=so
|
|
|
|
SHLIBCFLAGS=-fPIC
|
|
|
|
SHLIBLDFLAGS=-shared
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
endif #Linux
|
2005-11-26 07:46:21 +00:00
|
|
|
endif #darwin
|
2005-09-22 03:21:33 +00:00
|
|
|
endif #mingw32
|
2005-08-26 17:39:27 +00:00
|
|
|
endif #FreeBSD
|
2007-10-12 23:27:47 +00:00
|
|
|
endif #OpenBSD
|
2005-12-27 19:46:01 +00:00
|
|
|
endif #NetBSD
|
2005-08-26 17:39:27 +00:00
|
|
|
endif #IRIX
|
2005-10-29 22:05:20 +00:00
|
|
|
endif #SunOS
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-08-02 22:00:57 +00:00
|
|
|
ifneq ($(HAVE_VM_COMPILED),true)
|
|
|
|
BASE_CFLAGS += -DNO_VM_COMPILED
|
|
|
|
BUILD_GAME_QVM=0
|
|
|
|
endif
|
|
|
|
|
2005-12-30 17:50:47 +00:00
|
|
|
TARGETS =
|
|
|
|
|
2012-03-29 04:05:13 +00:00
|
|
|
ifeq ($(USE_FREETYPE),1)
|
|
|
|
BASE_CFLAGS += -DBUILD_FREETYPE
|
|
|
|
endif
|
|
|
|
|
2009-09-14 23:49:20 +00:00
|
|
|
ifndef FULLBINEXT
|
|
|
|
FULLBINEXT=.$(ARCH)$(BINEXT)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef SHLIBNAME
|
|
|
|
SHLIBNAME=$(ARCH).$(SHLIBEXT)
|
|
|
|
endif
|
|
|
|
|
2005-12-30 17:50:47 +00:00
|
|
|
ifneq ($(BUILD_SERVER),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
TARGETS += $(B)/$(SERVERBIN)$(FULLBINEXT)
|
2005-11-26 07:46:21 +00:00
|
|
|
endif
|
|
|
|
|
2005-12-30 17:50:47 +00:00
|
|
|
ifneq ($(BUILD_CLIENT),0)
|
2011-08-01 01:19:55 +00:00
|
|
|
ifneq ($(USE_RENDERER_DLOPEN),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
TARGETS += $(B)/$(CLIENTBIN)$(FULLBINEXT) $(B)/renderer_opengl1_$(SHLIBNAME)
|
2012-10-26 01:23:06 +00:00
|
|
|
ifneq ($(BUILD_RENDERER_REND2), 0)
|
|
|
|
TARGETS += $(B)/renderer_rend2_$(SHLIBNAME)
|
|
|
|
endif
|
2011-08-01 01:19:55 +00:00
|
|
|
else
|
2011-10-28 19:12:43 +00:00
|
|
|
TARGETS += $(B)/$(CLIENTBIN)$(FULLBINEXT)
|
2012-10-28 21:04:41 +00:00
|
|
|
ifneq ($(BUILD_RENDERER_REND2), 0)
|
|
|
|
TARGETS += $(B)/$(CLIENTBIN)_rend2$(FULLBINEXT)
|
|
|
|
endif
|
2005-12-30 17:50:47 +00:00
|
|
|
endif
|
2005-11-05 01:06:09 +00:00
|
|
|
endif
|
|
|
|
|
2005-12-30 17:50:47 +00:00
|
|
|
ifneq ($(BUILD_GAME_SO),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
ifneq ($(BUILD_BASEGAME),0)
|
|
|
|
TARGETS += \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame$(SHLIBNAME) \
|
|
|
|
$(B)/$(BASEGAME)/qagame$(SHLIBNAME) \
|
|
|
|
$(B)/$(BASEGAME)/ui$(SHLIBNAME)
|
2011-10-28 19:12:43 +00:00
|
|
|
endif
|
2008-08-22 22:47:26 +00:00
|
|
|
ifneq ($(BUILD_MISSIONPACK),0)
|
|
|
|
TARGETS += \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame$(SHLIBNAME) \
|
|
|
|
$(B)/$(MISSIONPACK)/qagame$(SHLIBNAME) \
|
|
|
|
$(B)/$(MISSIONPACK)/ui$(SHLIBNAME)
|
2008-08-22 22:47:26 +00:00
|
|
|
endif
|
2005-12-29 00:04:41 +00:00
|
|
|
endif
|
|
|
|
|
2005-12-30 17:50:47 +00:00
|
|
|
ifneq ($(BUILD_GAME_QVM),0)
|
|
|
|
ifneq ($(CROSS_COMPILING),1)
|
2011-10-28 19:12:43 +00:00
|
|
|
ifneq ($(BUILD_BASEGAME),0)
|
|
|
|
TARGETS += \
|
|
|
|
$(B)/$(BASEGAME)/vm/cgame.qvm \
|
|
|
|
$(B)/$(BASEGAME)/vm/qagame.qvm \
|
|
|
|
$(B)/$(BASEGAME)/vm/ui.qvm
|
2013-01-05 15:35:50 +00:00
|
|
|
endif
|
2008-08-22 22:47:26 +00:00
|
|
|
ifneq ($(BUILD_MISSIONPACK),0)
|
|
|
|
TARGETS += \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/vm/qagame.qvm \
|
|
|
|
$(B)/$(MISSIONPACK)/vm/cgame.qvm \
|
|
|
|
$(B)/$(MISSIONPACK)/vm/ui.qvm
|
2008-08-22 22:47:26 +00:00
|
|
|
endif
|
2005-12-30 17:50:47 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-08-02 22:00:57 +00:00
|
|
|
ifeq ($(USE_OPENAL),1)
|
|
|
|
CLIENT_CFLAGS += -DUSE_OPENAL
|
|
|
|
ifeq ($(USE_OPENAL_DLOPEN),1)
|
|
|
|
CLIENT_CFLAGS += -DUSE_OPENAL_DLOPEN
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_CURL),1)
|
|
|
|
CLIENT_CFLAGS += -DUSE_CURL
|
|
|
|
ifeq ($(USE_CURL_DLOPEN),1)
|
|
|
|
CLIENT_CFLAGS += -DUSE_CURL_DLOPEN
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_CODEC_VORBIS),1)
|
|
|
|
CLIENT_CFLAGS += -DUSE_CODEC_VORBIS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_RENDERER_DLOPEN),1)
|
|
|
|
CLIENT_CFLAGS += -DUSE_RENDERER_DLOPEN
|
|
|
|
endif
|
|
|
|
|
2008-06-02 12:12:00 +00:00
|
|
|
ifeq ($(USE_MUMBLE),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += -DUSE_MUMBLE
|
2008-06-02 12:12:00 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_VOIP),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += -DUSE_VOIP
|
2009-12-08 22:36:48 +00:00
|
|
|
SERVER_CFLAGS += -DUSE_VOIP
|
2008-06-05 08:55:08 +00:00
|
|
|
ifeq ($(USE_INTERNAL_SPEEX),1)
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS += -DFLOATING_POINT -DUSE_ALLOCA -I$(SPEEXDIR)/include
|
2008-06-05 08:55:08 +00:00
|
|
|
else
|
2009-08-02 02:21:23 +00:00
|
|
|
CLIENT_LIBS += -lspeex -lspeexdsp
|
2008-06-05 08:55:08 +00:00
|
|
|
endif
|
2008-06-02 12:12:00 +00:00
|
|
|
endif
|
|
|
|
|
2009-10-19 14:00:16 +00:00
|
|
|
ifeq ($(USE_INTERNAL_ZLIB),1)
|
|
|
|
BASE_CFLAGS += -DNO_GZIP
|
2010-03-19 08:59:22 +00:00
|
|
|
BASE_CFLAGS += -I$(ZDIR)
|
2009-10-19 14:00:16 +00:00
|
|
|
else
|
2009-10-23 12:57:45 +00:00
|
|
|
LIBS += -lz
|
2009-10-19 14:00:16 +00:00
|
|
|
endif
|
|
|
|
|
2011-03-12 16:45:15 +00:00
|
|
|
ifeq ($(USE_INTERNAL_JPEG),1)
|
|
|
|
BASE_CFLAGS += -DUSE_INTERNAL_JPEG
|
|
|
|
BASE_CFLAGS += -I$(JPDIR)
|
|
|
|
else
|
2011-08-01 13:10:35 +00:00
|
|
|
RENDERER_LIBS += -ljpeg
|
2011-03-12 16:45:15 +00:00
|
|
|
endif
|
|
|
|
|
2012-03-29 04:05:13 +00:00
|
|
|
ifeq ($(USE_FREETYPE),1)
|
|
|
|
RENDERER_LIBS += -lfreetype
|
|
|
|
endif
|
|
|
|
|
2011-10-27 21:32:28 +00:00
|
|
|
ifeq ("$(CC)", $(findstring "$(CC)", "clang" "clang++"))
|
|
|
|
BASE_CFLAGS += -Qunused-arguments
|
|
|
|
endif
|
|
|
|
|
2005-08-31 17:43:56 +00:00
|
|
|
ifdef DEFAULT_BASEDIR
|
2005-09-23 01:59:42 +00:00
|
|
|
BASE_CFLAGS += -DDEFAULT_BASEDIR=\\\"$(DEFAULT_BASEDIR)\\\"
|
2005-08-31 17:43:56 +00:00
|
|
|
endif
|
|
|
|
|
2005-12-01 20:53:28 +00:00
|
|
|
ifeq ($(USE_LOCAL_HEADERS),1)
|
2007-09-22 20:32:11 +00:00
|
|
|
BASE_CFLAGS += -DUSE_LOCAL_HEADERS
|
2005-12-01 20:53:28 +00:00
|
|
|
endif
|
|
|
|
|
2008-04-09 23:43:30 +00:00
|
|
|
ifeq ($(BUILD_STANDALONE),1)
|
|
|
|
BASE_CFLAGS += -DSTANDALONE
|
|
|
|
endif
|
|
|
|
|
2005-09-29 05:25:26 +00:00
|
|
|
ifeq ($(GENERATE_DEPENDENCIES),1)
|
2007-09-14 23:07:28 +00:00
|
|
|
DEPEND_CFLAGS = -MMD
|
|
|
|
else
|
|
|
|
DEPEND_CFLAGS =
|
2005-09-27 16:35:25 +00:00
|
|
|
endif
|
|
|
|
|
2009-09-14 23:49:20 +00:00
|
|
|
ifeq ($(NO_STRIP),1)
|
|
|
|
STRIP_FLAG =
|
|
|
|
else
|
|
|
|
STRIP_FLAG = -s
|
|
|
|
endif
|
|
|
|
|
2008-05-06 20:24:32 +00:00
|
|
|
BASE_CFLAGS += -DPRODUCT_VERSION=\\\"$(VERSION)\\\"
|
2011-07-18 14:56:57 +00:00
|
|
|
BASE_CFLAGS += -Wformat=2 -Wno-format-zero-length -Wformat-security -Wno-format-nonliteral
|
|
|
|
BASE_CFLAGS += -Wstrict-aliasing=2 -Wmissing-format-attribute
|
|
|
|
BASE_CFLAGS += -Wdisabled-optimization
|
|
|
|
BASE_CFLAGS += -Werror-implicit-function-declaration
|
2006-08-22 16:13:51 +00:00
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
ifeq ($(V),1)
|
|
|
|
echo_cmd=@:
|
|
|
|
Q=
|
|
|
|
else
|
|
|
|
echo_cmd=@echo
|
|
|
|
Q=@
|
|
|
|
endif
|
|
|
|
|
2007-09-06 18:21:10 +00:00
|
|
|
define DO_CC
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "CC $<"
|
2009-11-08 17:36:05 +00:00
|
|
|
$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $<
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
2011-08-01 01:19:55 +00:00
|
|
|
define DO_REF_CC
|
|
|
|
$(echo_cmd) "REF_CC $<"
|
|
|
|
$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $<
|
|
|
|
endef
|
|
|
|
|
2012-12-04 01:56:52 +00:00
|
|
|
define DO_REF_STR
|
|
|
|
$(echo_cmd) "REF_STR $<"
|
|
|
|
$(Q)rm -f $@
|
|
|
|
$(Q)echo "const char *fallbackShader_$(notdir $(basename $<)) =" >> $@
|
2012-12-20 00:15:17 +00:00
|
|
|
$(Q)cat $< | sed 's/^/\"/;s/$$/\\n\"/' >> $@
|
2012-12-04 01:56:52 +00:00
|
|
|
$(Q)echo ";" >> $@
|
|
|
|
endef
|
|
|
|
|
2007-07-16 23:30:53 +00:00
|
|
|
define DO_BOT_CC
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "BOT_CC $<"
|
2009-11-08 17:36:05 +00:00
|
|
|
$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(BOTCFLAGS) $(OPTIMIZE) -DBOTLIB -o $@ -c $<
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(GENERATE_DEPENDENCIES),1)
|
|
|
|
DO_QVM_DEP=cat $(@:%.o=%.d) | sed -e 's/\.o/\.asm/g' >> $(@:%.o=%.d)
|
|
|
|
endif
|
|
|
|
|
|
|
|
define DO_SHLIB_CC
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "SHLIB_CC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(BASEGAME_CFLAGS) $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2007-08-27 07:02:54 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
2008-03-17 16:47:40 +00:00
|
|
|
define DO_GAME_CC
|
|
|
|
$(echo_cmd) "GAME_CC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(BASEGAME_CFLAGS) -DQAGAME $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2008-03-17 16:47:40 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_CGAME_CC
|
|
|
|
$(echo_cmd) "CGAME_CC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(BASEGAME_CFLAGS) -DCGAME $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2008-03-17 16:47:40 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_UI_CC
|
|
|
|
$(echo_cmd) "UI_CC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(BASEGAME_CFLAGS) -DUI $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2008-03-17 16:47:40 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
|
|
|
endef
|
|
|
|
|
2007-07-16 23:30:53 +00:00
|
|
|
define DO_SHLIB_CC_MISSIONPACK
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "SHLIB_CC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(MISSIONPACK_CFLAGS) $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2007-08-27 07:02:54 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
2008-03-17 16:47:40 +00:00
|
|
|
define DO_GAME_CC_MISSIONPACK
|
|
|
|
$(echo_cmd) "GAME_CC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(MISSIONPACK_CFLAGS) -DQAGAME $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2008-03-17 16:47:40 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_CGAME_CC_MISSIONPACK
|
|
|
|
$(echo_cmd) "CGAME_CC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(MISSIONPACK_CFLAGS) -DCGAME $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2008-03-17 16:47:40 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_UI_CC_MISSIONPACK
|
|
|
|
$(echo_cmd) "UI_CC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(CC) $(MISSIONPACK_CFLAGS) -DUI $(SHLIBCFLAGS) $(CFLAGS) $(OPTIMIZEVM) -o $@ -c $<
|
2008-03-17 16:47:40 +00:00
|
|
|
$(Q)$(DO_QVM_DEP)
|
|
|
|
endef
|
|
|
|
|
2007-07-16 23:30:53 +00:00
|
|
|
define DO_AS
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "AS $<"
|
2009-11-08 17:36:05 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(OPTIMIZE) -x assembler-with-cpp -o $@ -c $<
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_DED_CC
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "DED_CC $<"
|
2009-11-08 17:36:05 +00:00
|
|
|
$(Q)$(CC) $(NOTSHLIBCFLAGS) -DDEDICATED $(CFLAGS) $(SERVER_CFLAGS) $(OPTIMIZE) -o $@ -c $<
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_WINDRES
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "WINDRES $<"
|
|
|
|
$(Q)$(WINDRES) -i $< -o $@
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
#############################################################################
|
|
|
|
# MAIN TARGETS
|
|
|
|
#############################################################################
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2007-07-16 21:34:05 +00:00
|
|
|
default: release
|
|
|
|
all: debug release
|
|
|
|
|
|
|
|
debug:
|
2009-11-08 17:36:05 +00:00
|
|
|
@$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(BASE_CFLAGS) $(DEPEND_CFLAGS)" \
|
2009-11-08 17:04:30 +00:00
|
|
|
OPTIMIZE="$(DEBUG_CFLAGS)" OPTIMIZEVM="$(DEBUG_CFLAGS)" \
|
|
|
|
CLIENT_CFLAGS="$(CLIENT_CFLAGS)" SERVER_CFLAGS="$(SERVER_CFLAGS)" V=$(V)
|
2007-07-16 21:34:05 +00:00
|
|
|
|
|
|
|
release:
|
2009-11-08 17:36:05 +00:00
|
|
|
@$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(BASE_CFLAGS) $(DEPEND_CFLAGS)" \
|
2009-12-18 21:52:36 +00:00
|
|
|
OPTIMIZE="-DNDEBUG $(OPTIMIZE)" OPTIMIZEVM="-DNDEBUG $(OPTIMIZEVM)" \
|
2009-11-08 17:04:30 +00:00
|
|
|
CLIENT_CFLAGS="$(CLIENT_CFLAGS)" SERVER_CFLAGS="$(SERVER_CFLAGS)" V=$(V)
|
2007-07-16 21:34:05 +00:00
|
|
|
|
2007-09-12 23:37:33 +00:00
|
|
|
# Create the build directories, check libraries and print out
|
2007-07-16 21:34:05 +00:00
|
|
|
# an informational message, then start building
|
2007-11-25 23:41:01 +00:00
|
|
|
targets: makedirs
|
2007-07-16 21:34:05 +00:00
|
|
|
@echo ""
|
2011-10-28 19:12:43 +00:00
|
|
|
@echo "Building $(CLIENTBIN) in $(B):"
|
2007-08-28 16:42:13 +00:00
|
|
|
@echo " PLATFORM: $(PLATFORM)"
|
2007-08-27 07:02:54 +00:00
|
|
|
@echo " ARCH: $(ARCH)"
|
2008-05-06 20:24:32 +00:00
|
|
|
@echo " VERSION: $(VERSION)"
|
2007-08-27 07:02:54 +00:00
|
|
|
@echo " COMPILE_PLATFORM: $(COMPILE_PLATFORM)"
|
|
|
|
@echo " COMPILE_ARCH: $(COMPILE_ARCH)"
|
2007-07-16 21:34:05 +00:00
|
|
|
@echo " CC: $(CC)"
|
|
|
|
@echo ""
|
|
|
|
@echo " CFLAGS:"
|
2008-11-10 09:47:02 +00:00
|
|
|
-@for i in $(CFLAGS); \
|
2007-07-16 21:34:05 +00:00
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
2009-11-08 17:36:05 +00:00
|
|
|
-@for i in $(OPTIMIZE); \
|
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
|
|
|
@echo ""
|
|
|
|
@echo " CLIENT_CFLAGS:"
|
|
|
|
-@for i in $(CLIENT_CFLAGS); \
|
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
|
|
|
@echo ""
|
|
|
|
@echo " SERVER_CFLAGS:"
|
|
|
|
-@for i in $(SERVER_CFLAGS); \
|
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
2007-07-16 21:34:05 +00:00
|
|
|
@echo ""
|
2008-01-03 19:04:23 +00:00
|
|
|
@echo " LDFLAGS:"
|
2008-11-10 09:47:02 +00:00
|
|
|
-@for i in $(LDFLAGS); \
|
2008-01-03 19:04:23 +00:00
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
|
|
|
@echo ""
|
2008-11-02 17:32:21 +00:00
|
|
|
@echo " LIBS:"
|
2008-11-10 09:47:02 +00:00
|
|
|
-@for i in $(LIBS); \
|
2008-11-02 17:32:21 +00:00
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
|
|
|
@echo ""
|
2009-05-03 18:49:48 +00:00
|
|
|
@echo " CLIENT_LIBS:"
|
|
|
|
-@for i in $(CLIENT_LIBS); \
|
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
|
|
|
@echo ""
|
2007-07-16 21:34:05 +00:00
|
|
|
@echo " Output:"
|
2008-11-10 09:47:02 +00:00
|
|
|
-@for i in $(TARGETS); \
|
2007-07-16 21:34:05 +00:00
|
|
|
do \
|
|
|
|
echo " $$i"; \
|
|
|
|
done
|
|
|
|
@echo ""
|
2008-07-05 22:34:23 +00:00
|
|
|
ifneq ($(TARGETS),)
|
2007-08-27 07:02:54 +00:00
|
|
|
@$(MAKE) $(TARGETS) V=$(V)
|
2008-07-05 22:34:23 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
makedirs:
|
2006-01-15 21:45:57 +00:00
|
|
|
@if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi
|
2005-10-31 16:46:05 +00:00
|
|
|
@if [ ! -d $(B) ];then $(MKDIR) $(B);fi
|
|
|
|
@if [ ! -d $(B)/client ];then $(MKDIR) $(B)/client;fi
|
2011-08-01 01:19:55 +00:00
|
|
|
@if [ ! -d $(B)/renderer ];then $(MKDIR) $(B)/renderer;fi
|
2012-10-26 01:23:06 +00:00
|
|
|
@if [ ! -d $(B)/rend2 ];then $(MKDIR) $(B)/rend2;fi
|
2012-12-04 01:56:52 +00:00
|
|
|
@if [ ! -d $(B)/rend2/glsl ];then $(MKDIR) $(B)/rend2/glsl;fi
|
2005-10-31 16:46:05 +00:00
|
|
|
@if [ ! -d $(B)/ded ];then $(MKDIR) $(B)/ded;fi
|
2011-10-28 19:12:43 +00:00
|
|
|
@if [ ! -d $(B)/$(BASEGAME) ];then $(MKDIR) $(B)/$(BASEGAME);fi
|
|
|
|
@if [ ! -d $(B)/$(BASEGAME)/cgame ];then $(MKDIR) $(B)/$(BASEGAME)/cgame;fi
|
|
|
|
@if [ ! -d $(B)/$(BASEGAME)/game ];then $(MKDIR) $(B)/$(BASEGAME)/game;fi
|
|
|
|
@if [ ! -d $(B)/$(BASEGAME)/ui ];then $(MKDIR) $(B)/$(BASEGAME)/ui;fi
|
|
|
|
@if [ ! -d $(B)/$(BASEGAME)/qcommon ];then $(MKDIR) $(B)/$(BASEGAME)/qcommon;fi
|
|
|
|
@if [ ! -d $(B)/$(BASEGAME)/vm ];then $(MKDIR) $(B)/$(BASEGAME)/vm;fi
|
|
|
|
@if [ ! -d $(B)/$(MISSIONPACK) ];then $(MKDIR) $(B)/$(MISSIONPACK);fi
|
|
|
|
@if [ ! -d $(B)/$(MISSIONPACK)/cgame ];then $(MKDIR) $(B)/$(MISSIONPACK)/cgame;fi
|
|
|
|
@if [ ! -d $(B)/$(MISSIONPACK)/game ];then $(MKDIR) $(B)/$(MISSIONPACK)/game;fi
|
|
|
|
@if [ ! -d $(B)/$(MISSIONPACK)/ui ];then $(MKDIR) $(B)/$(MISSIONPACK)/ui;fi
|
|
|
|
@if [ ! -d $(B)/$(MISSIONPACK)/qcommon ];then $(MKDIR) $(B)/$(MISSIONPACK)/qcommon;fi
|
|
|
|
@if [ ! -d $(B)/$(MISSIONPACK)/vm ];then $(MKDIR) $(B)/$(MISSIONPACK)/vm;fi
|
2007-09-12 23:37:33 +00:00
|
|
|
@if [ ! -d $(B)/tools ];then $(MKDIR) $(B)/tools;fi
|
|
|
|
@if [ ! -d $(B)/tools/asm ];then $(MKDIR) $(B)/tools/asm;fi
|
|
|
|
@if [ ! -d $(B)/tools/etc ];then $(MKDIR) $(B)/tools/etc;fi
|
|
|
|
@if [ ! -d $(B)/tools/rcc ];then $(MKDIR) $(B)/tools/rcc;fi
|
|
|
|
@if [ ! -d $(B)/tools/cpp ];then $(MKDIR) $(B)/tools/cpp;fi
|
|
|
|
@if [ ! -d $(B)/tools/lburg ];then $(MKDIR) $(B)/tools/lburg;fi
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2005-10-08 14:36:15 +00:00
|
|
|
#############################################################################
|
|
|
|
# QVM BUILD TOOLS
|
|
|
|
#############################################################################
|
|
|
|
|
2010-02-26 16:32:49 +00:00
|
|
|
TOOLS_OPTIMIZE = -g -Wall -fno-strict-aliasing
|
2009-09-15 01:36:17 +00:00
|
|
|
TOOLS_CFLAGS += $(TOOLS_OPTIMIZE) \
|
|
|
|
-DTEMPDIR=\"$(TEMPDIR)\" -DSYSTEM=\"\" \
|
|
|
|
-I$(Q3LCCSRCDIR) \
|
|
|
|
-I$(LBURGDIR)
|
2008-11-02 17:32:21 +00:00
|
|
|
TOOLS_LIBS =
|
2007-09-12 23:37:33 +00:00
|
|
|
TOOLS_LDFLAGS =
|
2005-10-08 14:36:15 +00:00
|
|
|
|
2007-10-23 13:35:31 +00:00
|
|
|
ifeq ($(GENERATE_DEPENDENCIES),1)
|
2013-01-05 15:35:50 +00:00
|
|
|
TOOLS_CFLAGS += -MMD
|
2007-10-23 13:35:31 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-12 23:37:33 +00:00
|
|
|
define DO_TOOLS_CC
|
|
|
|
$(echo_cmd) "TOOLS_CC $<"
|
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) -o $@ -c $<
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_TOOLS_CC_DAGCHECK
|
|
|
|
$(echo_cmd) "TOOLS_CC_DAGCHECK $<"
|
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) -Wno-unused -o $@ -c $<
|
|
|
|
endef
|
|
|
|
|
|
|
|
LBURG = $(B)/tools/lburg/lburg$(BINEXT)
|
|
|
|
DAGCHECK_C = $(B)/tools/rcc/dagcheck.c
|
|
|
|
Q3RCC = $(B)/tools/q3rcc$(BINEXT)
|
|
|
|
Q3CPP = $(B)/tools/q3cpp$(BINEXT)
|
|
|
|
Q3LCC = $(B)/tools/q3lcc$(BINEXT)
|
|
|
|
Q3ASM = $(B)/tools/q3asm$(BINEXT)
|
|
|
|
|
|
|
|
LBURGOBJ= \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/tools/lburg/lburg.o \
|
|
|
|
$(B)/tools/lburg/gram.o
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
$(B)/tools/lburg/%.o: $(LBURGDIR)/%.c
|
|
|
|
$(DO_TOOLS_CC)
|
|
|
|
|
|
|
|
$(LBURG): $(LBURGOBJ)
|
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ $(TOOLS_LIBS)
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
Q3RCCOBJ = \
|
|
|
|
$(B)/tools/rcc/alloc.o \
|
|
|
|
$(B)/tools/rcc/bind.o \
|
|
|
|
$(B)/tools/rcc/bytecode.o \
|
|
|
|
$(B)/tools/rcc/dag.o \
|
|
|
|
$(B)/tools/rcc/dagcheck.o \
|
|
|
|
$(B)/tools/rcc/decl.o \
|
|
|
|
$(B)/tools/rcc/enode.o \
|
|
|
|
$(B)/tools/rcc/error.o \
|
|
|
|
$(B)/tools/rcc/event.o \
|
|
|
|
$(B)/tools/rcc/expr.o \
|
|
|
|
$(B)/tools/rcc/gen.o \
|
|
|
|
$(B)/tools/rcc/init.o \
|
|
|
|
$(B)/tools/rcc/inits.o \
|
|
|
|
$(B)/tools/rcc/input.o \
|
|
|
|
$(B)/tools/rcc/lex.o \
|
|
|
|
$(B)/tools/rcc/list.o \
|
|
|
|
$(B)/tools/rcc/main.o \
|
|
|
|
$(B)/tools/rcc/null.o \
|
|
|
|
$(B)/tools/rcc/output.o \
|
|
|
|
$(B)/tools/rcc/prof.o \
|
|
|
|
$(B)/tools/rcc/profio.o \
|
|
|
|
$(B)/tools/rcc/simp.o \
|
|
|
|
$(B)/tools/rcc/stmt.o \
|
|
|
|
$(B)/tools/rcc/string.o \
|
|
|
|
$(B)/tools/rcc/sym.o \
|
|
|
|
$(B)/tools/rcc/symbolic.o \
|
|
|
|
$(B)/tools/rcc/trace.o \
|
|
|
|
$(B)/tools/rcc/tree.o \
|
|
|
|
$(B)/tools/rcc/types.o
|
|
|
|
|
|
|
|
$(DAGCHECK_C): $(LBURG) $(Q3LCCSRCDIR)/dagcheck.md
|
|
|
|
$(echo_cmd) "LBURG $(Q3LCCSRCDIR)/dagcheck.md"
|
|
|
|
$(Q)$(LBURG) $(Q3LCCSRCDIR)/dagcheck.md $@
|
|
|
|
|
|
|
|
$(B)/tools/rcc/dagcheck.o: $(DAGCHECK_C)
|
|
|
|
$(DO_TOOLS_CC_DAGCHECK)
|
|
|
|
|
|
|
|
$(B)/tools/rcc/%.o: $(Q3LCCSRCDIR)/%.c
|
|
|
|
$(DO_TOOLS_CC)
|
|
|
|
|
|
|
|
$(Q3RCC): $(Q3RCCOBJ)
|
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ $(TOOLS_LIBS)
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
Q3CPPOBJ = \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/tools/cpp/cpp.o \
|
|
|
|
$(B)/tools/cpp/lex.o \
|
|
|
|
$(B)/tools/cpp/nlist.o \
|
|
|
|
$(B)/tools/cpp/tokens.o \
|
|
|
|
$(B)/tools/cpp/macro.o \
|
|
|
|
$(B)/tools/cpp/eval.o \
|
|
|
|
$(B)/tools/cpp/include.o \
|
|
|
|
$(B)/tools/cpp/hideset.o \
|
|
|
|
$(B)/tools/cpp/getopt.o \
|
|
|
|
$(B)/tools/cpp/unix.o
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
$(B)/tools/cpp/%.o: $(Q3CPPDIR)/%.c
|
|
|
|
$(DO_TOOLS_CC)
|
|
|
|
|
|
|
|
$(Q3CPP): $(Q3CPPOBJ)
|
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ $(TOOLS_LIBS)
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
Q3LCCOBJ = \
|
|
|
|
$(B)/tools/etc/lcc.o \
|
|
|
|
$(B)/tools/etc/bytecode.o
|
|
|
|
|
|
|
|
$(B)/tools/etc/%.o: $(Q3LCCETCDIR)/%.c
|
|
|
|
$(DO_TOOLS_CC)
|
|
|
|
|
|
|
|
$(Q3LCC): $(Q3LCCOBJ) $(Q3RCC) $(Q3CPP)
|
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $(Q3LCCOBJ) $(TOOLS_LIBS)
|
2005-10-08 14:36:15 +00:00
|
|
|
|
2007-07-16 23:30:53 +00:00
|
|
|
define DO_Q3LCC
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3LCC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(BASEGAME_CFLAGS) -o $@ $<
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
2008-03-17 16:47:40 +00:00
|
|
|
define DO_CGAME_Q3LCC
|
|
|
|
$(echo_cmd) "CGAME_Q3LCC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(BASEGAME_CFLAGS) -DCGAME -o $@ $<
|
2008-03-17 16:47:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_GAME_Q3LCC
|
|
|
|
$(echo_cmd) "GAME_Q3LCC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(BASEGAME_CFLAGS) -DQAGAME -o $@ $<
|
2008-03-17 16:47:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_UI_Q3LCC
|
|
|
|
$(echo_cmd) "UI_Q3LCC $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(BASEGAME_CFLAGS) -DUI -o $@ $<
|
2008-03-17 16:47:40 +00:00
|
|
|
endef
|
|
|
|
|
2007-07-16 23:30:53 +00:00
|
|
|
define DO_Q3LCC_MISSIONPACK
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3LCC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(MISSIONPACK_CFLAGS) -o $@ $<
|
2007-07-16 23:30:53 +00:00
|
|
|
endef
|
|
|
|
|
2008-03-17 16:47:40 +00:00
|
|
|
define DO_CGAME_Q3LCC_MISSIONPACK
|
|
|
|
$(echo_cmd) "CGAME_Q3LCC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(MISSIONPACK_CFLAGS) -DCGAME -o $@ $<
|
2008-03-17 16:47:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_GAME_Q3LCC_MISSIONPACK
|
|
|
|
$(echo_cmd) "GAME_Q3LCC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(MISSIONPACK_CFLAGS) -DQAGAME -o $@ $<
|
2008-03-17 16:47:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DO_UI_Q3LCC_MISSIONPACK
|
|
|
|
$(echo_cmd) "UI_Q3LCC_MISSIONPACK $<"
|
2011-10-28 19:12:43 +00:00
|
|
|
$(Q)$(Q3LCC) $(MISSIONPACK_CFLAGS) -DUI -o $@ $<
|
2008-03-17 16:47:40 +00:00
|
|
|
endef
|
|
|
|
|
2005-10-08 14:36:15 +00:00
|
|
|
|
2007-09-12 23:37:33 +00:00
|
|
|
Q3ASMOBJ = \
|
|
|
|
$(B)/tools/asm/q3asm.o \
|
|
|
|
$(B)/tools/asm/cmdlib.o
|
|
|
|
|
|
|
|
$(B)/tools/asm/%.o: $(Q3ASMDIR)/%.c
|
|
|
|
$(DO_TOOLS_CC)
|
|
|
|
|
|
|
|
$(Q3ASM): $(Q3ASMOBJ)
|
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ $(TOOLS_LIBS)
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
# CLIENT/SERVER
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
Q3OBJ = \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/client/cl_cgame.o \
|
|
|
|
$(B)/client/cl_cin.o \
|
|
|
|
$(B)/client/cl_console.o \
|
|
|
|
$(B)/client/cl_input.o \
|
|
|
|
$(B)/client/cl_keys.o \
|
|
|
|
$(B)/client/cl_main.o \
|
|
|
|
$(B)/client/cl_net_chan.o \
|
|
|
|
$(B)/client/cl_parse.o \
|
|
|
|
$(B)/client/cl_scrn.o \
|
|
|
|
$(B)/client/cl_ui.o \
|
2006-01-04 03:12:12 +00:00
|
|
|
$(B)/client/cl_avi.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
\
|
|
|
|
$(B)/client/cm_load.o \
|
|
|
|
$(B)/client/cm_patch.o \
|
|
|
|
$(B)/client/cm_polylib.o \
|
|
|
|
$(B)/client/cm_test.o \
|
|
|
|
$(B)/client/cm_trace.o \
|
|
|
|
\
|
|
|
|
$(B)/client/cmd.o \
|
|
|
|
$(B)/client/common.o \
|
|
|
|
$(B)/client/cvar.o \
|
|
|
|
$(B)/client/files.o \
|
|
|
|
$(B)/client/md4.o \
|
2006-04-22 22:21:56 +00:00
|
|
|
$(B)/client/md5.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/client/msg.o \
|
|
|
|
$(B)/client/net_chan.o \
|
2007-08-28 16:42:13 +00:00
|
|
|
$(B)/client/net_ip.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/client/huffman.o \
|
|
|
|
\
|
|
|
|
$(B)/client/snd_adpcm.o \
|
|
|
|
$(B)/client/snd_dma.o \
|
|
|
|
$(B)/client/snd_mem.o \
|
|
|
|
$(B)/client/snd_mix.o \
|
|
|
|
$(B)/client/snd_wavelet.o \
|
|
|
|
\
|
2005-11-13 18:58:14 +00:00
|
|
|
$(B)/client/snd_main.o \
|
|
|
|
$(B)/client/snd_codec.o \
|
|
|
|
$(B)/client/snd_codec_wav.o \
|
2006-01-06 17:36:03 +00:00
|
|
|
$(B)/client/snd_codec_ogg.o \
|
2005-11-13 18:58:14 +00:00
|
|
|
\
|
|
|
|
$(B)/client/qal.o \
|
|
|
|
$(B)/client/snd_openal.o \
|
|
|
|
\
|
2006-09-11 16:41:55 +00:00
|
|
|
$(B)/client/cl_curl.o \
|
|
|
|
\
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/client/sv_bot.o \
|
|
|
|
$(B)/client/sv_ccmds.o \
|
|
|
|
$(B)/client/sv_client.o \
|
|
|
|
$(B)/client/sv_game.o \
|
|
|
|
$(B)/client/sv_init.o \
|
|
|
|
$(B)/client/sv_main.o \
|
|
|
|
$(B)/client/sv_net_chan.o \
|
|
|
|
$(B)/client/sv_snapshot.o \
|
|
|
|
$(B)/client/sv_world.o \
|
|
|
|
\
|
|
|
|
$(B)/client/q_math.o \
|
|
|
|
$(B)/client/q_shared.o \
|
|
|
|
\
|
|
|
|
$(B)/client/unzip.o \
|
2009-10-19 14:00:16 +00:00
|
|
|
$(B)/client/ioapi.o \
|
2007-08-23 17:23:15 +00:00
|
|
|
$(B)/client/puff.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/client/vm.o \
|
|
|
|
$(B)/client/vm_interpreted.o \
|
|
|
|
\
|
|
|
|
$(B)/client/be_aas_bspq3.o \
|
|
|
|
$(B)/client/be_aas_cluster.o \
|
|
|
|
$(B)/client/be_aas_debug.o \
|
|
|
|
$(B)/client/be_aas_entity.o \
|
|
|
|
$(B)/client/be_aas_file.o \
|
|
|
|
$(B)/client/be_aas_main.o \
|
|
|
|
$(B)/client/be_aas_move.o \
|
|
|
|
$(B)/client/be_aas_optimize.o \
|
|
|
|
$(B)/client/be_aas_reach.o \
|
|
|
|
$(B)/client/be_aas_route.o \
|
|
|
|
$(B)/client/be_aas_routealt.o \
|
|
|
|
$(B)/client/be_aas_sample.o \
|
|
|
|
$(B)/client/be_ai_char.o \
|
|
|
|
$(B)/client/be_ai_chat.o \
|
|
|
|
$(B)/client/be_ai_gen.o \
|
|
|
|
$(B)/client/be_ai_goal.o \
|
|
|
|
$(B)/client/be_ai_move.o \
|
|
|
|
$(B)/client/be_ai_weap.o \
|
|
|
|
$(B)/client/be_ai_weight.o \
|
|
|
|
$(B)/client/be_ea.o \
|
|
|
|
$(B)/client/be_interface.o \
|
|
|
|
$(B)/client/l_crc.o \
|
|
|
|
$(B)/client/l_libvar.o \
|
|
|
|
$(B)/client/l_log.o \
|
|
|
|
$(B)/client/l_memory.o \
|
|
|
|
$(B)/client/l_precomp.o \
|
|
|
|
$(B)/client/l_script.o \
|
|
|
|
$(B)/client/l_struct.o \
|
2007-09-05 18:17:46 +00:00
|
|
|
\
|
|
|
|
$(B)/client/sdl_input.o \
|
|
|
|
$(B)/client/sdl_snd.o \
|
|
|
|
\
|
2007-11-30 18:32:52 +00:00
|
|
|
$(B)/client/con_log.o \
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/sys_main.o
|
2005-09-23 01:59:42 +00:00
|
|
|
|
2012-02-06 21:05:57 +00:00
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
Q3OBJ += \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/client/con_passive.o
|
2012-02-06 21:05:57 +00:00
|
|
|
else
|
|
|
|
Q3OBJ += \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/client/con_tty.o
|
2012-02-06 21:05:57 +00:00
|
|
|
endif
|
|
|
|
|
2012-10-26 01:23:06 +00:00
|
|
|
Q3R2OBJ = \
|
|
|
|
$(B)/rend2/tr_animation.o \
|
|
|
|
$(B)/rend2/tr_backend.o \
|
|
|
|
$(B)/rend2/tr_bsp.o \
|
|
|
|
$(B)/rend2/tr_cmds.o \
|
|
|
|
$(B)/rend2/tr_curve.o \
|
|
|
|
$(B)/rend2/tr_extramath.o \
|
|
|
|
$(B)/rend2/tr_extensions.o \
|
|
|
|
$(B)/rend2/tr_fbo.o \
|
|
|
|
$(B)/rend2/tr_flares.o \
|
|
|
|
$(B)/rend2/tr_font.o \
|
|
|
|
$(B)/rend2/tr_glsl.o \
|
|
|
|
$(B)/rend2/tr_image.o \
|
|
|
|
$(B)/rend2/tr_image_png.o \
|
|
|
|
$(B)/rend2/tr_image_jpg.o \
|
|
|
|
$(B)/rend2/tr_image_bmp.o \
|
|
|
|
$(B)/rend2/tr_image_tga.o \
|
|
|
|
$(B)/rend2/tr_image_pcx.o \
|
|
|
|
$(B)/rend2/tr_init.o \
|
|
|
|
$(B)/rend2/tr_light.o \
|
|
|
|
$(B)/rend2/tr_main.o \
|
|
|
|
$(B)/rend2/tr_marks.o \
|
|
|
|
$(B)/rend2/tr_mesh.o \
|
|
|
|
$(B)/rend2/tr_model.o \
|
|
|
|
$(B)/rend2/tr_model_iqm.o \
|
|
|
|
$(B)/rend2/tr_noise.o \
|
|
|
|
$(B)/rend2/tr_postprocess.o \
|
|
|
|
$(B)/rend2/tr_scene.o \
|
|
|
|
$(B)/rend2/tr_shade.o \
|
|
|
|
$(B)/rend2/tr_shade_calc.o \
|
|
|
|
$(B)/rend2/tr_shader.o \
|
|
|
|
$(B)/rend2/tr_shadows.o \
|
|
|
|
$(B)/rend2/tr_sky.o \
|
|
|
|
$(B)/rend2/tr_surface.o \
|
|
|
|
$(B)/rend2/tr_vbo.o \
|
|
|
|
$(B)/rend2/tr_world.o \
|
|
|
|
\
|
2013-01-26 21:40:45 +00:00
|
|
|
$(B)/renderer/sdl_gamma.o \
|
|
|
|
$(B)/renderer/sdl_glimp.o
|
2013-01-05 15:35:50 +00:00
|
|
|
|
2012-12-04 01:56:52 +00:00
|
|
|
Q3R2STRINGOBJ = \
|
|
|
|
$(B)/rend2/glsl/bokeh_fp.o \
|
|
|
|
$(B)/rend2/glsl/bokeh_vp.o \
|
|
|
|
$(B)/rend2/glsl/calclevels4x_fp.o \
|
|
|
|
$(B)/rend2/glsl/calclevels4x_vp.o \
|
|
|
|
$(B)/rend2/glsl/depthblur_fp.o \
|
|
|
|
$(B)/rend2/glsl/depthblur_vp.o \
|
|
|
|
$(B)/rend2/glsl/dlight_fp.o \
|
|
|
|
$(B)/rend2/glsl/dlight_vp.o \
|
|
|
|
$(B)/rend2/glsl/down4x_fp.o \
|
|
|
|
$(B)/rend2/glsl/down4x_vp.o \
|
|
|
|
$(B)/rend2/glsl/fogpass_fp.o \
|
|
|
|
$(B)/rend2/glsl/fogpass_vp.o \
|
|
|
|
$(B)/rend2/glsl/generic_fp.o \
|
|
|
|
$(B)/rend2/glsl/generic_vp.o \
|
|
|
|
$(B)/rend2/glsl/lightall_fp.o \
|
|
|
|
$(B)/rend2/glsl/lightall_vp.o \
|
|
|
|
$(B)/rend2/glsl/pshadow_fp.o \
|
|
|
|
$(B)/rend2/glsl/pshadow_vp.o \
|
|
|
|
$(B)/rend2/glsl/shadowfill_fp.o \
|
|
|
|
$(B)/rend2/glsl/shadowfill_vp.o \
|
|
|
|
$(B)/rend2/glsl/shadowmask_fp.o \
|
|
|
|
$(B)/rend2/glsl/shadowmask_vp.o \
|
|
|
|
$(B)/rend2/glsl/ssao_fp.o \
|
|
|
|
$(B)/rend2/glsl/ssao_vp.o \
|
|
|
|
$(B)/rend2/glsl/texturecolor_fp.o \
|
|
|
|
$(B)/rend2/glsl/texturecolor_vp.o \
|
|
|
|
$(B)/rend2/glsl/tonemap_fp.o \
|
|
|
|
$(B)/rend2/glsl/tonemap_vp.o
|
2012-10-26 01:23:06 +00:00
|
|
|
|
2011-08-01 01:19:55 +00:00
|
|
|
Q3ROBJ = \
|
|
|
|
$(B)/renderer/tr_animation.o \
|
|
|
|
$(B)/renderer/tr_backend.o \
|
|
|
|
$(B)/renderer/tr_bsp.o \
|
|
|
|
$(B)/renderer/tr_cmds.o \
|
|
|
|
$(B)/renderer/tr_curve.o \
|
|
|
|
$(B)/renderer/tr_flares.o \
|
|
|
|
$(B)/renderer/tr_font.o \
|
|
|
|
$(B)/renderer/tr_image.o \
|
|
|
|
$(B)/renderer/tr_image_png.o \
|
|
|
|
$(B)/renderer/tr_image_jpg.o \
|
|
|
|
$(B)/renderer/tr_image_bmp.o \
|
|
|
|
$(B)/renderer/tr_image_tga.o \
|
|
|
|
$(B)/renderer/tr_image_pcx.o \
|
|
|
|
$(B)/renderer/tr_init.o \
|
|
|
|
$(B)/renderer/tr_light.o \
|
|
|
|
$(B)/renderer/tr_main.o \
|
|
|
|
$(B)/renderer/tr_marks.o \
|
|
|
|
$(B)/renderer/tr_mesh.o \
|
|
|
|
$(B)/renderer/tr_model.o \
|
|
|
|
$(B)/renderer/tr_model_iqm.o \
|
|
|
|
$(B)/renderer/tr_noise.o \
|
|
|
|
$(B)/renderer/tr_scene.o \
|
|
|
|
$(B)/renderer/tr_shade.o \
|
|
|
|
$(B)/renderer/tr_shade_calc.o \
|
|
|
|
$(B)/renderer/tr_shader.o \
|
|
|
|
$(B)/renderer/tr_shadows.o \
|
|
|
|
$(B)/renderer/tr_sky.o \
|
|
|
|
$(B)/renderer/tr_surface.o \
|
|
|
|
$(B)/renderer/tr_world.o \
|
|
|
|
\
|
2013-01-24 22:53:08 +00:00
|
|
|
$(B)/renderer/sdl_gamma.o \
|
2012-10-26 01:23:06 +00:00
|
|
|
$(B)/renderer/sdl_glimp.o
|
|
|
|
|
2011-08-01 01:19:55 +00:00
|
|
|
ifneq ($(USE_RENDERER_DLOPEN), 0)
|
|
|
|
Q3ROBJ += \
|
|
|
|
$(B)/renderer/q_shared.o \
|
|
|
|
$(B)/renderer/puff.o \
|
|
|
|
$(B)/renderer/q_math.o \
|
|
|
|
$(B)/renderer/tr_subs.o
|
2012-10-26 01:23:06 +00:00
|
|
|
|
|
|
|
Q3R2OBJ += \
|
|
|
|
$(B)/renderer/q_shared.o \
|
|
|
|
$(B)/renderer/puff.o \
|
|
|
|
$(B)/renderer/q_math.o \
|
|
|
|
$(B)/renderer/tr_subs.o
|
2011-08-01 01:19:55 +00:00
|
|
|
endif
|
|
|
|
|
2011-03-12 16:45:15 +00:00
|
|
|
ifneq ($(USE_INTERNAL_JPEG),0)
|
2012-10-26 01:23:06 +00:00
|
|
|
JPGOBJ = \
|
2011-08-01 01:19:55 +00:00
|
|
|
$(B)/renderer/jaricom.o \
|
|
|
|
$(B)/renderer/jcapimin.o \
|
|
|
|
$(B)/renderer/jcapistd.o \
|
|
|
|
$(B)/renderer/jcarith.o \
|
|
|
|
$(B)/renderer/jccoefct.o \
|
|
|
|
$(B)/renderer/jccolor.o \
|
|
|
|
$(B)/renderer/jcdctmgr.o \
|
|
|
|
$(B)/renderer/jchuff.o \
|
|
|
|
$(B)/renderer/jcinit.o \
|
|
|
|
$(B)/renderer/jcmainct.o \
|
|
|
|
$(B)/renderer/jcmarker.o \
|
|
|
|
$(B)/renderer/jcmaster.o \
|
|
|
|
$(B)/renderer/jcomapi.o \
|
|
|
|
$(B)/renderer/jcparam.o \
|
|
|
|
$(B)/renderer/jcprepct.o \
|
|
|
|
$(B)/renderer/jcsample.o \
|
|
|
|
$(B)/renderer/jctrans.o \
|
|
|
|
$(B)/renderer/jdapimin.o \
|
|
|
|
$(B)/renderer/jdapistd.o \
|
|
|
|
$(B)/renderer/jdarith.o \
|
|
|
|
$(B)/renderer/jdatadst.o \
|
|
|
|
$(B)/renderer/jdatasrc.o \
|
|
|
|
$(B)/renderer/jdcoefct.o \
|
|
|
|
$(B)/renderer/jdcolor.o \
|
|
|
|
$(B)/renderer/jddctmgr.o \
|
|
|
|
$(B)/renderer/jdhuff.o \
|
|
|
|
$(B)/renderer/jdinput.o \
|
|
|
|
$(B)/renderer/jdmainct.o \
|
|
|
|
$(B)/renderer/jdmarker.o \
|
|
|
|
$(B)/renderer/jdmaster.o \
|
|
|
|
$(B)/renderer/jdmerge.o \
|
|
|
|
$(B)/renderer/jdpostct.o \
|
|
|
|
$(B)/renderer/jdsample.o \
|
|
|
|
$(B)/renderer/jdtrans.o \
|
|
|
|
$(B)/renderer/jerror.o \
|
|
|
|
$(B)/renderer/jfdctflt.o \
|
|
|
|
$(B)/renderer/jfdctfst.o \
|
|
|
|
$(B)/renderer/jfdctint.o \
|
|
|
|
$(B)/renderer/jidctflt.o \
|
|
|
|
$(B)/renderer/jidctfst.o \
|
|
|
|
$(B)/renderer/jidctint.o \
|
|
|
|
$(B)/renderer/jmemmgr.o \
|
|
|
|
$(B)/renderer/jmemnobs.o \
|
|
|
|
$(B)/renderer/jquant1.o \
|
|
|
|
$(B)/renderer/jquant2.o \
|
|
|
|
$(B)/renderer/jutils.o
|
2011-03-12 16:45:15 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-23 01:59:42 +00:00
|
|
|
ifeq ($(ARCH),i386)
|
2006-01-06 00:33:24 +00:00
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/snd_mixa.o \
|
|
|
|
$(B)/client/matha.o \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/snapvector.o \
|
|
|
|
$(B)/client/ftola.o
|
2005-09-23 01:59:42 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86)
|
2006-01-06 00:33:24 +00:00
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/snd_mixa.o \
|
|
|
|
$(B)/client/matha.o \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/snapvector.o \
|
|
|
|
$(B)/client/ftola.o
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/snapvector.o \
|
|
|
|
$(B)/client/ftola.o
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),amd64)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/snapvector.o \
|
|
|
|
$(B)/client/ftola.o
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x64)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/snapvector.o \
|
|
|
|
$(B)/client/ftola.o
|
2005-09-23 01:59:42 +00:00
|
|
|
endif
|
|
|
|
|
2008-07-16 07:15:09 +00:00
|
|
|
ifeq ($(USE_VOIP),1)
|
2008-06-05 08:55:08 +00:00
|
|
|
ifeq ($(USE_INTERNAL_SPEEX),1)
|
2008-06-02 06:46:41 +00:00
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/bits.o \
|
|
|
|
$(B)/client/buffer.o \
|
|
|
|
$(B)/client/cb_search.o \
|
|
|
|
$(B)/client/exc_10_16_table.o \
|
|
|
|
$(B)/client/exc_10_32_table.o \
|
|
|
|
$(B)/client/exc_20_32_table.o \
|
|
|
|
$(B)/client/exc_5_256_table.o \
|
|
|
|
$(B)/client/exc_5_64_table.o \
|
|
|
|
$(B)/client/exc_8_128_table.o \
|
|
|
|
$(B)/client/fftwrap.o \
|
|
|
|
$(B)/client/filterbank.o \
|
|
|
|
$(B)/client/filters.o \
|
|
|
|
$(B)/client/gain_table.o \
|
|
|
|
$(B)/client/gain_table_lbr.o \
|
|
|
|
$(B)/client/hexc_10_32_table.o \
|
|
|
|
$(B)/client/hexc_table.o \
|
|
|
|
$(B)/client/high_lsp_tables.o \
|
|
|
|
$(B)/client/jitter.o \
|
|
|
|
$(B)/client/kiss_fft.o \
|
|
|
|
$(B)/client/kiss_fftr.o \
|
|
|
|
$(B)/client/lpc.o \
|
|
|
|
$(B)/client/lsp.o \
|
|
|
|
$(B)/client/lsp_tables_nb.o \
|
|
|
|
$(B)/client/ltp.o \
|
|
|
|
$(B)/client/mdf.o \
|
|
|
|
$(B)/client/modes.o \
|
|
|
|
$(B)/client/modes_wb.o \
|
|
|
|
$(B)/client/nb_celp.o \
|
|
|
|
$(B)/client/preprocess.o \
|
|
|
|
$(B)/client/quant_lsp.o \
|
|
|
|
$(B)/client/resample.o \
|
|
|
|
$(B)/client/sb_celp.o \
|
|
|
|
$(B)/client/smallft.o \
|
|
|
|
$(B)/client/speex.o \
|
|
|
|
$(B)/client/speex_callbacks.o \
|
|
|
|
$(B)/client/speex_header.o \
|
|
|
|
$(B)/client/stereo.o \
|
|
|
|
$(B)/client/vbr.o \
|
|
|
|
$(B)/client/vq.o \
|
|
|
|
$(B)/client/window.o
|
|
|
|
endif
|
2008-07-16 07:15:09 +00:00
|
|
|
endif
|
2008-06-02 06:46:41 +00:00
|
|
|
|
2009-10-19 14:00:16 +00:00
|
|
|
ifeq ($(USE_INTERNAL_ZLIB),1)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/adler32.o \
|
|
|
|
$(B)/client/crc32.o \
|
|
|
|
$(B)/client/inffast.o \
|
|
|
|
$(B)/client/inflate.o \
|
|
|
|
$(B)/client/inftrees.o \
|
|
|
|
$(B)/client/zutil.o
|
|
|
|
endif
|
2008-06-02 06:46:41 +00:00
|
|
|
|
2006-06-06 18:09:09 +00:00
|
|
|
ifeq ($(HAVE_VM_COMPILED),true)
|
|
|
|
ifeq ($(ARCH),i386)
|
2011-06-01 15:17:18 +00:00
|
|
|
Q3OBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/vm_x86.o
|
2006-06-06 18:09:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86)
|
2011-06-01 15:17:18 +00:00
|
|
|
Q3OBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/vm_x86.o
|
2006-06-06 18:09:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
2011-06-01 15:17:18 +00:00
|
|
|
ifeq ($(USE_OLD_VM64),1)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/vm_x86_64.o \
|
|
|
|
$(B)/client/vm_x86_64_assembler.o
|
|
|
|
else
|
|
|
|
Q3OBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/vm_x86.o
|
2011-06-01 15:17:18 +00:00
|
|
|
endif
|
2006-06-06 18:09:09 +00:00
|
|
|
endif
|
2010-01-07 19:53:52 +00:00
|
|
|
ifeq ($(ARCH),amd64)
|
2011-06-01 15:17:18 +00:00
|
|
|
ifeq ($(USE_OLD_VM64),1)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/vm_x86_64.o \
|
|
|
|
$(B)/client/vm_x86_64_assembler.o
|
|
|
|
else
|
|
|
|
Q3OBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/vm_x86.o
|
2011-06-01 15:17:18 +00:00
|
|
|
endif
|
2010-01-07 19:53:52 +00:00
|
|
|
endif
|
2010-03-19 08:59:22 +00:00
|
|
|
ifeq ($(ARCH),x64)
|
2011-06-01 15:17:18 +00:00
|
|
|
ifeq ($(USE_OLD_VM64),1)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/vm_x86_64.o \
|
|
|
|
$(B)/client/vm_x86_64_assembler.o
|
|
|
|
else
|
|
|
|
Q3OBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/client/vm_x86.o
|
2011-06-01 15:17:18 +00:00
|
|
|
endif
|
2010-03-19 08:59:22 +00:00
|
|
|
endif
|
2006-06-06 18:09:09 +00:00
|
|
|
ifeq ($(ARCH),ppc)
|
2008-11-10 09:46:41 +00:00
|
|
|
Q3OBJ += $(B)/client/vm_powerpc.o $(B)/client/vm_powerpc_asm.o
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),ppc64)
|
|
|
|
Q3OBJ += $(B)/client/vm_powerpc.o $(B)/client/vm_powerpc_asm.o
|
2005-09-23 01:59:42 +00:00
|
|
|
endif
|
2009-03-02 17:29:46 +00:00
|
|
|
ifeq ($(ARCH),sparc)
|
|
|
|
Q3OBJ += $(B)/client/vm_sparc.o
|
|
|
|
endif
|
2005-09-23 01:59:42 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2005-09-22 03:21:33 +00:00
|
|
|
ifeq ($(PLATFORM),mingw32)
|
2005-12-30 17:50:47 +00:00
|
|
|
Q3OBJ += \
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/win_resource.o \
|
|
|
|
$(B)/client/sys_win32.o
|
2005-09-22 03:21:33 +00:00
|
|
|
else
|
2006-01-04 03:40:49 +00:00
|
|
|
Q3OBJ += \
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/sys_unix.o
|
|
|
|
endif
|
2005-11-26 07:46:21 +00:00
|
|
|
|
2009-09-15 05:38:27 +00:00
|
|
|
ifeq ($(PLATFORM),darwin)
|
|
|
|
Q3OBJ += \
|
2010-02-15 16:20:33 +00:00
|
|
|
$(B)/client/sys_osx.o
|
2009-09-15 05:38:27 +00:00
|
|
|
endif
|
|
|
|
|
2008-05-30 17:19:31 +00:00
|
|
|
ifeq ($(USE_MUMBLE),1)
|
|
|
|
Q3OBJ += \
|
|
|
|
$(B)/client/libmumblelink.o
|
|
|
|
endif
|
|
|
|
|
2011-08-01 01:19:55 +00:00
|
|
|
ifneq ($(USE_RENDERER_DLOPEN),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(CLIENTBIN)$(FULLBINEXT): $(Q3OBJ) $(LIBSDLMAIN)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) \
|
2011-08-01 01:19:55 +00:00
|
|
|
-o $@ $(Q3OBJ) \
|
2008-11-02 17:32:21 +00:00
|
|
|
$(LIBSDLMAIN) $(CLIENT_LIBS) $(LIBS)
|
2005-09-23 01:59:42 +00:00
|
|
|
|
2013-01-24 22:53:08 +00:00
|
|
|
$(B)/renderer_opengl1_$(SHLIBNAME): $(Q3ROBJ) $(JPGOBJ)
|
2011-08-01 01:19:55 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2013-01-24 22:53:08 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3ROBJ) $(JPGOBJ) \
|
2011-08-01 11:53:59 +00:00
|
|
|
$(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS)
|
2012-10-26 01:23:06 +00:00
|
|
|
|
2013-01-24 22:53:08 +00:00
|
|
|
$(B)/renderer_rend2_$(SHLIBNAME): $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ)
|
2012-10-26 01:23:06 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2013-01-24 22:53:08 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ) \
|
2012-10-26 01:23:06 +00:00
|
|
|
$(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS)
|
2011-08-01 01:19:55 +00:00
|
|
|
else
|
2013-01-24 22:53:08 +00:00
|
|
|
$(B)/$(CLIENTBIN)$(FULLBINEXT): $(Q3OBJ) $(Q3ROBJ) $(JPGOBJ) $(LIBSDLMAIN)
|
2012-10-28 21:04:41 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
|
|
|
$(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) \
|
2013-01-24 22:53:08 +00:00
|
|
|
-o $@ $(Q3OBJ) $(Q3ROBJ) $(JPGOBJ) \
|
2012-10-28 21:04:41 +00:00
|
|
|
$(LIBSDLMAIN) $(CLIENT_LIBS) $(RENDERER_LIBS) $(LIBS)
|
|
|
|
|
2013-01-24 22:53:08 +00:00
|
|
|
$(B)/$(CLIENTBIN)_rend2$(FULLBINEXT): $(Q3OBJ) $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ) $(LIBSDLMAIN)
|
2011-08-01 01:19:55 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
|
|
|
$(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) \
|
2013-01-24 22:53:08 +00:00
|
|
|
-o $@ $(Q3OBJ) $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ) \
|
2011-08-01 13:10:35 +00:00
|
|
|
$(LIBSDLMAIN) $(CLIENT_LIBS) $(RENDERER_LIBS) $(LIBS)
|
2011-08-01 01:19:55 +00:00
|
|
|
endif
|
2005-11-26 07:46:21 +00:00
|
|
|
|
|
|
|
ifneq ($(strip $(LIBSDLMAIN)),)
|
|
|
|
ifneq ($(strip $(LIBSDLMAINSRC)),)
|
|
|
|
$(LIBSDLMAIN) : $(LIBSDLMAINSRC)
|
|
|
|
cp $< $@
|
|
|
|
ranlib $@
|
|
|
|
endif
|
|
|
|
endif
|
2005-09-23 01:59:42 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
#############################################################################
|
2005-09-23 01:59:42 +00:00
|
|
|
# DEDICATED SERVER
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
Q3DOBJ = \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/ded/sv_bot.o \
|
|
|
|
$(B)/ded/sv_client.o \
|
|
|
|
$(B)/ded/sv_ccmds.o \
|
|
|
|
$(B)/ded/sv_game.o \
|
|
|
|
$(B)/ded/sv_init.o \
|
|
|
|
$(B)/ded/sv_main.o \
|
|
|
|
$(B)/ded/sv_net_chan.o \
|
|
|
|
$(B)/ded/sv_snapshot.o \
|
|
|
|
$(B)/ded/sv_world.o \
|
|
|
|
\
|
|
|
|
$(B)/ded/cm_load.o \
|
|
|
|
$(B)/ded/cm_patch.o \
|
|
|
|
$(B)/ded/cm_polylib.o \
|
|
|
|
$(B)/ded/cm_test.o \
|
|
|
|
$(B)/ded/cm_trace.o \
|
|
|
|
$(B)/ded/cmd.o \
|
|
|
|
$(B)/ded/common.o \
|
|
|
|
$(B)/ded/cvar.o \
|
|
|
|
$(B)/ded/files.o \
|
|
|
|
$(B)/ded/md4.o \
|
|
|
|
$(B)/ded/msg.o \
|
|
|
|
$(B)/ded/net_chan.o \
|
2007-08-28 16:42:13 +00:00
|
|
|
$(B)/ded/net_ip.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/ded/huffman.o \
|
|
|
|
\
|
|
|
|
$(B)/ded/q_math.o \
|
|
|
|
$(B)/ded/q_shared.o \
|
|
|
|
\
|
|
|
|
$(B)/ded/unzip.o \
|
2009-10-19 14:00:16 +00:00
|
|
|
$(B)/ded/ioapi.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
$(B)/ded/vm.o \
|
|
|
|
$(B)/ded/vm_interpreted.o \
|
|
|
|
\
|
|
|
|
$(B)/ded/be_aas_bspq3.o \
|
|
|
|
$(B)/ded/be_aas_cluster.o \
|
|
|
|
$(B)/ded/be_aas_debug.o \
|
|
|
|
$(B)/ded/be_aas_entity.o \
|
|
|
|
$(B)/ded/be_aas_file.o \
|
|
|
|
$(B)/ded/be_aas_main.o \
|
|
|
|
$(B)/ded/be_aas_move.o \
|
|
|
|
$(B)/ded/be_aas_optimize.o \
|
|
|
|
$(B)/ded/be_aas_reach.o \
|
|
|
|
$(B)/ded/be_aas_route.o \
|
|
|
|
$(B)/ded/be_aas_routealt.o \
|
|
|
|
$(B)/ded/be_aas_sample.o \
|
|
|
|
$(B)/ded/be_ai_char.o \
|
|
|
|
$(B)/ded/be_ai_chat.o \
|
|
|
|
$(B)/ded/be_ai_gen.o \
|
|
|
|
$(B)/ded/be_ai_goal.o \
|
|
|
|
$(B)/ded/be_ai_move.o \
|
|
|
|
$(B)/ded/be_ai_weap.o \
|
|
|
|
$(B)/ded/be_ai_weight.o \
|
|
|
|
$(B)/ded/be_ea.o \
|
|
|
|
$(B)/ded/be_interface.o \
|
|
|
|
$(B)/ded/l_crc.o \
|
|
|
|
$(B)/ded/l_libvar.o \
|
|
|
|
$(B)/ded/l_log.o \
|
|
|
|
$(B)/ded/l_memory.o \
|
|
|
|
$(B)/ded/l_precomp.o \
|
|
|
|
$(B)/ded/l_script.o \
|
|
|
|
$(B)/ded/l_struct.o \
|
|
|
|
\
|
|
|
|
$(B)/ded/null_client.o \
|
|
|
|
$(B)/ded/null_input.o \
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/ded/null_snddma.o \
|
|
|
|
\
|
2007-11-30 18:32:52 +00:00
|
|
|
$(B)/ded/con_log.o \
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/ded/sys_main.o
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
ifeq ($(ARCH),i386)
|
2006-06-06 18:09:09 +00:00
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/matha.o \
|
|
|
|
$(B)/ded/snapvector.o \
|
|
|
|
$(B)/ded/ftola.o
|
2005-08-26 17:39:27 +00:00
|
|
|
endif
|
2006-08-02 04:01:36 +00:00
|
|
|
ifeq ($(ARCH),x86)
|
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/matha.o \
|
|
|
|
$(B)/ded/snapvector.o \
|
|
|
|
$(B)/ded/ftola.o
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/snapvector.o \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/ded/ftola.o
|
2011-06-13 09:56:39 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),amd64)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/snapvector.o \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/ded/ftola.o
|
2011-06-13 09:56:39 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x64)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/snapvector.o \
|
2013-01-05 15:35:50 +00:00
|
|
|
$(B)/ded/ftola.o
|
2006-08-02 04:01:36 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2009-10-19 14:00:16 +00:00
|
|
|
ifeq ($(USE_INTERNAL_ZLIB),1)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/adler32.o \
|
|
|
|
$(B)/ded/crc32.o \
|
|
|
|
$(B)/ded/inffast.o \
|
|
|
|
$(B)/ded/inflate.o \
|
|
|
|
$(B)/ded/inftrees.o \
|
|
|
|
$(B)/ded/zutil.o
|
|
|
|
endif
|
|
|
|
|
2006-06-06 18:09:09 +00:00
|
|
|
ifeq ($(HAVE_VM_COMPILED),true)
|
|
|
|
ifeq ($(ARCH),i386)
|
2011-06-01 15:17:18 +00:00
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/vm_x86.o
|
2006-06-06 18:09:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86)
|
2011-06-01 15:17:18 +00:00
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/vm_x86.o
|
2006-06-06 18:09:09 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
2011-06-01 15:17:18 +00:00
|
|
|
ifeq ($(USE_OLD_VM64),1)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/vm_x86_64.o \
|
|
|
|
$(B)/ded/vm_x86_64_assembler.o
|
|
|
|
else
|
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/vm_x86.o
|
2011-06-01 15:17:18 +00:00
|
|
|
endif
|
2006-06-06 18:09:09 +00:00
|
|
|
endif
|
2010-01-07 19:53:52 +00:00
|
|
|
ifeq ($(ARCH),amd64)
|
2011-06-01 15:17:18 +00:00
|
|
|
ifeq ($(USE_OLD_VM64),1)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/vm_x86_64.o \
|
|
|
|
$(B)/ded/vm_x86_64_assembler.o
|
|
|
|
else
|
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/vm_x86.o
|
2011-06-01 15:17:18 +00:00
|
|
|
endif
|
2010-01-07 19:53:52 +00:00
|
|
|
endif
|
2010-03-19 08:59:22 +00:00
|
|
|
ifeq ($(ARCH),x64)
|
2011-06-01 15:17:18 +00:00
|
|
|
ifeq ($(USE_OLD_VM64),1)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/vm_x86_64.o \
|
|
|
|
$(B)/ded/vm_x86_64_assembler.o
|
|
|
|
else
|
|
|
|
Q3DOBJ += \
|
2011-06-13 09:56:39 +00:00
|
|
|
$(B)/ded/vm_x86.o
|
2011-06-01 15:17:18 +00:00
|
|
|
endif
|
2010-03-19 08:59:22 +00:00
|
|
|
endif
|
2006-06-06 18:09:09 +00:00
|
|
|
ifeq ($(ARCH),ppc)
|
2008-11-10 09:46:41 +00:00
|
|
|
Q3DOBJ += $(B)/ded/vm_powerpc.o $(B)/ded/vm_powerpc_asm.o
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),ppc64)
|
|
|
|
Q3DOBJ += $(B)/ded/vm_powerpc.o $(B)/ded/vm_powerpc_asm.o
|
2005-08-26 17:39:27 +00:00
|
|
|
endif
|
2009-03-02 17:29:46 +00:00
|
|
|
ifeq ($(ARCH),sparc)
|
|
|
|
Q3DOBJ += $(B)/ded/vm_sparc.o
|
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-06 20:31:30 +00:00
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/win_resource.o \
|
|
|
|
$(B)/ded/sys_win32.o \
|
|
|
|
$(B)/ded/con_win32.o
|
|
|
|
else
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/sys_unix.o \
|
|
|
|
$(B)/ded/con_tty.o
|
|
|
|
endif
|
|
|
|
|
2010-02-15 16:20:33 +00:00
|
|
|
ifeq ($(PLATFORM),darwin)
|
|
|
|
Q3DOBJ += \
|
|
|
|
$(B)/ded/sys_osx.o
|
|
|
|
endif
|
2009-09-15 05:38:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(SERVERBIN)$(FULLBINEXT): $(Q3DOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(Q3DOBJ) $(LIBS)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
## BASEQ3 CGAME
|
|
|
|
#############################################################################
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
Q3CGOBJ_ = \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame/cg_main.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/bg_misc.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/bg_pmove.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/bg_slidemove.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/bg_lib.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_consolecmds.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_draw.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_drawtools.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_effects.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_ents.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_event.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_info.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_localents.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_marks.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_particles.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_players.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_playerstate.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_predict.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_scoreboard.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_servercmds.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_snapshot.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_view.o \
|
|
|
|
$(B)/$(BASEGAME)/cgame/cg_weapons.o \
|
2005-10-26 19:45:21 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/qcommon/q_math.o \
|
|
|
|
$(B)/$(BASEGAME)/qcommon/q_shared.o
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
Q3CGOBJ = $(Q3CGOBJ_) $(B)/$(BASEGAME)/cgame/cg_syscalls.o
|
2007-09-22 20:32:11 +00:00
|
|
|
Q3CGVMOBJ = $(Q3CGOBJ_:%.o=%.asm)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame$(SHLIBNAME): $(Q3CGOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3CGOBJ)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/vm/cgame.qvm: $(Q3CGVMOBJ) $(CGDIR)/cg_syscalls.asm $(Q3ASM)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3ASM $@"
|
|
|
|
$(Q)$(Q3ASM) -o $@ $(Q3CGVMOBJ) $(CGDIR)/cg_syscalls.asm
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
## MISSIONPACK CGAME
|
|
|
|
#############################################################################
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
MPCGOBJ_ = \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_main.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/bg_misc.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/bg_pmove.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/bg_slidemove.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/bg_lib.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_consolecmds.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_newdraw.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_draw.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_drawtools.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_effects.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_ents.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_event.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_info.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_localents.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_marks.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_particles.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_players.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_playerstate.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_predict.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_scoreboard.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_servercmds.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_snapshot.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_view.o \
|
|
|
|
$(B)/$(MISSIONPACK)/cgame/cg_weapons.o \
|
|
|
|
$(B)/$(MISSIONPACK)/ui/ui_shared.o \
|
2005-10-26 19:45:21 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/qcommon/q_math.o \
|
|
|
|
$(B)/$(MISSIONPACK)/qcommon/q_shared.o
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
MPCGOBJ = $(MPCGOBJ_) $(B)/$(MISSIONPACK)/cgame/cg_syscalls.o
|
2007-09-22 20:32:11 +00:00
|
|
|
MPCGVMOBJ = $(MPCGOBJ_:%.o=%.asm)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame$(SHLIBNAME): $(MPCGOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(MPCGOBJ)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/vm/cgame.qvm: $(MPCGVMOBJ) $(CGDIR)/cg_syscalls.asm $(Q3ASM)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3ASM $@"
|
|
|
|
$(Q)$(Q3ASM) -o $@ $(MPCGVMOBJ) $(CGDIR)/cg_syscalls.asm
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
## BASEQ3 GAME
|
|
|
|
#############################################################################
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
Q3GOBJ_ = \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/game/g_main.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_chat.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_cmd.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_dmnet.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_dmq3.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_main.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_team.o \
|
|
|
|
$(B)/$(BASEGAME)/game/ai_vcmd.o \
|
|
|
|
$(B)/$(BASEGAME)/game/bg_misc.o \
|
|
|
|
$(B)/$(BASEGAME)/game/bg_pmove.o \
|
|
|
|
$(B)/$(BASEGAME)/game/bg_slidemove.o \
|
|
|
|
$(B)/$(BASEGAME)/game/bg_lib.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_active.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_arenas.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_bot.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_client.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_cmds.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_combat.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_items.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_mem.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_misc.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_missile.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_mover.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_session.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_spawn.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_svcmds.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_target.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_team.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_trigger.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_utils.o \
|
|
|
|
$(B)/$(BASEGAME)/game/g_weapon.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/qcommon/q_math.o \
|
|
|
|
$(B)/$(BASEGAME)/qcommon/q_shared.o
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
Q3GOBJ = $(Q3GOBJ_) $(B)/$(BASEGAME)/game/g_syscalls.o
|
2007-09-22 20:32:11 +00:00
|
|
|
Q3GVMOBJ = $(Q3GOBJ_:%.o=%.asm)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/qagame$(SHLIBNAME): $(Q3GOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3GOBJ)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/vm/qagame.qvm: $(Q3GVMOBJ) $(GDIR)/g_syscalls.asm $(Q3ASM)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3ASM $@"
|
|
|
|
$(Q)$(Q3ASM) -o $@ $(Q3GVMOBJ) $(GDIR)/g_syscalls.asm
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
## MISSIONPACK GAME
|
|
|
|
#############################################################################
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
MPGOBJ_ = \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/game/g_main.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_chat.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_cmd.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_dmnet.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_dmq3.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_main.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_team.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/ai_vcmd.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/bg_misc.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/bg_pmove.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/bg_slidemove.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/bg_lib.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_active.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_arenas.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_bot.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_client.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_cmds.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_combat.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_items.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_mem.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_misc.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_missile.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_mover.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_session.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_spawn.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_svcmds.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_target.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_team.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_trigger.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_utils.o \
|
|
|
|
$(B)/$(MISSIONPACK)/game/g_weapon.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/qcommon/q_math.o \
|
|
|
|
$(B)/$(MISSIONPACK)/qcommon/q_shared.o
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
MPGOBJ = $(MPGOBJ_) $(B)/$(MISSIONPACK)/game/g_syscalls.o
|
2007-09-22 20:32:11 +00:00
|
|
|
MPGVMOBJ = $(MPGOBJ_:%.o=%.asm)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/qagame$(SHLIBNAME): $(MPGOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
2008-11-02 17:32:21 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(MPGOBJ)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/vm/qagame.qvm: $(MPGVMOBJ) $(GDIR)/g_syscalls.asm $(Q3ASM)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3ASM $@"
|
|
|
|
$(Q)$(Q3ASM) -o $@ $(MPGVMOBJ) $(GDIR)/g_syscalls.asm
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
## BASEQ3 UI
|
|
|
|
#############################################################################
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
Q3UIOBJ_ = \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/ui/ui_main.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/bg_misc.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/bg_lib.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_addbots.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_atoms.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_cdkey.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_cinematics.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_confirm.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_connect.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_controls2.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_credits.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_demo2.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_display.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_gameinfo.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_ingame.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_loadconfig.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_menu.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_mfield.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_mods.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_network.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_options.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_playermodel.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_players.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_playersettings.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_preferences.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_qmenu.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_removebots.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_saveconfig.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_serverinfo.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_servers2.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_setup.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_sound.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_sparena.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_specifyserver.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_splevel.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_sppostgame.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_spskill.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_startserver.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_team.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_teamorders.o \
|
|
|
|
$(B)/$(BASEGAME)/ui/ui_video.o \
|
2005-10-04 23:54:51 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/qcommon/q_math.o \
|
|
|
|
$(B)/$(BASEGAME)/qcommon/q_shared.o
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
Q3UIOBJ = $(Q3UIOBJ_) $(B)/$(MISSIONPACK)/ui/ui_syscalls.o
|
2007-09-22 20:32:11 +00:00
|
|
|
Q3UIVMOBJ = $(Q3UIOBJ_:%.o=%.asm)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/ui$(SHLIBNAME): $(Q3UIOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3UIOBJ)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/vm/ui.qvm: $(Q3UIVMOBJ) $(UIDIR)/ui_syscalls.asm $(Q3ASM)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3ASM $@"
|
|
|
|
$(Q)$(Q3ASM) -o $@ $(Q3UIVMOBJ) $(UIDIR)/ui_syscalls.asm
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
#############################################################################
|
|
|
|
## MISSIONPACK UI
|
|
|
|
#############################################################################
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
MPUIOBJ_ = \
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui/ui_main.o \
|
|
|
|
$(B)/$(MISSIONPACK)/ui/ui_atoms.o \
|
|
|
|
$(B)/$(MISSIONPACK)/ui/ui_gameinfo.o \
|
|
|
|
$(B)/$(MISSIONPACK)/ui/ui_players.o \
|
|
|
|
$(B)/$(MISSIONPACK)/ui/ui_shared.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui/bg_misc.o \
|
|
|
|
$(B)/$(MISSIONPACK)/ui/bg_lib.o \
|
2005-09-23 01:59:42 +00:00
|
|
|
\
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/qcommon/q_math.o \
|
|
|
|
$(B)/$(MISSIONPACK)/qcommon/q_shared.o
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
MPUIOBJ = $(MPUIOBJ_) $(B)/$(MISSIONPACK)/ui/ui_syscalls.o
|
2007-09-22 20:32:11 +00:00
|
|
|
MPUIVMOBJ = $(MPUIOBJ_:%.o=%.asm)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui$(SHLIBNAME): $(MPUIOBJ)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "LD $@"
|
|
|
|
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(MPUIOBJ)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/vm/ui.qvm: $(MPUIVMOBJ) $(UIDIR)/ui_syscalls.asm $(Q3ASM)
|
2007-08-27 07:02:54 +00:00
|
|
|
$(echo_cmd) "Q3ASM $@"
|
|
|
|
$(Q)$(Q3ASM) -o $@ $(MPUIVMOBJ) $(UIDIR)/ui_syscalls.asm
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
|
2007-07-14 23:57:04 +00:00
|
|
|
#############################################################################
|
|
|
|
## CLIENT/SERVER RULES
|
|
|
|
#############################################################################
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/%.o: $(ASMDIR)/%.s
|
2007-07-14 23:57:04 +00:00
|
|
|
$(DO_AS)
|
|
|
|
|
2011-06-13 09:56:39 +00:00
|
|
|
# k8 so inline assembler knows about SSE
|
|
|
|
$(B)/client/%.o: $(ASMDIR)/%.c
|
|
|
|
$(DO_CC) -march=k8
|
|
|
|
|
2007-07-14 23:57:04 +00:00
|
|
|
$(B)/client/%.o: $(CDIR)/%.c
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
$(B)/client/%.o: $(SDIR)/%.c
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
$(B)/client/%.o: $(CMDIR)/%.c
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
$(B)/client/%.o: $(BLIBDIR)/%.c
|
|
|
|
$(DO_BOT_CC)
|
|
|
|
|
2008-06-01 18:53:28 +00:00
|
|
|
$(B)/client/%.o: $(SPEEXDIR)/%.c
|
|
|
|
$(DO_CC)
|
|
|
|
|
2009-10-19 14:00:16 +00:00
|
|
|
$(B)/client/%.o: $(ZDIR)/%.c
|
|
|
|
$(DO_CC)
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/%.o: $(SDLDIR)/%.c
|
2007-07-14 23:57:04 +00:00
|
|
|
$(DO_CC)
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/%.o: $(SYSDIR)/%.c
|
2007-07-14 23:57:04 +00:00
|
|
|
$(DO_CC)
|
|
|
|
|
2009-09-15 05:38:27 +00:00
|
|
|
$(B)/client/%.o: $(SYSDIR)/%.m
|
|
|
|
$(DO_CC)
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/client/%.o: $(SYSDIR)/%.rc
|
2007-07-14 23:57:04 +00:00
|
|
|
$(DO_WINDRES)
|
|
|
|
|
|
|
|
|
2011-08-01 01:19:55 +00:00
|
|
|
$(B)/renderer/%.o: $(CMDIR)/%.c
|
|
|
|
$(DO_REF_CC)
|
|
|
|
|
|
|
|
$(B)/renderer/%.o: $(SDLDIR)/%.c
|
|
|
|
$(DO_REF_CC)
|
|
|
|
|
|
|
|
$(B)/renderer/%.o: $(JPDIR)/%.c
|
|
|
|
$(DO_REF_CC)
|
|
|
|
|
|
|
|
$(B)/renderer/%.o: $(RDIR)/%.c
|
|
|
|
$(DO_REF_CC)
|
2012-12-04 01:56:52 +00:00
|
|
|
|
|
|
|
$(B)/rend2/glsl/%.c: $(R2DIR)/glsl/%.glsl
|
|
|
|
$(DO_REF_STR)
|
|
|
|
|
|
|
|
$(B)/rend2/glsl/%.o: $(B)/rend2/glsl/%.c
|
|
|
|
$(DO_REF_CC)
|
|
|
|
|
2012-10-26 01:23:06 +00:00
|
|
|
$(B)/rend2/%.o: $(R2DIR)/%.c
|
|
|
|
$(DO_REF_CC)
|
2011-08-01 01:19:55 +00:00
|
|
|
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/ded/%.o: $(ASMDIR)/%.s
|
2007-07-14 23:57:04 +00:00
|
|
|
$(DO_AS)
|
|
|
|
|
2011-06-13 09:56:39 +00:00
|
|
|
# k8 so inline assembler knows about SSE
|
|
|
|
$(B)/ded/%.o: $(ASMDIR)/%.c
|
|
|
|
$(DO_CC) -march=k8
|
|
|
|
|
2007-07-14 23:57:04 +00:00
|
|
|
$(B)/ded/%.o: $(SDIR)/%.c
|
|
|
|
$(DO_DED_CC)
|
|
|
|
|
|
|
|
$(B)/ded/%.o: $(CMDIR)/%.c
|
|
|
|
$(DO_DED_CC)
|
|
|
|
|
2009-10-19 14:00:16 +00:00
|
|
|
$(B)/ded/%.o: $(ZDIR)/%.c
|
|
|
|
$(DO_DED_CC)
|
|
|
|
|
2007-07-14 23:57:04 +00:00
|
|
|
$(B)/ded/%.o: $(BLIBDIR)/%.c
|
|
|
|
$(DO_BOT_CC)
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
$(B)/ded/%.o: $(SYSDIR)/%.c
|
2007-07-14 23:57:04 +00:00
|
|
|
$(DO_DED_CC)
|
|
|
|
|
2009-09-15 05:38:27 +00:00
|
|
|
$(B)/ded/%.o: $(SYSDIR)/%.m
|
|
|
|
$(DO_DED_CC)
|
|
|
|
|
2007-09-06 20:31:30 +00:00
|
|
|
$(B)/ded/%.o: $(SYSDIR)/%.rc
|
|
|
|
$(DO_WINDRES)
|
|
|
|
|
2007-07-14 23:57:04 +00:00
|
|
|
$(B)/ded/%.o: $(NDIR)/%.c
|
|
|
|
$(DO_DED_CC)
|
|
|
|
|
2013-01-03 21:08:28 +00:00
|
|
|
# Extra dependencies to ensure the git version is incorporated
|
|
|
|
ifeq ($(USE_GIT),1)
|
|
|
|
$(B)/client/cl_console.o : .git/index
|
|
|
|
$(B)/client/common.o : .git/index
|
|
|
|
$(B)/ded/common.o : .git/index
|
2007-07-14 23:57:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-10-04 17:45:22 +00:00
|
|
|
#############################################################################
|
|
|
|
## GAME MODULE RULES
|
|
|
|
#############################################################################
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame/bg_%.o: $(GDIR)/bg_%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_CC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame/%.o: $(CGDIR)/%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_CC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame/bg_%.asm: $(GDIR)/bg_%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_Q3LCC)
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/cgame/%.asm: $(CGDIR)/%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_Q3LCC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame/bg_%.o: $(GDIR)/bg_%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_CC_MISSIONPACK)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame/%.o: $(CGDIR)/%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_CC_MISSIONPACK)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame/bg_%.asm: $(GDIR)/bg_%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_Q3LCC_MISSIONPACK)
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/cgame/%.asm: $(CGDIR)/%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_CGAME_Q3LCC_MISSIONPACK)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/game/%.o: $(GDIR)/%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_GAME_CC)
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/game/%.asm: $(GDIR)/%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_GAME_Q3LCC)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/game/%.o: $(GDIR)/%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_GAME_CC_MISSIONPACK)
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/game/%.asm: $(GDIR)/%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_GAME_Q3LCC_MISSIONPACK)
|
|
|
|
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/ui/bg_%.o: $(GDIR)/bg_%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_CC)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/ui/%.o: $(Q3UIDIR)/%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_CC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/ui/bg_%.asm: $(GDIR)/bg_%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_Q3LCC)
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/ui/%.asm: $(Q3UIDIR)/%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_Q3LCC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui/bg_%.o: $(GDIR)/bg_%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_CC_MISSIONPACK)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui/%.o: $(UIDIR)/%.c
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_CC_MISSIONPACK)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui/bg_%.asm: $(GDIR)/bg_%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_Q3LCC_MISSIONPACK)
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/ui/%.asm: $(UIDIR)/%.c $(Q3LCC)
|
2008-03-17 16:47:40 +00:00
|
|
|
$(DO_UI_Q3LCC_MISSIONPACK)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2005-10-04 17:45:22 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/qcommon/%.o: $(CMDIR)/%.c
|
2005-10-26 19:45:21 +00:00
|
|
|
$(DO_SHLIB_CC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(BASEGAME)/qcommon/%.asm: $(CMDIR)/%.c $(Q3LCC)
|
2005-10-26 19:45:21 +00:00
|
|
|
$(DO_Q3LCC)
|
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/qcommon/%.o: $(CMDIR)/%.c
|
2007-07-16 23:30:53 +00:00
|
|
|
$(DO_SHLIB_CC_MISSIONPACK)
|
2005-10-26 19:45:21 +00:00
|
|
|
|
2011-10-28 19:12:43 +00:00
|
|
|
$(B)/$(MISSIONPACK)/qcommon/%.asm: $(CMDIR)/%.c $(Q3LCC)
|
2007-07-16 23:30:53 +00:00
|
|
|
$(DO_Q3LCC_MISSIONPACK)
|
2005-10-26 19:45:21 +00:00
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
# MISC
|
|
|
|
#############################################################################
|
|
|
|
|
2013-01-24 22:53:08 +00:00
|
|
|
OBJ = $(Q3OBJ) $(Q3ROBJ) $(Q3R2OBJ) $(Q3DOBJ) $(JPGOBJ) \
|
2007-09-12 23:37:33 +00:00
|
|
|
$(MPGOBJ) $(Q3GOBJ) $(Q3CGOBJ) $(MPCGOBJ) $(Q3UIOBJ) $(MPUIOBJ) \
|
|
|
|
$(MPGVMOBJ) $(Q3GVMOBJ) $(Q3CGVMOBJ) $(MPCGVMOBJ) $(Q3UIVMOBJ) $(MPUIVMOBJ)
|
|
|
|
TOOLSOBJ = $(LBURGOBJ) $(Q3CPPOBJ) $(Q3RCCOBJ) $(Q3LCCOBJ) $(Q3ASMOBJ)
|
2012-12-04 01:56:52 +00:00
|
|
|
STRINGOBJ = $(Q3R2STRINGOBJ)
|
2007-09-12 23:37:33 +00:00
|
|
|
|
|
|
|
|
2007-07-16 21:34:05 +00:00
|
|
|
copyfiles: release
|
2011-12-10 00:37:59 +00:00
|
|
|
@if [ ! -d $(COPYDIR)/$(BASEGAME) ]; then echo "You need to set COPYDIR to where your Quake3 data is!"; fi
|
2011-08-11 05:51:08 +00:00
|
|
|
ifneq ($(BUILD_GAME_SO),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
ifneq ($(BUILD_BASEGAME),0)
|
|
|
|
-$(MKDIR) -p -m 0755 $(COPYDIR)/$(BASEGAME)
|
|
|
|
endif
|
2011-08-11 05:51:08 +00:00
|
|
|
ifneq ($(BUILD_MISSIONPACK),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
-$(MKDIR) -p -m 0755 $(COPYDIR)/$(MISSIONPACK)
|
2011-08-11 05:51:08 +00:00
|
|
|
endif
|
|
|
|
endif
|
2006-04-29 19:11:37 +00:00
|
|
|
|
|
|
|
ifneq ($(BUILD_CLIENT),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(CLIENTBIN)$(FULLBINEXT) $(COPYBINDIR)/$(CLIENTBIN)$(FULLBINEXT)
|
2011-08-11 05:51:08 +00:00
|
|
|
ifneq ($(USE_RENDERER_DLOPEN),0)
|
2011-08-01 01:19:55 +00:00
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/renderer_opengl1_$(SHLIBNAME) $(COPYBINDIR)/renderer_opengl1_$(SHLIBNAME)
|
2012-10-26 01:23:06 +00:00
|
|
|
ifneq ($(BUILD_RENDERER_REND2),0)
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/renderer_rend2_$(SHLIBNAME) $(COPYBINDIR)/renderer_rend2_$(SHLIBNAME)
|
|
|
|
endif
|
2011-08-11 05:51:08 +00:00
|
|
|
endif
|
2006-04-29 19:11:37 +00:00
|
|
|
endif
|
2005-12-13 02:35:00 +00:00
|
|
|
|
2006-04-29 19:11:37 +00:00
|
|
|
ifneq ($(BUILD_SERVER),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
@if [ -f $(BR)/$(SERVERBIN)$(FULLBINEXT) ]; then \
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(SERVERBIN)$(FULLBINEXT) $(COPYBINDIR)/$(SERVERBIN)$(FULLBINEXT); \
|
2006-04-29 19:11:37 +00:00
|
|
|
fi
|
|
|
|
endif
|
|
|
|
|
2007-07-14 23:57:04 +00:00
|
|
|
ifneq ($(BUILD_GAME_SO),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
ifneq ($(BUILD_BASEGAME),0)
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(BASEGAME)/cgame$(SHLIBNAME) \
|
|
|
|
$(COPYDIR)/$(BASEGAME)/.
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(BASEGAME)/qagame$(SHLIBNAME) \
|
|
|
|
$(COPYDIR)/$(BASEGAME)/.
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(BASEGAME)/ui$(SHLIBNAME) \
|
|
|
|
$(COPYDIR)/$(BASEGAME)/.
|
|
|
|
endif
|
2008-08-22 22:47:26 +00:00
|
|
|
ifneq ($(BUILD_MISSIONPACK),0)
|
2011-10-28 19:12:43 +00:00
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(MISSIONPACK)/cgame$(SHLIBNAME) \
|
|
|
|
$(COPYDIR)/$(MISSIONPACK)/.
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(MISSIONPACK)/qagame$(SHLIBNAME) \
|
|
|
|
$(COPYDIR)/$(MISSIONPACK)/.
|
|
|
|
$(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/$(MISSIONPACK)/ui$(SHLIBNAME) \
|
|
|
|
$(COPYDIR)/$(MISSIONPACK)/.
|
2008-08-22 22:47:26 +00:00
|
|
|
endif
|
2006-04-29 19:11:37 +00:00
|
|
|
endif
|
|
|
|
|
2006-03-24 21:48:44 +00:00
|
|
|
clean: clean-debug clean-release
|
2008-04-15 14:19:03 +00:00
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
@$(MAKE) -C $(NSISDIR) clean
|
|
|
|
else
|
2007-07-15 12:08:11 +00:00
|
|
|
@$(MAKE) -C $(LOKISETUPDIR) clean
|
2008-04-15 14:19:03 +00:00
|
|
|
endif
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
clean-debug:
|
2007-07-16 21:34:05 +00:00
|
|
|
@$(MAKE) clean2 B=$(BD)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
clean-release:
|
2007-07-16 21:34:05 +00:00
|
|
|
@$(MAKE) clean2 B=$(BR)
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2007-09-12 23:37:33 +00:00
|
|
|
clean2:
|
|
|
|
@echo "CLEAN $(B)"
|
|
|
|
@rm -f $(OBJ)
|
|
|
|
@rm -f $(OBJ_D_FILES)
|
2012-12-04 01:56:52 +00:00
|
|
|
@rm -f $(STRINGOBJ)
|
2007-09-12 23:37:33 +00:00
|
|
|
@rm -f $(TARGETS)
|
|
|
|
|
|
|
|
toolsclean: toolsclean-debug toolsclean-release
|
|
|
|
|
|
|
|
toolsclean-debug:
|
|
|
|
@$(MAKE) toolsclean2 B=$(BD)
|
|
|
|
|
|
|
|
toolsclean-release:
|
|
|
|
@$(MAKE) toolsclean2 B=$(BR)
|
|
|
|
|
|
|
|
toolsclean2:
|
|
|
|
@echo "TOOLS_CLEAN $(B)"
|
|
|
|
@rm -f $(TOOLSOBJ)
|
|
|
|
@rm -f $(TOOLSOBJ_D_FILES)
|
|
|
|
@rm -f $(LBURG) $(DAGCHECK_C) $(Q3RCC) $(Q3CPP) $(Q3LCC) $(Q3ASM)
|
2005-10-04 23:54:51 +00:00
|
|
|
|
2006-01-18 16:51:47 +00:00
|
|
|
distclean: clean toolsclean
|
2007-07-15 12:08:11 +00:00
|
|
|
@rm -rf $(BUILD_DIR)
|
2006-01-18 16:51:47 +00:00
|
|
|
|
2007-07-16 21:34:05 +00:00
|
|
|
installer: release
|
2008-04-15 14:19:03 +00:00
|
|
|
ifeq ($(PLATFORM),mingw32)
|
2011-08-29 15:17:47 +00:00
|
|
|
@$(MAKE) VERSION=$(VERSION) -C $(NSISDIR) V=$(V) \
|
2012-02-07 09:29:13 +00:00
|
|
|
SDLDLL=$(SDLDLL) \
|
2011-08-29 15:17:47 +00:00
|
|
|
USE_RENDERER_DLOPEN=$(USE_RENDERER_DLOPEN) \
|
|
|
|
USE_OPENAL_DLOPEN=$(USE_OPENAL_DLOPEN) \
|
|
|
|
USE_CURL_DLOPEN=$(USE_CURL_DLOPEN) \
|
|
|
|
USE_INTERNAL_SPEEX=$(USE_INTERNAL_SPEEX) \
|
|
|
|
USE_INTERNAL_ZLIB=$(USE_INTERNAL_ZLIB) \
|
|
|
|
USE_INTERNAL_JPEG=$(USE_INTERNAL_JPEG)
|
2008-04-15 14:19:03 +00:00
|
|
|
else
|
2007-08-27 07:02:54 +00:00
|
|
|
@$(MAKE) VERSION=$(VERSION) -C $(LOKISETUPDIR) V=$(V)
|
2008-04-15 14:19:03 +00:00
|
|
|
endif
|
2006-01-15 21:45:57 +00:00
|
|
|
|
|
|
|
dist:
|
2013-01-05 15:35:32 +00:00
|
|
|
git archive --format zip --output $(CLIENTBIN)-$(VERSION).zip HEAD
|
2005-11-27 15:34:16 +00:00
|
|
|
|
2005-09-27 16:35:25 +00:00
|
|
|
#############################################################################
|
2005-09-29 05:25:26 +00:00
|
|
|
# DEPENDENCIES
|
2005-09-27 16:35:25 +00:00
|
|
|
#############################################################################
|
|
|
|
|
2009-10-13 15:22:43 +00:00
|
|
|
ifneq ($(B),)
|
|
|
|
OBJ_D_FILES=$(filter %.d,$(OBJ:%.o=%.d))
|
|
|
|
TOOLSOBJ_D_FILES=$(filter %.d,$(TOOLSOBJ:%.o=%.d))
|
|
|
|
-include $(OBJ_D_FILES) $(TOOLSOBJ_D_FILES)
|
|
|
|
endif
|
2006-01-15 21:45:57 +00:00
|
|
|
|
2007-07-16 21:34:05 +00:00
|
|
|
.PHONY: all clean clean2 clean-debug clean-release copyfiles \
|
2007-11-25 23:41:01 +00:00
|
|
|
debug default dist distclean installer makedirs \
|
2007-09-12 23:37:33 +00:00
|
|
|
release targets \
|
2009-10-13 15:22:43 +00:00
|
|
|
toolsclean toolsclean2 toolsclean-debug toolsclean-release \
|
|
|
|
$(OBJ_D_FILES) $(TOOLSOBJ_D_FILES)
|