1 | all: server client |
---|
2 | |
---|
3 | CC=g++-4.1.1 |
---|
4 | |
---|
5 | BOOST_INC=/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/include/boost-1_34_1/ |
---|
6 | BOOST_LIB=/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/lib/ |
---|
7 | MAIN_INC=.. |
---|
8 | ENET_INC=/usr/pack/enet-2007-sd/include/ |
---|
9 | ENET_LIB=/usr/pack/enet-2007-sd/i686-debian-linux3.1/lib/ |
---|
10 | INC=-I ${BOOST_INC} -I ${MAIN_INC} -I ${ENET_INC} |
---|
11 | LIB=-L ${BOOST_LIB} -L ${ENET_LIB} |
---|
12 | |
---|
13 | # Link command: |
---|
14 | server: clean PacketBuffer.o ConnectionManager.o dummyserver.o PacketGenerator.o PacketDecoder.o |
---|
15 | ${CC} ConnectionManager.o dummyserver.o PacketBuffer.o PacketDecoder.o PacketGenerator.o -o server -lenet -lboost_thread-gcc41-mt -g ${INC} ${LIB} -Wl,-rpath,${BOOST_LIB} -Wl,-rpath,${ENET_LIB} |
---|
16 | |
---|
17 | dummyserver.o: |
---|
18 | ${CC} -c dummyserver.cc -o dummyserver.o -g ${INC} |
---|
19 | # Compilation commands: |
---|
20 | |
---|
21 | ConnectionManager.o: |
---|
22 | ${CC} -c ConnectionManager.cc -o ConnectionManager.o -g ${INC} |
---|
23 | |
---|
24 | PacketBuffer.o: |
---|
25 | ${CC} -c PacketBuffer.cc -o PacketBuffer.o -g ${INC} |
---|
26 | PacketGenerator.o: PacketGenerator.cc |
---|
27 | ${CC} -c PacketGenerator.cc -o PacketGenerator.o -g ${INC} |
---|
28 | PacketDecoder.o: PacketDecoder.cc |
---|
29 | ${CC} -c PacketDecoder.cc -o PacketDecoder.o -g ${INC} |
---|
30 | Synchronisable.o: Synchronisable.cc |
---|
31 | ${CC} -c Synchronisable.cc -g ${INC} |
---|
32 | GameStateManager.o: GameStateManager.cc |
---|
33 | ${CC} -c GameStateManager.cc -g ${INC} |
---|
34 | |
---|
35 | clean: |
---|
36 | rm -rf *.o |
---|
37 | |
---|
38 | client: dummyclient.cc PacketDecoder.o PacketGenerator.o |
---|
39 | ${CC} PacketGenerator.o PacketDecoder.o dummyclient.cc -o client -lenet ${LIB} ${INC} -Wl,-rpath,${BOOST_LIB} |
---|