Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/network/Makefile @ 247

Last change on this file since 247 was 247, checked in by scheusso, 16 years ago

added GameStateManager class:

  • gets snapshots of the universe (gamestate) and returns them
  • processes snapshots and loads them to the universe

modified Synchronisable

  • added a function getData(usigned char *data), which puts the data to

the already given pointer (more efficient memory handling for the
GameState class)

  • added a function getSize(), which tells you the total size of the

current gamestate (so that you can allocate enough memory and give it to
getData

File size: 1.5 KB
Line 
1CC=g++
2MAIN_INC=..
3INC=-I ${MAIN_INC}
4
5all: server client
6
7# Link command:
8server: PacketBuffer.o ConnectionManager.o dummyserver.o PacketDecoder.o PacketGenerator.o
9        ${CC} PacketDecoder.o PacketGenerator.o ConnectionManager.o dummyserver.o PacketBuffer.o -o server -lenet -lboost_thread -g
10
11dummyserver.o: dummyserver.cc
12        ${CC} -c dummyserver.cc -o dummyserver.o -g ${INC}
13# Compilation commands:
14ConnectionManager.o: ConnectionManager.cc ConnectionManager.h
15        ${CC} -c ConnectionManager.cc -o ConnectionManager.o -g ${INC}
16ClientConnection.o: ClientConnection.cc ClientConnection.h
17        ${CC} -c ClientConnection.cc -o ClientConnection.o -g ${INC}
18
19PacketBuffer.o: PacketBuffer.cc
20        ${CC} -c PacketBuffer.cc -o PacketBuffer.o -g ${INC}
21PacketGenerator.o: PacketGenerator.cc
22        ${CC} -c PacketGenerator.cc -o PacketGenerator.o -g ${INC}
23PacketDecoder.o: PacketDecoder.cc
24        ${CC} -c PacketDecoder.cc -o PacketDecoder.o -g ${INC}
25Client.o: Client.cc
26        ${CC} -c Client.cc -g ${INC}
27Server.o: Server.cc
28        ${CC} -c Server.cc -g ${INC}
29Synchronisable.o: Synchronisable.cc
30        ${CC} -c Synchronisable.cc -g ${INC}
31GameStateManager.o: GameStateManager.cc
32        ${CC} -c GameStateManager.cc -g ${INC}
33
34clean:
35        rm -rf *.o
36
37client_old: PacketGenerator.o dummyclient.cc
38        ${CC} dummyclient.cc PacketGenerator.o -o client -lenet -g ${INC}
39client: PacketGenerator.o ClientConnection.o PacketBuffer.o dummyclient2.cc
40        ${CC} dummyclient2.cc PacketGenerator.o PacketBuffer.o ClientConnection.o -o client -lenet -lboost_thread -g ${INC}
Note: See TracBrowser for help on using the repository browser.