~ubuntu-branches/ubuntu/precise/openarena/precise

« back to all changes in this revision

Viewing changes to code/botlib/linux-i386.mak

  • Committer: Bazaar Package Importer
  • Author(s): Bruno "Fuddl" Kleinert
  • Date: 2007-01-20 12:28:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070120122809-2yza5ojt7nqiyiam
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile for Gladiator Bot library: gladiator.so
 
3
# Intended for gcc/Linux
 
4
#
 
5
 
 
6
ARCH=i386
 
7
CC=gcc
 
8
BASE_CFLAGS=-Dstricmp=strcasecmp
 
9
 
 
10
#use these cflags to optimize it
 
11
CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
 
12
        -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
 
13
        -malign-jumps=2 -malign-functions=2
 
14
#use these when debugging 
 
15
#CFLAGS=$(BASE_CFLAGS) -g
 
16
 
 
17
LDFLAGS=-ldl -lm
 
18
SHLIBEXT=so
 
19
SHLIBCFLAGS=-fPIC
 
20
SHLIBLDFLAGS=-shared
 
21
 
 
22
DO_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
 
23
 
 
24
#############################################################################
 
25
# SETUP AND BUILD
 
26
# GLADIATOR BOT
 
27
#############################################################################
 
28
 
 
29
.c.o:
 
30
        $(DO_CC)
 
31
 
 
32
GAME_OBJS = \
 
33
        be_aas_bsphl.o\
 
34
        be_aas_bspq2.o\
 
35
        be_aas_cluster.o\
 
36
        be_aas_debug.o\
 
37
        be_aas_entity.o\
 
38
        be_aas_file.o\
 
39
        be_aas_light.o\
 
40
        be_aas_main.o\
 
41
        be_aas_move.o\
 
42
        be_aas_optimize.o\
 
43
        be_aas_reach.o\
 
44
        be_aas_route.o\
 
45
        be_aas_routealt.o\
 
46
        be_aas_sample.o\
 
47
        be_aas_sound.o\
 
48
        be_ai2_dmq2.o\
 
49
        be_ai2_dmhl.o\
 
50
        be_ai2_dmnet.o\
 
51
        be_ai2_main.o\
 
52
        be_ai_char.o\
 
53
        be_ai_chat.o\
 
54
        be_ai_goal.o\
 
55
        be_ai_load.o\
 
56
        be_ai_move.o\
 
57
        be_ai_weap.o\
 
58
        be_ai_weight.o\
 
59
        be_ea.o\
 
60
        be_interface.o\
 
61
        l_crc.o\
 
62
        l_libvar.o\
 
63
        l_log.o\
 
64
        l_memory.o\
 
65
        l_precomp.o\
 
66
        l_script.o\
 
67
        l_struct.o\
 
68
        l_utils.o\
 
69
        q_shared.o
 
70
 
 
71
glad$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
 
72
        $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
 
73
 
 
74
 
 
75
#############################################################################
 
76
# MISC
 
77
#############################################################################
 
78
 
 
79
clean:
 
80
        -rm -f $(GAME_OBJS)
 
81
 
 
82
depend:
 
83
        gcc -MM $(GAME_OBJS:.o=.c)
 
84
 
 
85
 
 
86
install:
 
87
        cp gladiator.so ..
 
88
 
 
89
#
 
90
# From "make depend"
 
91
#
 
92