mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Neue Makefile und ein vergessenes Ding gefixt
This commit is contained in:
parent
2ce739fde8
commit
c2bb9ccc32
2 changed files with 199 additions and 51 deletions
244
Makefile
244
Makefile
|
@ -50,19 +50,27 @@ endif
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
ifeq ($(ARCH),i386)
|
ifeq ($(ARCH),i386)
|
||||||
CFLAGS= -O2 -ffast-math -funroll-loops -falign-loops=2 \
|
CFLAGS_BASE = -O2 -ffast-math -funroll-loops -falign-loops=2 \
|
||||||
-falign-jumps=2 -falign-functions=2 -fno-strict-aliasing \
|
-falign-jumps=2 -falign-functions=2 -fno-strict-aliasing \
|
||||||
-Wall -pipe
|
-Wall -pipe
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
ifeq ($(ARCH),x86_64)
|
||||||
CFLAGS = -O2 -ffast-math -funroll-loops -fomit-frame-pointer \
|
CFLAGS_BASE = -O2 -ffast-math -funroll-loops -fomit-frame-pointer \
|
||||||
-fexpensive-optimizations -fno-strict-aliasing \
|
-fexpensive-optimizations -fno-strict-aliasing \
|
||||||
-Wall -pipe
|
-Wall -pipe
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# SDL
|
||||||
SDLCFLAGS = $(shell sdl-config --cflags)
|
SDLCFLAGS = $(shell sdl-config --cflags)
|
||||||
|
|
||||||
|
# Client
|
||||||
|
CFLAGS_CLIENT = $(CFLAGS_BASE)
|
||||||
|
|
||||||
|
# Dedicated Server
|
||||||
|
CFLAGS_DEDICATED_SERVER = $(CFLAGS_BASE)
|
||||||
|
CFLAGS_DEDICATED_SERVER += -DDEDICATED_ONLY
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# The linker and linkerflags
|
# The linker and linkerflags
|
||||||
|
@ -99,6 +107,13 @@ client:
|
||||||
build/server
|
build/server
|
||||||
$(MAKE) build/client/quake2
|
$(MAKE) build/client/quake2
|
||||||
|
|
||||||
|
dedicated_server:
|
||||||
|
@-mkdir -p build \
|
||||||
|
build/dedicated_server \
|
||||||
|
build/dedicated_server_common \
|
||||||
|
build/dedicated_server_posix
|
||||||
|
$(MAKE) build/dedicated_server/q2ded
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@-rm -Rf build
|
@-rm -Rf build
|
||||||
|
|
||||||
|
@ -162,6 +177,7 @@ SERVER_OBJS = \
|
||||||
|
|
||||||
# ---------
|
# ---------
|
||||||
|
|
||||||
|
# POSIX platform objects
|
||||||
POSIX_OBJS = \
|
POSIX_OBJS = \
|
||||||
build/posix/cd_sdl.o \
|
build/posix/cd_sdl.o \
|
||||||
build/posix/glob.o \
|
build/posix/glob.o \
|
||||||
|
@ -174,162 +190,292 @@ POSIX_OBJS = \
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
|
# 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 \
|
||||||
|
build/dedicated_server_common/pmove.o
|
||||||
|
|
||||||
|
# ----------
|
||||||
|
|
||||||
|
# Dedicated server POSIX platform objects
|
||||||
|
DEDICATED_SERVER_POSIX_OBJS = \
|
||||||
|
build/dedicated_server_posix/cd_sdl.o \
|
||||||
|
build/dedicated_server_posix/glob.o \
|
||||||
|
build/dedicated_server_posix/net_udp.o \
|
||||||
|
build/dedicated_server_posix/q_shlinux.o \
|
||||||
|
build/dedicated_server_posix/snd_sdl.o \
|
||||||
|
build/dedicated_server_posix/sys_linux.o \
|
||||||
|
build/dedicated_server_posix/vid_menu.o \
|
||||||
|
build/dedicated_server_posix/vid_so.o
|
||||||
|
|
||||||
|
# ----------
|
||||||
|
|
||||||
# Client build
|
# Client build
|
||||||
build/client/cl_cin.o : src/client/cl_cin.c
|
build/client/cl_cin.o : src/client/cl_cin.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_ents.o : src/client/cl_ents.c
|
build/client/cl_ents.o : src/client/cl_ents.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_fx.o : src/client/cl_fx.c
|
build/client/cl_fx.o : src/client/cl_fx.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_input.o : src/client/cl_input.c
|
build/client/cl_input.o : src/client/cl_input.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_inv.o : src/client/cl_inv.c
|
build/client/cl_inv.o : src/client/cl_inv.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_main.o : src/client/cl_main.c
|
build/client/cl_main.o : src/client/cl_main.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_parse.o : src/client/cl_parse.c
|
build/client/cl_parse.o : src/client/cl_parse.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_pred.o : src/client/cl_pred.c
|
build/client/cl_pred.o : src/client/cl_pred.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_tent.o : src/client/cl_tent.c
|
build/client/cl_tent.o : src/client/cl_tent.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_scrn.o : src/client/cl_scrn.c
|
build/client/cl_scrn.o : src/client/cl_scrn.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_view.o : src/client/cl_view.c
|
build/client/cl_view.o : src/client/cl_view.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/cl_newfx.o : src/client/cl_newfx.c
|
build/client/cl_newfx.o : src/client/cl_newfx.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/console/console.o : src/client/console/console.c
|
build/client/console/console.o : src/client/console/console.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/input/keys.o : src/client/input/keys.c
|
build/client/input/keys.o : src/client/input/keys.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/menu/menu.o : src/client/menu/menu.c
|
build/client/menu/menu.o : src/client/menu/menu.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/menu/qmenu.o : src/client/menu/qmenu.c
|
build/client/menu/qmenu.o : src/client/menu/qmenu.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/sound/snd_dma.o : src/client/sound/snd_dma.c
|
build/client/sound/snd_dma.o : src/client/sound/snd_dma.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/sound/snd_mem.o : src/client/sound/snd_mem.c
|
build/client/sound/snd_mem.o : src/client/sound/snd_mem.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/client/sound/snd_mix.o : src/client/sound/snd_mix.c
|
build/client/sound/snd_mix.o : src/client/sound/snd_mix.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
# ---------
|
# ---------
|
||||||
|
|
||||||
# Common build
|
# Common build
|
||||||
build/common/cmd.o : src/common/cmd.c
|
build/common/cmd.o : src/common/cmd.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/cmodel.o : src/common/cmodel.c
|
build/common/cmodel.o : src/common/cmodel.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/common.o : src/common/common.c
|
build/common/common.o : src/common/common.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/crc.o : src/common/crc.c
|
build/common/crc.o : src/common/crc.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/cvar.o : src/common/cvar.c
|
build/common/cvar.o : src/common/cvar.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/files.o : src/common/files.c
|
build/common/files.o : src/common/files.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/md4.o : src/common/md4.c
|
build/common/md4.o : src/common/md4.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/net_chan.o : src/common/net_chan.c
|
build/common/net_chan.o : src/common/net_chan.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/common/pmove.o : src/common/pmove.c
|
build/common/pmove.o : src/common/pmove.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# Game ABI build
|
# Game ABI build
|
||||||
build/gameabi/m_flash.o : src/game/quake2/m_flash.c
|
build/gameabi/m_flash.o : src/game/quake2/m_flash.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/gameabi/q_shared.o : src/game/quake2/q_shared.c
|
build/gameabi/q_shared.o : src/game/quake2/q_shared.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
# ---------
|
# ---------
|
||||||
|
|
||||||
# Server build
|
# Server build
|
||||||
build/server/sv_ccmds.o : src/server/sv_ccmds.c
|
build/server/sv_ccmds.o : src/server/sv_ccmds.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_ents.o : src/server/sv_ents.c
|
build/server/sv_ents.o : src/server/sv_ents.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_game.o : src/server/sv_game.c
|
build/server/sv_game.o : src/server/sv_game.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_init.o : src/server/sv_init.c
|
build/server/sv_init.o : src/server/sv_init.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_main.o : src/server/sv_main.c
|
build/server/sv_main.o : src/server/sv_main.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_send.o : src/server/sv_send.c
|
build/server/sv_send.o : src/server/sv_send.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_user.o : src/server/sv_user.c
|
build/server/sv_user.o : src/server/sv_user.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/server/sv_world.o : src/server/sv_world.c
|
build/server/sv_world.o : src/server/sv_world.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# POSIX build
|
# POSIX build
|
||||||
build/posix/cd_sdl.o : src/platforms/posix/cd_sdl.c
|
build/posix/cd_sdl.o : src/platforms/posix/cd_sdl.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $< $(SDLCFLAGS)
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(SDLCFLAGS)
|
||||||
|
|
||||||
build/posix/glob.o : src/platforms/posix/glob.c
|
build/posix/glob.o : src/platforms/posix/glob.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/posix/net_udp.o : src/platforms/posix/net_udp.c
|
build/posix/net_udp.o : src/platforms/posix/net_udp.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/posix/q_shlinux.o : src/platforms/posix/q_shlinux.c
|
build/posix/q_shlinux.o : src/platforms/posix/q_shlinux.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/posix/snd_sdl.o : src/platforms/posix/snd_sdl.c
|
build/posix/snd_sdl.o : src/platforms/posix/snd_sdl.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $< $(SDLCFLAGS)
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(SDLCFLAGS)
|
||||||
|
|
||||||
build/posix/sys_linux.o : src/platforms/posix/sys_linux.c
|
build/posix/sys_linux.o : src/platforms/posix/sys_linux.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/posix/vid_menu.o : src/platforms/posix/vid_menu.c
|
build/posix/vid_menu.o : src/platforms/posix/vid_menu.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
build/posix/vid_so.o : src/platforms/posix/vid_so.c
|
build/posix/vid_so.o : src/platforms/posix/vid_so.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||||
|
|
||||||
|
# ----------
|
||||||
|
|
||||||
|
# Dedicated server build
|
||||||
|
build/dedicated_server/sv_ccmds.o : src/server/sv_ccmds.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_ents.o : src/server/sv_ents.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_game.o : src/server/sv_game.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_init.o : src/server/sv_init.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_main.o : src/server/sv_main.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_send.o : src/server/sv_send.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_user.o : src/server/sv_user.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server/sv_world.o : src/server/sv_world.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
# ---------
|
||||||
|
|
||||||
|
# Dedicated server dedicated_server_common build
|
||||||
|
build/dedicated_server_common/cmd.o : src/common/cmd.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_common/cmodel.o : src/common/cmodel.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_common/common.o : src/common/common.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_common/crc.o : src/common/crc.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_common/cvar.o : src/common/cvar.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_common/files.o : src/common/files.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_common/md4.o : src/common/md4.c
|
||||||
|
$(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 $<
|
||||||
|
|
||||||
|
# ----------
|
||||||
|
|
||||||
|
# POSIX build
|
||||||
|
build/dedicated_server_posix/cd_sdl.o : src/platforms/posix/cd_sdl.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $< $(SDLCFLAGS)
|
||||||
|
|
||||||
|
build/dedicated_server_posix/glob.o : src/platforms/posix/glob.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_posix/net_udp.o : src/platforms/posix/net_udp.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_posix/q_shlinux.o : src/platforms/posix/q_shlinux.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_posix/snd_sdl.o : src/platforms/posix/snd_sdl.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $< $(SDLCFLAGS)
|
||||||
|
|
||||||
|
build/dedicated_server_posix/sys_linux.o : src/platforms/posix/sys_linux.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_posix/vid_menu.o : src/platforms/posix/vid_menu.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
|
build/dedicated_server_posix/vid_so.o : src/platforms/posix/vid_so.c
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# The client
|
# The client
|
||||||
build/client/quake2 : $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
build/client/quake2 : $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||||
$(SERVER_OBJS) $(POSIX_OBJS)
|
$(SERVER_OBJS) $(POSIX_OBJS)
|
||||||
$(CC) $(CFLAGS) -o $@ $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
$(CC) $(CFLAGS_CLIENT) -o $@ $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||||
$(SERVER_OBJS) $(POSIX_OBJS) $(LDFLAGS) $(SDLLDFLAGS)
|
$(SERVER_OBJS) $(POSIX_OBJS) $(LDFLAGS) $(SDLLDFLAGS)
|
||||||
|
|
||||||
|
# Dedicated Server
|
||||||
|
build/dedicated_server/q2ded : $(DEDICATED_SERVER_OBJS) $(DEDICATED_SERVER_COMMON_OBJS) \
|
||||||
|
$(GAME_ABI_OBJS) $(DEDICATED_SERVER_POSIX_OBJS)
|
||||||
|
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ $(DEDICATED_SERVER_OBJS) \
|
||||||
|
$(DEDICATED_SERVER_COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||||
|
$(DEDICATED_SERVER_POSIX_OBJS) $(LDFLAGS)
|
||||||
|
|
|
@ -1512,6 +1512,7 @@ void Qcommon_Frame (int msec)
|
||||||
msec = 1;
|
msec = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef DEDICATED_ONLY
|
||||||
if (showtrace->value)
|
if (showtrace->value)
|
||||||
{
|
{
|
||||||
extern int c_traces, c_brush_traces;
|
extern int c_traces, c_brush_traces;
|
||||||
|
@ -1522,6 +1523,7 @@ void Qcommon_Frame (int msec)
|
||||||
c_brush_traces = 0;
|
c_brush_traces = 0;
|
||||||
c_pointcontents = 0;
|
c_pointcontents = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue