2009-02-28 14:41:18 +00:00
|
|
|
# ------------------------------------------------------ #
|
|
|
|
# Makefile for the "Yamagi Quake 2 Client" #
|
|
|
|
# #
|
|
|
|
# Just type "make" to compile the #
|
|
|
|
# - SDL Client (quake2) #
|
|
|
|
# - Server (quake2ded) #
|
|
|
|
# - SDL OpenGL-Renderer (ref_gl.so) #
|
|
|
|
# - games: #
|
|
|
|
# - Quake II (quake2) #
|
|
|
|
# - Quake II - Threewave Capture The Flag (ctf) #
|
|
|
|
# #
|
|
|
|
# Dependencies: #
|
|
|
|
# - SDL 1.2 #
|
|
|
|
# - libX11 #
|
|
|
|
# - libGL #
|
2009-10-04 15:25:19 +00:00
|
|
|
# - libvorbis #
|
|
|
|
# - libogg #
|
|
|
|
# - zlib #
|
2009-02-28 14:41:18 +00:00
|
|
|
# #
|
|
|
|
# Platforms: #
|
|
|
|
# - Linux #
|
|
|
|
# - FreeBSD #
|
|
|
|
# - Maybe any other POSIX compliant system #
|
|
|
|
# supported by SDL 1.2 #
|
|
|
|
# ------------------------------------------------------ #
|
|
|
|
|
|
|
|
# Check the OS type
|
|
|
|
OSTYPE := $(shell uname -s)
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/amd64/x86_64/)
|
|
|
|
|
|
|
|
ifneq ($(ARCH),i386)
|
|
|
|
ifneq ($(ARCH),x86_64)
|
|
|
|
$(error arch $(ARCH) is currently not supported)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# The compiler and compiler flags
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
ifeq ($(ARCH),i386)
|
2010-01-18 14:57:27 +00:00
|
|
|
CFLAGS_BASE = -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
2010-02-20 08:12:08 +00:00
|
|
|
-fstack-protector-all -Wall -pipe -g
|
2009-02-28 14:41:18 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ARCH),x86_64)
|
2010-01-18 14:57:27 +00:00
|
|
|
CFLAGS_BASE = -O2 -fomit-frame-pointer -fno-strict-aliasing \
|
2010-02-20 08:12:08 +00:00
|
|
|
-fstack-protector-all -Wall -pipe -g
|
2009-02-28 14:41:18 +00:00
|
|
|
endif
|
|
|
|
|
2009-10-03 16:06:45 +00:00
|
|
|
# OGG/Vorbis
|
|
|
|
OGGCFLAGS = -I/usr/include -I/usr/local/include
|
|
|
|
|
2009-03-04 15:12:31 +00:00
|
|
|
# SDL
|
2009-10-04 12:20:37 +00:00
|
|
|
SDLCFLAGS := $(shell sdl-config --cflags)
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-04 15:12:31 +00:00
|
|
|
# Client
|
|
|
|
CFLAGS_CLIENT = $(CFLAGS_BASE)
|
|
|
|
|
|
|
|
# Dedicated Server
|
|
|
|
CFLAGS_DEDICATED_SERVER = $(CFLAGS_BASE)
|
2009-03-16 22:11:31 +00:00
|
|
|
CFLAGS_DEDICATED_SERVER += -DDEDICATED_ONLY
|
2009-03-04 15:12:31 +00:00
|
|
|
|
2009-03-05 09:47:10 +00:00
|
|
|
# OpenGL refresher
|
|
|
|
CFLAGS_OPENGL = $(CFLAGS_BASE)
|
|
|
|
CFLAGS_OPENGL += -I/usr/include -I/usr/local/include -I/usr/X11R6/include
|
2009-03-10 16:46:57 +00:00
|
|
|
CFLAGS_OPENGL += -fPIC
|
|
|
|
|
2009-03-05 16:34:42 +00:00
|
|
|
# Game
|
|
|
|
CFLAGS_GAME = $(CFLAGS_BASE)
|
2009-03-10 16:46:57 +00:00
|
|
|
CFLAGS_GAME += -fPIC
|
2009-03-05 16:34:42 +00:00
|
|
|
|
2009-02-28 14:41:18 +00:00
|
|
|
# ----------
|
|
|
|
|
|
|
|
# The linker and linkerflags
|
|
|
|
|
|
|
|
# Linux
|
|
|
|
ifeq ($(OSTYPE),Linux)
|
|
|
|
LDFLAGS=-lm -ldl
|
|
|
|
endif
|
|
|
|
|
|
|
|
# FreeBSD
|
|
|
|
ifeq ($(OSTYPE),FreeBSD)
|
|
|
|
LDFLAGS=-lm
|
|
|
|
endif
|
|
|
|
|
2009-10-03 16:06:45 +00:00
|
|
|
# OGG/Vorbis
|
|
|
|
OGGLDFLAGS = -lvorbis -lvorbisfile -logg
|
|
|
|
|
2009-02-28 14:41:18 +00:00
|
|
|
# SDL
|
2009-10-04 12:20:37 +00:00
|
|
|
SDLLDFLAGS := $(shell sdl-config --libs)
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-10-03 16:06:45 +00:00
|
|
|
# ZLib
|
2009-10-04 12:20:37 +00:00
|
|
|
ZLIBLDFLAGS = -lz
|
2009-10-03 16:06:45 +00:00
|
|
|
|
2009-03-05 09:47:10 +00:00
|
|
|
# OpenGL
|
2009-03-09 15:46:42 +00:00
|
|
|
OPENGLLDFLAGS = -shared
|
2009-03-05 09:47:10 +00:00
|
|
|
|
2009-03-05 16:34:42 +00:00
|
|
|
# Game
|
|
|
|
GAMELDFLAGS = -shared
|
|
|
|
|
2009-02-28 14:41:18 +00:00
|
|
|
# ----------
|
|
|
|
|
|
|
|
# Targets
|
|
|
|
|
2009-03-09 17:12:35 +00:00
|
|
|
all: client dedicated_server ref_gl baseq2 ctf
|
2009-02-28 14:41:18 +00:00
|
|
|
|
|
|
|
client:
|
|
|
|
@-mkdir -p build \
|
|
|
|
build/client \
|
2009-03-03 13:43:32 +00:00
|
|
|
build/client/console \
|
|
|
|
build/client/input \
|
|
|
|
build/client/menu \
|
|
|
|
build/client/sound \
|
|
|
|
build/common \
|
2009-03-03 14:10:08 +00:00
|
|
|
build/gameabi \
|
2009-03-03 13:43:32 +00:00
|
|
|
build/posix \
|
2009-03-04 15:50:05 +00:00
|
|
|
build/posix/glob \
|
2009-03-04 16:15:53 +00:00
|
|
|
build/posix/vid \
|
2009-04-10 13:11:49 +00:00
|
|
|
build/sdl \
|
2009-03-04 16:24:55 +00:00
|
|
|
build/server \
|
2009-10-03 16:06:45 +00:00
|
|
|
build/unzip \
|
2009-03-04 16:24:55 +00:00
|
|
|
release
|
|
|
|
$(MAKE) release/quake2
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-04 15:12:31 +00:00
|
|
|
dedicated_server:
|
|
|
|
@-mkdir -p build \
|
|
|
|
build/dedicated_server \
|
|
|
|
build/dedicated_server_common \
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_posix \
|
|
|
|
build/dedicated_server_posix/glob \
|
|
|
|
release
|
|
|
|
$(MAKE) release/q2ded
|
2009-03-04 15:12:31 +00:00
|
|
|
|
2009-03-05 16:34:42 +00:00
|
|
|
ref_gl:
|
2009-03-05 09:47:10 +00:00
|
|
|
@-mkdir -p build \
|
|
|
|
build/ref_gl \
|
2009-03-05 11:28:58 +00:00
|
|
|
build/ref_gl_game \
|
2009-03-05 11:03:08 +00:00
|
|
|
build/ref_gl_posix \
|
|
|
|
release
|
2009-03-05 09:47:10 +00:00
|
|
|
$(MAKE) release/ref_gl.so
|
|
|
|
|
2009-03-05 16:34:42 +00:00
|
|
|
baseq2:
|
|
|
|
@-mkdir -p build \
|
|
|
|
build/baseq2 \
|
|
|
|
release \
|
|
|
|
release/baseq2
|
|
|
|
$(MAKE) release/baseq2/game.so
|
|
|
|
|
2009-03-09 16:10:05 +00:00
|
|
|
ctf:
|
|
|
|
@-mkdir -p build \
|
|
|
|
build/ctf \
|
|
|
|
release \
|
|
|
|
release/ctf
|
|
|
|
$(MAKE) release/ctf/game.so
|
|
|
|
|
2009-02-28 14:41:18 +00:00
|
|
|
clean:
|
2009-03-04 16:24:55 +00:00
|
|
|
@-rm -Rf build release
|
2009-02-28 14:41:18 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# Client object
|
|
|
|
CLIENT_OBJS = \
|
2009-02-28 14:41:18 +00:00
|
|
|
build/client/cl_cin.o \
|
2010-06-18 16:15:33 +00:00
|
|
|
build/client/cl_download.o \
|
2010-06-18 15:41:29 +00:00
|
|
|
build/client/cl_effects.o \
|
2010-06-18 15:16:31 +00:00
|
|
|
build/client/cl_entities.o \
|
2009-02-28 14:41:18 +00:00
|
|
|
build/client/cl_input.o \
|
2010-06-18 19:49:58 +00:00
|
|
|
build/client/cl_inventory.o \
|
2010-06-18 15:27:55 +00:00
|
|
|
build/client/cl_lights.o \
|
2009-02-28 14:41:18 +00:00
|
|
|
build/client/cl_main.o \
|
2010-06-18 16:07:51 +00:00
|
|
|
build/client/cl_network.o \
|
2009-02-28 14:41:18 +00:00
|
|
|
build/client/cl_parse.o \
|
2010-06-18 15:38:54 +00:00
|
|
|
build/client/cl_particles.o \
|
2010-06-18 16:37:12 +00:00
|
|
|
build/client/cl_prediction.o \
|
2010-06-18 16:47:10 +00:00
|
|
|
build/client/cl_tempentities.o \
|
2010-06-18 16:45:44 +00:00
|
|
|
build/client/cl_screen.o \
|
2009-02-28 14:41:18 +00:00
|
|
|
build/client/cl_view.o \
|
2009-03-03 13:43:32 +00:00
|
|
|
build/client/console/console.o \
|
|
|
|
build/client/input/keys.o \
|
|
|
|
build/client/menu/menu.o \
|
|
|
|
build/client/menu/qmenu.o \
|
|
|
|
build/client/sound/snd_dma.o \
|
|
|
|
build/client/sound/snd_mem.o \
|
2009-10-03 16:06:45 +00:00
|
|
|
build/client/sound/snd_mix.o \
|
2010-06-19 18:59:33 +00:00
|
|
|
build/client/sound/snd_ogg.o \
|
|
|
|
build/client/sound/snd_wav.o
|
2009-03-03 14:10:08 +00:00
|
|
|
|
|
|
|
# ---------
|
|
|
|
|
|
|
|
# Common objects
|
|
|
|
COMMON_OBJS = \
|
2009-03-03 13:43:32 +00:00
|
|
|
build/common/cmd.o \
|
|
|
|
build/common/cmodel.o \
|
|
|
|
build/common/common.o \
|
|
|
|
build/common/crc.o \
|
|
|
|
build/common/cvar.o \
|
|
|
|
build/common/files.o \
|
|
|
|
build/common/md4.o \
|
|
|
|
build/common/net_chan.o \
|
2010-06-17 15:11:51 +00:00
|
|
|
build/common/pmove.o
|
2009-03-04 15:12:31 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# ----------
|
|
|
|
|
2009-10-03 16:06:45 +00:00
|
|
|
# Unzip Object
|
|
|
|
UNZIP_OBJ = \
|
|
|
|
build/unzip/ioapi.o \
|
|
|
|
build/unzip/unzip.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# Game ABI objets
|
|
|
|
GAME_ABI_OBJS = \
|
|
|
|
build/gameabi/m_flash.o \
|
|
|
|
build/gameabi/q_shared.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# Server objects
|
|
|
|
SERVER_OBJS = \
|
2009-03-03 13:43:32 +00:00
|
|
|
build/server/sv_ccmds.o \
|
|
|
|
build/server/sv_ents.o \
|
|
|
|
build/server/sv_game.o \
|
|
|
|
build/server/sv_init.o \
|
|
|
|
build/server/sv_main.o \
|
|
|
|
build/server/sv_send.o \
|
|
|
|
build/server/sv_user.o \
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_world.o
|
|
|
|
|
|
|
|
# ---------
|
|
|
|
|
2009-03-04 15:12:31 +00:00
|
|
|
# POSIX platform objects
|
2009-03-03 14:10:08 +00:00
|
|
|
POSIX_OBJS = \
|
2009-03-04 16:04:40 +00:00
|
|
|
build/posix/network.o \
|
2009-03-04 15:53:41 +00:00
|
|
|
build/posix/posix.o \
|
2009-03-04 16:04:40 +00:00
|
|
|
build/posix/system.o \
|
2009-03-04 15:50:05 +00:00
|
|
|
build/posix/glob/glob.o \
|
2009-03-04 16:15:53 +00:00
|
|
|
build/posix/vid/menu.o \
|
2009-04-10 13:33:15 +00:00
|
|
|
build/posix/vid/refresh.o
|
2009-03-04 16:15:53 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# ----------
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-04-10 13:11:49 +00:00
|
|
|
# SDL Objects
|
|
|
|
SDL_OBJS= \
|
|
|
|
build/sdl/cd.o \
|
|
|
|
build/sdl/sound.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-04 15:12:31 +00:00
|
|
|
# Dedicated server object
|
|
|
|
DEDICATED_SERVER_OBJS = \
|
|
|
|
build/dedicated_server/sv_ccmds.o \
|
|
|
|
build/dedicated_server/sv_ents.o \
|
|
|
|
build/dedicated_server/sv_game.o \
|
|
|
|
build/dedicated_server/sv_init.o \
|
|
|
|
build/dedicated_server/sv_main.o \
|
|
|
|
build/dedicated_server/sv_send.o \
|
|
|
|
build/dedicated_server/sv_user.o \
|
|
|
|
build/dedicated_server/sv_world.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# Dedicated server common objects
|
|
|
|
DEDICATED_SERVER_COMMON_OBJS = \
|
|
|
|
build/dedicated_server_common/cmd.o \
|
|
|
|
build/dedicated_server_common/cmodel.o \
|
|
|
|
build/dedicated_server_common/common.o \
|
|
|
|
build/dedicated_server_common/crc.o \
|
|
|
|
build/dedicated_server_common/cvar.o \
|
|
|
|
build/dedicated_server_common/files.o \
|
|
|
|
build/dedicated_server_common/md4.o \
|
|
|
|
build/dedicated_server_common/net_chan.o \
|
2010-06-17 15:11:51 +00:00
|
|
|
build/dedicated_server_common/pmove.o
|
2009-03-04 15:12:31 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# Dedicated server POSIX platform objects
|
|
|
|
DEDICATED_SERVER_POSIX_OBJS = \
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_posix/glob/glob.o \
|
|
|
|
build/dedicated_server_posix/network.o \
|
2009-03-04 15:53:41 +00:00
|
|
|
build/dedicated_server_posix/posix.o \
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_posix/system.o
|
2009-03-04 15:12:31 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-05 09:47:10 +00:00
|
|
|
# OpenGL refresher objects
|
|
|
|
OPENGL_OBJS = \
|
|
|
|
build/ref_gl/gl_draw.o \
|
|
|
|
build/ref_gl/gl_image.o \
|
|
|
|
build/ref_gl/gl_light.o \
|
|
|
|
build/ref_gl/gl_mesh.o \
|
|
|
|
build/ref_gl/gl_model.o \
|
|
|
|
build/ref_gl/gl_rmain.o \
|
|
|
|
build/ref_gl/gl_rmisc.o \
|
|
|
|
build/ref_gl/gl_rsurf.o \
|
|
|
|
build/ref_gl/gl_warp.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-05 11:28:58 +00:00
|
|
|
# OpenGL Game ABI
|
|
|
|
OPENGL_GAME_OBJS = \
|
|
|
|
build/ref_gl_game/q_shared.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-05 09:47:10 +00:00
|
|
|
# OpenGL refresher POSIX platform object
|
|
|
|
OPENGL_POSIX_OBJS = \
|
2009-03-05 11:45:23 +00:00
|
|
|
build/ref_gl_posix/abi.o \
|
2009-03-05 11:03:08 +00:00
|
|
|
build/ref_gl_posix/glob.o \
|
2009-03-05 09:47:10 +00:00
|
|
|
build/ref_gl_posix/posix.o \
|
2009-03-05 11:03:08 +00:00
|
|
|
build/ref_gl_posix/qgl.o \
|
2009-03-05 09:47:10 +00:00
|
|
|
build/ref_gl_posix/refresh.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-05 16:34:42 +00:00
|
|
|
# Quake II object
|
|
|
|
BASEQ2_OBJS = \
|
|
|
|
build/baseq2/g_ai.o \
|
|
|
|
build/baseq2/g_chase.o \
|
|
|
|
build/baseq2/g_cmds.o \
|
|
|
|
build/baseq2/g_combat.o \
|
|
|
|
build/baseq2/g_func.o \
|
|
|
|
build/baseq2/g_items.o \
|
|
|
|
build/baseq2/g_main.o \
|
|
|
|
build/baseq2/g_misc.o \
|
|
|
|
build/baseq2/g_monster.o \
|
|
|
|
build/baseq2/g_phys.o \
|
|
|
|
build/baseq2/g_save.o \
|
|
|
|
build/baseq2/g_spawn.o \
|
|
|
|
build/baseq2/g_svcmds.o \
|
|
|
|
build/baseq2/g_target.o \
|
|
|
|
build/baseq2/g_trigger.o \
|
|
|
|
build/baseq2/g_turret.o \
|
|
|
|
build/baseq2/g_utils.o \
|
|
|
|
build/baseq2/g_weapon.o \
|
|
|
|
build/baseq2/m_actor.o \
|
|
|
|
build/baseq2/m_berserk.o \
|
|
|
|
build/baseq2/m_boss2.o \
|
|
|
|
build/baseq2/m_boss3.o \
|
|
|
|
build/baseq2/m_boss31.o \
|
|
|
|
build/baseq2/m_boss32.o \
|
|
|
|
build/baseq2/m_brain.o \
|
|
|
|
build/baseq2/m_chick.o \
|
|
|
|
build/baseq2/m_flash.o \
|
|
|
|
build/baseq2/m_flipper.o \
|
|
|
|
build/baseq2/m_float.o \
|
|
|
|
build/baseq2/m_flyer.o \
|
|
|
|
build/baseq2/m_gladiator.o \
|
|
|
|
build/baseq2/m_gunner.o \
|
|
|
|
build/baseq2/m_hover.o \
|
|
|
|
build/baseq2/m_infantry.o \
|
|
|
|
build/baseq2/m_insane.o \
|
|
|
|
build/baseq2/m_medic.o \
|
|
|
|
build/baseq2/m_move.o \
|
|
|
|
build/baseq2/m_mutant.o \
|
|
|
|
build/baseq2/m_parasite.o \
|
|
|
|
build/baseq2/m_soldier.o \
|
|
|
|
build/baseq2/m_supertank.o \
|
|
|
|
build/baseq2/m_tank.o \
|
|
|
|
build/baseq2/p_client.o \
|
|
|
|
build/baseq2/p_hud.o \
|
|
|
|
build/baseq2/p_trail.o \
|
|
|
|
build/baseq2/p_view.o \
|
|
|
|
build/baseq2/p_weapon.o \
|
|
|
|
build/baseq2/q_shared.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-09 16:10:05 +00:00
|
|
|
# CTF object
|
|
|
|
CTF_OBJS = \
|
|
|
|
build/ctf/g_ai.o \
|
|
|
|
build/ctf/g_chase.o \
|
|
|
|
build/ctf/g_cmds.o \
|
|
|
|
build/ctf/g_combat.o \
|
|
|
|
build/ctf/g_ctf.o \
|
|
|
|
build/ctf/g_func.o \
|
|
|
|
build/ctf/g_items.o \
|
|
|
|
build/ctf/g_main.o \
|
|
|
|
build/ctf/g_misc.o \
|
|
|
|
build/ctf/g_monster.o \
|
|
|
|
build/ctf/g_phys.o \
|
|
|
|
build/ctf/g_save.o \
|
|
|
|
build/ctf/g_spawn.o \
|
|
|
|
build/ctf/g_svcmds.o \
|
|
|
|
build/ctf/g_target.o \
|
|
|
|
build/ctf/g_trigger.o \
|
|
|
|
build/ctf/g_utils.o \
|
|
|
|
build/ctf/g_weapon.o \
|
|
|
|
build/ctf/m_move.o \
|
|
|
|
build/ctf/p_client.o \
|
|
|
|
build/ctf/p_hud.o \
|
|
|
|
build/ctf/p_menu.o \
|
|
|
|
build/ctf/p_trail.o \
|
|
|
|
build/ctf/p_view.o \
|
|
|
|
build/ctf/p_weapon.o \
|
|
|
|
build/ctf/q_shared.o
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# Client build
|
|
|
|
build/client/cl_cin.o : src/client/cl_cin.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2010-06-18 16:15:33 +00:00
|
|
|
build/client/cl_download.o : src/client/cl_download.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
2010-06-18 15:41:29 +00:00
|
|
|
build/client/cl_effects.o : src/client/cl_effects.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2010-06-18 15:41:29 +00:00
|
|
|
|
|
|
|
build/client/cl_entities.o : src/client/cl_entities.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/cl_input.o : src/client/cl_input.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2010-06-18 19:49:58 +00:00
|
|
|
build/client/cl_inventory.o : src/client/cl_inventory.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2010-06-18 15:27:55 +00:00
|
|
|
build/client/cl_lights.o : src/client/cl_lights.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/cl_main.o : src/client/cl_main.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2010-06-18 16:07:51 +00:00
|
|
|
build/client/cl_network.o : src/client/cl_network.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/cl_parse.o : src/client/cl_parse.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2010-06-18 15:38:54 +00:00
|
|
|
|
|
|
|
build/client/cl_particles.o : src/client/cl_particles.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
2010-06-18 16:37:12 +00:00
|
|
|
build/client/cl_prediction.o : src/client/cl_prediction.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2010-06-18 16:47:10 +00:00
|
|
|
build/client/cl_tempentities.o : src/client/cl_tempentities.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2010-06-18 16:45:44 +00:00
|
|
|
build/client/cl_screen.o : src/client/cl_screen.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/cl_view.o : src/client/cl_view.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/console/console.o : src/client/console/console.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/input/keys.o : src/client/input/keys.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/menu/menu.o : src/client/menu/menu.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/menu/qmenu.o : src/client/menu/qmenu.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/sound/snd_dma.o : src/client/sound/snd_dma.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/sound/snd_mem.o : src/client/sound/snd_mem.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/client/sound/snd_mix.o : src/client/sound/snd_mix.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-10-03 16:06:45 +00:00
|
|
|
build/client/sound/snd_ogg.o : src/client/sound/snd_ogg.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) $(OGGCFLAGS) -o $@ -c $<
|
2010-06-19 18:59:33 +00:00
|
|
|
|
|
|
|
build/client/sound/snd_wav.o : src/client/sound/snd_wav.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) $(OGGCFLAGS) -o $@ -c $<
|
2009-10-03 16:06:45 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# ---------
|
|
|
|
|
|
|
|
# Common build
|
|
|
|
build/common/cmd.o : src/common/cmd.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/cmodel.o : src/common/cmodel.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/common.o : src/common/common.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/crc.o : src/common/crc.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/cvar.o : src/common/cvar.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/files.o : src/common/files.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/md4.o : src/common/md4.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/net_chan.o : src/common/net_chan.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/common/pmove.o : src/common/pmove.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-03-03 14:10:08 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-10-03 16:06:45 +00:00
|
|
|
build/unzip/ioapi.o : src/unzip/ioapi.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
|
|
|
build/unzip/unzip.o : src/unzip/unzip.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# Game ABI build
|
2009-04-10 13:39:58 +00:00
|
|
|
build/gameabi/m_flash.o : src/game/baseq2/m_flash.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/gameabi/q_shared.o : src/game/baseq2/q_shared.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# ---------
|
|
|
|
|
|
|
|
# Server build
|
|
|
|
build/server/sv_ccmds.o : src/server/sv_ccmds.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_ents.o : src/server/sv_ents.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_game.o : src/server/sv_game.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_init.o : src/server/sv_init.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_main.o : src/server/sv_main.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_send.o : src/server/sv_send.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_user.o : src/server/sv_user.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
build/server/sv_world.o : src/server/sv_world.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-03-03 14:10:08 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# POSIX build
|
2009-03-05 14:51:44 +00:00
|
|
|
build/posix/network.o : src/posix/network.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/posix/posix.o : src/posix/posix.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/posix/system.o : src/posix/system.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-02-28 14:41:18 +00:00
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/posix/glob/glob.o : src/posix/glob/glob.c
|
2009-03-04 15:50:05 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/posix/vid/menu.o : src/posix/vid/menu.c
|
2009-03-04 16:15:53 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/posix/vid/refresh.o : src/posix/vid/refresh.c
|
2009-03-04 16:15:53 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
2009-04-10 13:11:49 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
build/sdl/cd.o : src/sdl/cd.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) $(SDLCFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
build/sdl/sound.o : src/sdl/sound.c
|
|
|
|
$(CC) $(CFLAGS_CLIENT) $(SDLCFLAGS) -o $@ -c $<
|
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# ----------
|
2009-03-04 15:12:31 +00:00
|
|
|
|
|
|
|
# Dedicated server build
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_ccmds.o : src/server/sv_ccmds.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_ents.o : src/server/sv_ents.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_game.o : src/server/sv_game.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
2009-03-03 14:10:08 +00:00
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_init.o : src/server/sv_init.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_main.o : src/server/sv_main.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_send.o : src/server/sv_send.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_user.o : src/server/sv_user.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server/sv_world.o : src/server/sv_world.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
|
|
|
# ---------
|
|
|
|
|
2009-03-04 15:24:29 +00:00
|
|
|
# Dedicated server common build
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/cmd.o : src/common/cmd.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/cmodel.o : src/common/cmodel.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/common.o : src/common/common.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/crc.o : src/common/crc.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/cvar.o : src/common/cvar.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/files.o : src/common/files.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-04 16:24:55 +00:00
|
|
|
build/dedicated_server_common/md4.o : src/common/md4.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
|
|
|
build/dedicated_server_common/net_chan.o : src/common/net_chan.c
|
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
|
|
|
build/dedicated_server_common/pmove.o : src/common/pmove.c
|
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-03-04 15:24:29 +00:00
|
|
|
# Dedicated server POSIX build
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server_posix/glob/glob.o : src/posix/glob/glob.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server_posix/network.o : src/posix/network.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server_posix/posix.o : src/posix/posix.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/dedicated_server_posix/system.o : src/posix/system.c
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
|
|
|
|
|
|
|
# ----------
|
2009-03-05 09:47:10 +00:00
|
|
|
|
|
|
|
# OpenGL refresher build
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_draw.o: src/refresh/gl_draw.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_image.o: src/refresh/gl_image.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_light.o: src/refresh/gl_light.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_mesh.o: src/refresh/gl_mesh.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_model.o: src/refresh/gl_model.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_rmain.o: src/refresh/gl_rmain.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_rmisc.o: src/refresh/gl_rmisc.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_rsurf.o: src/refresh/gl_rsurf.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl/gl_warp.o: src/refresh/gl_warp.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
2009-03-05 11:28:58 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/ref_gl_game/q_shared.o: src/game/baseq2/q_shared.c
|
2009-03-05 11:32:20 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
2009-03-05 09:47:10 +00:00
|
|
|
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# OpenGL refresher POSIX build
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl_posix/abi.o: src/posix/refresh/abi.c
|
2009-03-05 11:45:23 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl_posix/glob.o: src/posix/glob/glob.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl_posix/posix.o: src/posix/posix.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
2009-03-05 11:03:08 +00:00
|
|
|
|
2009-03-05 14:51:44 +00:00
|
|
|
build/ref_gl_posix/qgl.o: src/posix/refresh/qgl.c
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:11:49 +00:00
|
|
|
build/ref_gl_posix/refresh.o: src/sdl/refresh.c
|
2009-03-05 11:03:08 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) $(SDLCFLAGS) -o $@ -c $<
|
2009-03-05 11:28:58 +00:00
|
|
|
|
2009-03-05 09:47:10 +00:00
|
|
|
# ----------
|
2009-03-05 16:34:42 +00:00
|
|
|
|
|
|
|
# Quake II build
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_ai.o: src/game/baseq2/g_ai.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_chase.o: src/game/baseq2/g_chase.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_cmds.o: src/game/baseq2/g_cmds.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_combat.o: src/game/baseq2/g_combat.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_func.o: src/game/baseq2/g_func.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_items.o: src/game/baseq2/g_items.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_main.o: src/game/baseq2/g_main.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_misc.o: src/game/baseq2/g_misc.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_monster.o: src/game/baseq2/g_monster.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_phys.o: src/game/baseq2/g_phys.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_save.o: src/game/baseq2/g_save.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_spawn.o: src/game/baseq2/g_spawn.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_svcmds.o: src/game/baseq2/g_svcmds.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_target.o: src/game/baseq2/g_target.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_trigger.o: src/game/baseq2/g_trigger.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_turret.o: src/game/baseq2/g_turret.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_utils.o: src/game/baseq2/g_utils.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/g_weapon.o: src/game/baseq2/g_weapon.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_actor.o: src/game/baseq2/m_actor.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_berserk.o: src/game/baseq2/m_berserk.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_boss2.o: src/game/baseq2/m_boss2.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_boss3.o: src/game/baseq2/m_boss3.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_boss31.o: src/game/baseq2/m_boss31.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_boss32.o: src/game/baseq2/m_boss32.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_brain.o: src/game/baseq2/m_brain.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_chick.o: src/game/baseq2/m_chick.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_flash.o: src/game/baseq2/m_flash.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_flipper.o: src/game/baseq2/m_flipper.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_float.o: src/game/baseq2/m_float.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_flyer.o: src/game/baseq2/m_flyer.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_gladiator.o: src/game/baseq2/m_gladiator.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_gunner.o: src/game/baseq2/m_gunner.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_hover.o: src/game/baseq2/m_hover.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_infantry.o: src/game/baseq2/m_infantry.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_insane.o: src/game/baseq2/m_insane.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_medic.o: src/game/baseq2/m_medic.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_move.o: src/game/baseq2/m_move.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_mutant.o: src/game/baseq2/m_mutant.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_parasite.o: src/game/baseq2/m_parasite.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_soldier.o: src/game/baseq2/m_soldier.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_supertank.o: src/game/baseq2/m_supertank.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/m_tank.o: src/game/baseq2/m_tank.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/p_client.o: src/game/baseq2/p_client.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/p_hud.o: src/game/baseq2/p_hud.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/p_trail.o: src/game/baseq2/p_trail.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/p_view.o: src/game/baseq2/p_view.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/p_weapon.o: src/game/baseq2/p_weapon.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
2009-04-10 13:39:58 +00:00
|
|
|
build/baseq2/q_shared.o: src/game/baseq2/q_shared.c
|
2009-03-05 16:34:42 +00:00
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
# ----------
|
2009-03-09 16:10:05 +00:00
|
|
|
|
|
|
|
build/ctf/g_ai.o: src/game/ctf/g_ai.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_chase.o: src/game/ctf/g_chase.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_cmds.o: src/game/ctf/g_cmds.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_combat.o: src/game/ctf/g_combat.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_ctf.o: src/game/ctf/g_ctf.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_func.o: src/game/ctf/g_func.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_items.o: src/game/ctf/g_items.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_main.o: src/game/ctf/g_main.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_misc.o: src/game/ctf/g_misc.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_monster.o: src/game/ctf/g_monster.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_phys.o: src/game/ctf/g_phys.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_save.o: src/game/ctf/g_save.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_spawn.o: src/game/ctf/g_spawn.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_svcmds.o: src/game/ctf/g_svcmds.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_target.o: src/game/ctf/g_target.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_trigger.o: src/game/ctf/g_trigger.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_utils.o: src/game/ctf/g_utils.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/g_weapon.o: src/game/ctf/g_weapon.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/m_move.o: src/game/ctf/m_move.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/p_client.o: src/game/ctf/p_client.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/p_hud.o: src/game/ctf/p_hud.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/p_menu.o: src/game/ctf/p_menu.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/p_trail.o: src/game/ctf/p_trail.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/p_view.o: src/game/ctf/p_view.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/p_weapon.o: src/game/ctf/p_weapon.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
build/ctf/q_shared.o: src/game/ctf/q_shared.c
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
|
|
|
|
|
|
|
# ----------
|
2009-03-04 15:12:31 +00:00
|
|
|
|
2009-03-03 14:10:08 +00:00
|
|
|
# The client
|
2009-03-04 16:24:55 +00:00
|
|
|
release/quake2 : $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
2009-10-03 16:06:45 +00:00
|
|
|
$(UNZIP_OBJ) $(SERVER_OBJS) $(POSIX_OBJS) $(SDL_OBJS)
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_CLIENT) -o $@ $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
2009-10-03 16:06:45 +00:00
|
|
|
$(SERVER_OBJS) $(POSIX_OBJS) $(SDL_OBJS) $(UNZIP_OBJ) $(LDFLAGS) \
|
2009-10-04 12:20:37 +00:00
|
|
|
$(SDLLDFLAGS) $(OGGLDFLAGS) $(ZLIBLDFLAGS)
|
2009-03-04 15:12:31 +00:00
|
|
|
|
|
|
|
# Dedicated Server
|
2009-03-04 16:24:55 +00:00
|
|
|
release/q2ded : $(DEDICATED_SERVER_OBJS) $(DEDICATED_SERVER_COMMON_OBJS) \
|
2009-10-03 16:06:45 +00:00
|
|
|
$(GAME_ABI_OBJS) $(DEDICATED_SERVER_POSIX_OBJS) $(UNZIP_OBJ)
|
2009-03-04 15:12:31 +00:00
|
|
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ $(DEDICATED_SERVER_OBJS) \
|
2009-10-03 16:06:45 +00:00
|
|
|
$(DEDICATED_SERVER_COMMON_OBJS) $(GAME_ABI_OBJS) $(UNZIP_OBJ)\
|
2009-10-04 12:20:37 +00:00
|
|
|
$(DEDICATED_SERVER_POSIX_OBJS) $(LDFLAGS) $(ZLIBLDFLAGS)
|
2009-03-05 09:47:10 +00:00
|
|
|
|
|
|
|
# OpenGL refresher
|
2009-03-05 11:28:58 +00:00
|
|
|
release/ref_gl.so : $(OPENGL_OBJS) $(OPENGL_POSIX_OBJS) $(OPENGL_GAME_OBJS)
|
2009-03-05 09:47:10 +00:00
|
|
|
$(CC) $(CFLAGS_OPENGL) -o $@ $(OPENGL_OBJS) $(OPENGL_POSIX_OBJS) \
|
2009-03-05 11:32:20 +00:00
|
|
|
$(OPENGL_GAME_OBJS) $(LDFLAGS) $(SDLLDFLAGS) $(OPENGLLDFLAGS)
|
2009-03-05 09:47:10 +00:00
|
|
|
|
2009-03-05 16:34:42 +00:00
|
|
|
# Quake II
|
|
|
|
release/baseq2/game.so : $(BASEQ2_OBJS)
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ $(BASEQ2_OBJS) $(LDFLAGS) $(GAMELDFLAGS)
|
|
|
|
|
2009-03-09 16:10:05 +00:00
|
|
|
# Quake II - Three Wave Capture The Flag
|
|
|
|
release/ctf/game.so : $(CTF_OBJS)
|
|
|
|
$(CC) $(CFLAGS_GAME) -o $@ $(CTF_OBJS) $(LDFLAGS) $(GAMELDFLAGS)
|
|
|
|
|