[200] | 1 | all: server client |
---|
| 2 | |
---|
[237] | 3 | CC=g++-4.1.1 |
---|
[200] | 4 | |
---|
[237] | 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/ |
---|
[200] | 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: |
---|
[237] | 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} |
---|
[200] | 16 | |
---|
| 17 | dummyserver.o: |
---|
[237] | 18 | ${CC} -c dummyserver.cc -o dummyserver.o -g ${INC} |
---|
[200] | 19 | # Compilation commands: |
---|
| 20 | |
---|
| 21 | ConnectionManager.o: |
---|
[237] | 22 | ${CC} -c ConnectionManager.cc -o ConnectionManager.o -g ${INC} |
---|
[200] | 23 | |
---|
| 24 | PacketBuffer.o: |
---|
[237] | 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} |
---|
[247] | 30 | Synchronisable.o: Synchronisable.cc |
---|
| 31 | ${CC} -c Synchronisable.cc -g ${INC} |
---|
| 32 | GameStateManager.o: GameStateManager.cc |
---|
| 33 | ${CC} -c GameStateManager.cc -g ${INC} |
---|
[200] | 34 | |
---|
| 35 | clean: |
---|
| 36 | rm -rf *.o |
---|
| 37 | |
---|
[237] | 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} |
---|