2018-11-13 08:25:08 +00:00
|
|
|
#
|
2020-02-10 12:27:07 +00:00
|
|
|
# ACTION QUAKE II MAKEFILE FOR LINUX
|
|
|
|
# Including the ACE BOT!
|
|
|
|
# Written by eukara
|
2018-11-13 08:25:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
BASE_CFLAGS=-Dstricmp=strcasecmp
|
|
|
|
|
2020-02-10 12:27:07 +00:00
|
|
|
CFLAGS=$(BASE_CFLAGS)
|
2018-11-13 08:25:08 +00:00
|
|
|
|
|
|
|
LDFLAGS=-ldl -lm
|
|
|
|
SHLIBCFLAGS=-fPIC
|
|
|
|
SHLIBLDFLAGS=-shared
|
|
|
|
|
|
|
|
DO_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
GAME_OBJS = \
|
|
|
|
g_ai.o g_cmds.o g_combat.o g_func.o g_items.o g_main.o g_misc.o \
|
|
|
|
g_monster.o g_phys.o g_save.o g_spawn.o g_svcmds.o \
|
|
|
|
g_target.o g_trigger.o g_turret.o g_utils.o g_weapon.o g_chase.o \
|
|
|
|
p_client.o p_hud.o p_trail.o p_view.o p_weapon.o q_shared.o \
|
2020-02-10 12:27:07 +00:00
|
|
|
m_move.o a_team.o \
|
|
|
|
acesrc/acebot_ai.o acesrc/acebot_cmds.o acesrc/acebot_compress.o acesrc/acebot_items.o acesrc/acebot_movement.o \
|
|
|
|
acesrc/acebot_nodes.o acesrc/acebot_spawn.o acesrc/botchat.o acesrc/botnav.o acesrc/botscan.o acesrc/cgf_sfx_fog.o \
|
|
|
|
a_game.o a_items.o a_cmds.o a_radio.o a_menu.o \
|
2018-11-13 08:25:08 +00:00
|
|
|
cgf_sfx_glass.o a_doorkick.o
|
|
|
|
|
2020-05-30 20:04:09 +00:00
|
|
|
../game.so : $(GAME_OBJS)
|
2018-11-13 08:25:08 +00:00
|
|
|
$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f $(GAME_OBJS)
|
2020-05-30 20:04:09 +00:00
|
|
|
-rm ../game.so
|
2018-11-13 08:25:08 +00:00
|
|
|
|
|
|
|
depend:
|
|
|
|
gcc -MM $(GAME_OBJS:.o=.c)
|
|
|
|
|
|
|
|
|
|
|
|
install:
|
|
|
|
cp gamei386.so ../quake2/action
|
|
|
|
|
|
|
|
g_ai.o: g_ai.c g_local.h q_shared.h game.h a_team.h a_game.h a_menu.h \
|
|
|
|
a_radio.h
|
|
|
|
g_cmds.o: g_cmds.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h m_player.h
|
|
|
|
g_combat.o: g_combat.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
g_func.o: g_func.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_items.o: g_items.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_main.o: g_main.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_misc.o: g_misc.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
g_monster.o: g_monster.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_phys.o: g_phys.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
g_save.o: g_save.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
g_spawn.o: g_spawn.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_svcmds.o: g_svcmds.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_target.o: g_target.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_trigger.o: g_trigger.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_turret.o: g_turret.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_utils.o: g_utils.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
g_weapon.o: g_weapon.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
g_chase.o: g_chase.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
p_client.o: p_client.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h m_player.h cgf_sfx_glass.h
|
|
|
|
p_hud.o: p_hud.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
p_trail.o: p_trail.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
p_view.o: p_view.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h m_player.h
|
|
|
|
p_weapon.o: p_weapon.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h m_player.h
|
|
|
|
q_shared.o: q_shared.c q_shared.h
|
|
|
|
m_move.o: m_move.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
a_team.o: a_team.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
2020-02-10 12:27:07 +00:00
|
|
|
acesrc/acebot_ai.o: acesrc/acebot_ai.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/acebot_cmds.o: acesrc/acebot_cmds.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/acebot_compress.o: acesrc/acebot_compress.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/acebot_items.o: acesrc/acebot_items.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/acebot_movement.o: acesrc/acebot_movement.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/acebot_nodes.o: acesrc/acebot_nodes.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/acebot_spawn.o: acesrc/acebot_spawn.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/botchat.o: acesrc/botchat.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/botnav.o: acesrc/botnav.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/botscan.o: acesrc/botscan.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
|
|
|
acesrc/cgf_sfx_fog.o: acesrc/cgf_sfx_fog.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h acesrc/acebot.h acesrc/botchat.h acesrc/botnav.h acesrc/botscan.h acesrc/cgf_sfx_fog.h
|
2018-11-13 08:25:08 +00:00
|
|
|
a_game.o: a_game.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
a_items.o: a_items.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
a_cmds.o: a_cmds.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
a_radio.o: a_radio.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
a_menu.o: a_menu.c g_local.h q_shared.h game.h a_team.h a_game.h \
|
|
|
|
a_menu.h a_radio.h
|
|
|
|
cgf_sfx_glass.o: cgf_sfx_glass.c g_local.h q_shared.h game.h a_team.h \
|
|
|
|
a_game.h a_menu.h a_radio.h cgf_sfx_glass.h
|
|
|
|
a_doorkick.o: a_doorkick.c g_local.h q_shared.h game.h a_team.h \
|
|
|
|
a_game.h a_menu.h a_radio.h
|