mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Makefile im CTF erweitert
This commit is contained in:
parent
5b2431ad95
commit
007456f13b
1 changed files with 123 additions and 1 deletions
124
Makefile
124
Makefile
|
@ -79,7 +79,7 @@ CFLAGS_OPENGL += -DBROKEN_GL -fPIC -Werror
|
|||
|
||||
# Game
|
||||
CFLAGS_GAME = $(CFLAGS_BASE)
|
||||
CFLAGS_GAME += -fPIC -Werror
|
||||
CFLAGS_GAME += -fPIC
|
||||
|
||||
# ----------
|
||||
|
||||
|
@ -151,6 +151,13 @@ baseq2:
|
|||
release/baseq2
|
||||
$(MAKE) release/baseq2/game.so
|
||||
|
||||
ctf:
|
||||
@-mkdir -p build \
|
||||
build/ctf \
|
||||
release \
|
||||
release/ctf
|
||||
$(MAKE) release/ctf/game.so
|
||||
|
||||
clean:
|
||||
@-rm -Rf build release
|
||||
|
||||
|
@ -346,6 +353,37 @@ BASEQ2_OBJS = \
|
|||
|
||||
# ----------
|
||||
|
||||
# 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
|
||||
|
||||
# ----------
|
||||
|
||||
# Client build
|
||||
build/client/cl_cin.o : src/client/cl_cin.c
|
||||
$(CC) $(CFLAGS_CLIENT) -o $@ -c $<
|
||||
|
@ -770,6 +808,86 @@ build/baseq2/q_shared.o: src/game/quake2/q_shared.c
|
|||
$(CC) $(CFLAGS_GAME) -o $@ -c $<
|
||||
|
||||
# ----------
|
||||
|
||||
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 $<
|
||||
|
||||
# ----------
|
||||
|
||||
# The client
|
||||
release/quake2 : $(CLIENT_OBJS) $(COMMON_OBJS) $(GAME_ABI_OBJS) \
|
||||
|
@ -793,3 +911,7 @@ release/ref_gl.so : $(OPENGL_OBJS) $(OPENGL_POSIX_OBJS) $(OPENGL_GAME_OBJS)
|
|||
release/baseq2/game.so : $(BASEQ2_OBJS)
|
||||
$(CC) $(CFLAGS_GAME) -o $@ $(BASEQ2_OBJS) $(LDFLAGS) $(GAMELDFLAGS)
|
||||
|
||||
# Quake II - Three Wave Capture The Flag
|
||||
release/ctf/game.so : $(CTF_OBJS)
|
||||
$(CC) $(CFLAGS_GAME) -o $@ $(CTF_OBJS) $(LDFLAGS) $(GAMELDFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue