[381] | 1 | CC=g++ |
---|
| 2 | MAIN_INC=.. |
---|
| 3 | INC=-I ${MAIN_INC} -I.. |
---|
| 4 | |
---|
| 5 | all: server client |
---|
| 6 | |
---|
| 7 | # Link command: |
---|
[441] | 8 | server: PacketBuffer.o ConnectionManager.o dummyserver.o PacketDecoder.o PacketGenerator.o ClientInformation.o |
---|
| 9 | ${CC} PacketDecoder.o PacketGenerator.o ClientInformation.o ConnectionManager.o dummyserver.o PacketBuffer.o -o server -lenet -lboost_thread -g |
---|
[381] | 10 | |
---|
| 11 | dummyserver.o: dummyserver.cc |
---|
| 12 | ${CC} -c dummyserver.cc -o dummyserver.o -g ${INC} |
---|
| 13 | # Compilation commands: |
---|
| 14 | ConnectionManager.o: ConnectionManager.cc ConnectionManager.h |
---|
| 15 | ${CC} -c ConnectionManager.cc -o ConnectionManager.o -g ${INC} |
---|
| 16 | ClientConnection.o: ClientConnection.cc ClientConnection.h |
---|
| 17 | ${CC} -c ClientConnection.cc -o ClientConnection.o -g ${INC} |
---|
| 18 | |
---|
| 19 | PacketBuffer.o: PacketBuffer.cc |
---|
| 20 | ${CC} -c PacketBuffer.cc -o PacketBuffer.o -g ${INC} |
---|
| 21 | PacketGenerator.o: PacketGenerator.cc |
---|
| 22 | ${CC} -c PacketGenerator.cc -o PacketGenerator.o -g ${INC} |
---|
| 23 | PacketDecoder.o: PacketDecoder.cc |
---|
| 24 | ${CC} -c PacketDecoder.cc -o PacketDecoder.o -g ${INC} |
---|
| 25 | Client.o: Client.cc |
---|
| 26 | ${CC} -c Client.cc -g ${INC} |
---|
| 27 | Server.o: Server.cc |
---|
| 28 | ${CC} -c Server.cc -g ${INC} |
---|
| 29 | Synchronisable.o: Synchronisable.cc |
---|
| 30 | ${CC} -c Synchronisable.cc -g ${INC} |
---|
| 31 | GameStateManager.o: GameStateManager.cc |
---|
| 32 | ${CC} -c GameStateManager.cc -g ${INC} |
---|
[440] | 33 | ClientInformation.o: ClientInformation.cc |
---|
| 34 | ${CC} -c ClientInformation.cc -g ${INC} |
---|
[381] | 35 | |
---|
| 36 | clean: |
---|
| 37 | rm -rf *.o |
---|
| 38 | |
---|
| 39 | client_old: PacketGenerator.o dummyclient.cc |
---|
| 40 | ${CC} dummyclient.cc PacketGenerator.o -o client -lenet -g ${INC} |
---|
| 41 | client: PacketGenerator.o ClientConnection.o PacketBuffer.o dummyclient2.cc |
---|
| 42 | ${CC} dummyclient2.cc PacketGenerator.o PacketBuffer.o ClientConnection.o -o client -lenet -lboost_thread -g ${INC} |
---|
[440] | 43 | |
---|
| 44 | chatserver: Server.o ConnectionManager.o PacketGenerator.o PacketDecoder.o PacketBuffer.o ClientInformation.o GameStateManager.o |
---|
| 45 | ${CC} dummyserver3.cc Server.o ConnectionManager.o PacketGenerator.o PacketBuffer.o GameStateManager.o ClientInformation.o -o chatserver -lenet -lboost_thread -g ${INC} |
---|