mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 07:41:47 +00:00
Damit ist - bis auf einen Testlauf - das Aufräumen
des Clients und Server für POSIX beendet
This commit is contained in:
parent
7784426a43
commit
675192bd21
2 changed files with 29 additions and 22 deletions
33
Makefile
33
Makefile
|
@ -92,7 +92,7 @@ SDLLDFLAGS=$(shell sdl-config --libs)
|
|||
|
||||
# Targets
|
||||
|
||||
all: client
|
||||
all: client dedicated_server
|
||||
|
||||
client:
|
||||
@-mkdir -p build \
|
||||
|
@ -107,18 +107,21 @@ client:
|
|||
build/posix/glob \
|
||||
build/posix/sdl \
|
||||
build/posix/vid \
|
||||
build/server
|
||||
$(MAKE) build/client/quake2
|
||||
build/server \
|
||||
release
|
||||
$(MAKE) release/quake2
|
||||
|
||||
dedicated_server:
|
||||
@-mkdir -p build \
|
||||
build/dedicated_server \
|
||||
build/dedicated_server_common \
|
||||
build/dedicated_server_posix
|
||||
$(MAKE) build/dedicated_server/q2ded
|
||||
build/dedicated_server_posix \
|
||||
build/dedicated_server_posix/glob \
|
||||
release
|
||||
$(MAKE) release/q2ded
|
||||
|
||||
clean:
|
||||
@-rm -Rf build
|
||||
@-rm -Rf build release
|
||||
|
||||
# ----------
|
||||
|
||||
|
@ -222,10 +225,10 @@ DEDICATED_SERVER_COMMON_OBJS = \
|
|||
|
||||
# Dedicated server POSIX platform objects
|
||||
DEDICATED_SERVER_POSIX_OBJS = \
|
||||
build/dedicated_server_posix/glob.o \
|
||||
build/dedicated_server_posix/net_udp.o \
|
||||
build/dedicated_server_posix/glob/glob.o \
|
||||
build/dedicated_server_posix/network.o \
|
||||
build/dedicated_server_posix/posix.o \
|
||||
build/dedicated_server_posix/sys_linux.o
|
||||
build/dedicated_server_posix/system.o
|
||||
|
||||
# ----------
|
||||
|
||||
|
@ -440,28 +443,28 @@ build/dedicated_server_common/pmove.o : src/common/pmove.c
|
|||
# ----------
|
||||
|
||||
# Dedicated server POSIX build
|
||||
build/dedicated_server_posix/glob.o : src/platforms/posix/glob.c
|
||||
build/dedicated_server_posix/glob/glob.o : src/platforms/posix/glob/glob.c
|
||||
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||
|
||||
build/dedicated_server_posix/net_udp.o : src/platforms/posix/net_udp.c
|
||||
build/dedicated_server_posix/network.o : src/platforms/posix/network.c
|
||||
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||
|
||||
build/dedicated_server_posix/q_shlinux.o : src/platforms/posix/q_shlinux.c
|
||||
build/dedicated_server_posix/posix.o : src/platforms/posix/posix.c
|
||||
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||
|
||||
build/dedicated_server_posix/sys_linux.o : src/platforms/posix/sys_linux.c
|
||||
build/dedicated_server_posix/system.o : src/platforms/posix/system.c
|
||||
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
|
||||
|
||||
# ----------
|
||||
|
||||
# The client
|
||||
build/client/quake2 : $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||
release/quake2 : $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||
$(SERVER_OBJS) $(POSIX_OBJS)
|
||||
$(CC) $(CFLAGS_CLIENT) -o $@ $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||
$(SERVER_OBJS) $(POSIX_OBJS) $(LDFLAGS) $(SDLLDFLAGS)
|
||||
|
||||
# Dedicated Server
|
||||
build/dedicated_server/q2ded : $(DEDICATED_SERVER_OBJS) $(DEDICATED_SERVER_COMMON_OBJS) \
|
||||
release/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) \
|
||||
|
|
|
@ -84,7 +84,9 @@ void Sys_Printf (char *fmt, ...)
|
|||
|
||||
void Sys_Quit (void)
|
||||
{
|
||||
#ifndef DEDICATED_ONLY
|
||||
CL_Shutdown ();
|
||||
#endif
|
||||
Qcommon_Shutdown ();
|
||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
|
||||
_exit(0);
|
||||
|
@ -102,7 +104,9 @@ void Sys_Error (char *error, ...)
|
|||
// change stdin to non blocking
|
||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
|
||||
|
||||
#ifndef DEDICATED_ONLY
|
||||
CL_Shutdown ();
|
||||
#endif
|
||||
Qcommon_Shutdown ();
|
||||
|
||||
va_start (argptr,error);
|
||||
|
|
Loading…
Reference in a new issue