~ubuntu-branches/debian/stretch/assaultcube-data/stretch

« back to all changes in this revision

Viewing changes to source/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Gonéri Le Bouder, Ansgar Burchardt, Gonéri Le Bouder
  • Date: 2010-04-02 23:37:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402233755-kf74fxwlu634o6vg
Tags: 1.0.4+repack1-1
[ Ansgar Burchardt ]
* debian/control: fix typo in short description

[ Gonéri Le Bouder ]
* Upgrade to 1.0.4
* bump standards-version to 3.8.4
* Add Depends: ${misc:Depends} just to avoid a lintian warning
* Add a debian/source/format file for the same reason

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CXXOPTFLAGS=-O3 -fomit-frame-pointer
 
2
INCLUDES1=-I/usr/X11R6/include -I../enet/include -I../src
 
3
INCLUDES2=`sdl-config --cflags`
 
4
CXXCUSTOMFLAGS=-fsigned-char -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wpointer-arith -Wwrite-strings -Wconversion -rdynamic
 
5
CXXFLAGS=$(CXXOPTFLAGS) $(INCLUDES1) $(INCLUDES2) $(CUSTOMFLAGS)
 
6
CXXFLAGSSERVER=$(CXXOPTFLAGS) $(INCLUDES1) $(CUSTOMFLAGS)
 
7
 
 
8
PLATFORM_PREFIX=native
 
9
CLIENT_LIBS=-L/usr/X11R6/lib -L../enet -lenet `sdl-config --libs` -lSDL_image -lz -lGL -lopenal -lvorbisfile
 
10
CLIENT_OBJS1= \
 
11
        client.o \
 
12
        clientgame.o \
 
13
        clients2c.o \
 
14
        command.o \
 
15
        console.o \
 
16
        docs.o \
 
17
        editing.o \
 
18
        entities.o \
 
19
        log.o \
 
20
        main.o \
 
21
        menus.o \
 
22
        packetqueue.o \
 
23
        physics.o \
 
24
        protocol.o \
 
25
        rendercubes.o \
 
26
        rendergl.o \
 
27
        renderhud.o \
 
28
        rendermodel.o \
 
29
        renderparticles.o \
 
30
        rendertext.o \
 
31
        rndmap.o \
 
32
        scoreboard.o \
 
33
        server.o \
 
34
        serverbrowser.o \
 
35
        serverms.o \
 
36
        shadow.o \
 
37
        sound.o \
 
38
        texture.o \
 
39
        tools.o \
 
40
        water.o \
 
41
        weapon.o \
 
42
        wizard.o \
 
43
        world.o \
 
44
        worldio.o \
 
45
        worldlight.o \
 
46
        worldocull.o \
 
47
        worldrender.o
 
48
CLIENT_OBJS2= \
 
49
        bot/bot.o \
 
50
        bot/botmanager.o \
 
51
        bot/bot_ai.o \
 
52
        bot/bot_util.o \
 
53
        bot/bot_waypoint.o \
 
54
        bot/ac_bot.o \
 
55
        bot/ac_bot_ai.o 
 
56
 
 
57
 
 
58
SERVER_LIBS=-L../enet -lenet -lz
 
59
SERVER_FILES= \
 
60
        log.cpp \
 
61
        serverms.cpp \
 
62
        server.cpp \
 
63
        protocol.cpp \
 
64
        tools.cpp \
 
65
        wizard.cpp
 
66
 
 
67
default: all
 
68
 
 
69
all: libenet client server
 
70
 
 
71
../enet/Makefile:
 
72
        cd ../enet; ./configure
 
73
 
 
74
libenet: ../enet/Makefile
 
75
        -$(MAKE) -C ../enet all
 
76
 
 
77
clean:
 
78
        -$(RM) -f $(SERVER_OBJS) $(CLIENT_OBJS1) ac_server ac_client
 
79
#       -$(MAKE) -C ../enet/ clean
 
80
 
 
81
mrproper: clean
 
82
        -$(RM) -f $(CLIENT_OBJS2)
 
83
        -$(MAKE) -C ../enet/ clean
 
84
 
 
85
client: $(CLIENT_OBJS1) $(CLIENT_OBJS2)
 
86
        $(CXX) $(CXXFLAGS) -o ac_client $(CLIENT_OBJS1) $(CLIENT_OBJS2) $(CLIENT_LIBS)
 
87
 
 
88
server: libenet $(SERVER_FILES)
 
89
        $(CXX) $(CXXFLAGSSERVER) -o ac_server -DSTANDALONE $(SERVER_FILES) $(SERVER_LIBS)
 
90
 
 
91
install: all
 
92
        cp ac_client ../../bin_unix/$(PLATFORM_PREFIX)_client
 
93
        cp ac_server ../../bin_unix/$(PLATFORM_PREFIX)_server
 
94
#       strip ../../bin_unix/$(PLATFORM_PREFIX)_client
 
95
#       strip ../../bin_unix/$(PLATFORM_PREFIX)_server
 
96
 
 
97
server_install: server
 
98
        cp ac_server ../../bin_unix/$(PLATFORM_PREFIX)_server
 
99
#       strip ../../bin_unix/$(PLATFORM_PREFIX)_server