Last change
on this file since 1f6233e was d05c484, checked in by dportnoy <dmp1488@…>, 11 years ago |
Some game-specific functions moved from server.cpp to the Game class and a function moved to the MessageProcessor class
|
-
Property mode
set to
100644
|
File size:
909 bytes
|
Rev | Line | |
---|
[2488852] | 1 | CC = g++
|
---|
[c9f6a1c] | 2 | #LIB_FLAGS = -lssl -lmysqlclient -lcrypt -lrt
|
---|
| 3 | LIB_FLAGS = -lmysqlclient -lcrypt -lrt
|
---|
[d05c484] | 4 | FLAGS = -Wall $(LIB_FLAGS)
|
---|
[2488852] | 5 | COMMON_PATH = ../common
|
---|
[c9f6a1c] | 6 | DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o Game.o GameSummary.o
|
---|
[2488852] | 7 |
|
---|
| 8 | server : server.cpp $(DEPENDENCIES)
|
---|
| 9 | $(CC) -o $@ $+ $(FLAGS)
|
---|
| 10 |
|
---|
[edfd1d0] | 11 | Common.o : $(COMMON_PATH)/Common.cpp
|
---|
| 12 | $(CC) -c -o $@ $?
|
---|
| 13 |
|
---|
[46d6469] | 14 | MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
|
---|
| 15 | $(CC) -c -o $@ $?
|
---|
| 16 |
|
---|
[787806f] | 17 | MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
|
---|
| 18 | $(CC) -c -o $@ $?
|
---|
| 19 |
|
---|
[edfd1d0] | 20 | Player.o : $(COMMON_PATH)/Player.cpp
|
---|
| 21 | $(CC) -c -o $@ $?
|
---|
| 22 |
|
---|
[60017fc] | 23 | WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
|
---|
[60b77d2] | 24 | $(CC) -c -o $@ $?
|
---|
| 25 |
|
---|
[8dad966] | 26 | Projectile.o : $(COMMON_PATH)/Projectile.cpp
|
---|
| 27 | $(CC) -c -o $@ $?
|
---|
| 28 |
|
---|
[f419b09] | 29 | Game.o : $(COMMON_PATH)/Game.cpp
|
---|
| 30 | $(CC) -c -o $@ $?
|
---|
| 31 |
|
---|
[c9f6a1c] | 32 | GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
|
---|
| 33 | $(CC) -c -o $@ $?
|
---|
| 34 |
|
---|
[2488852] | 35 | %.o : %.cpp
|
---|
| 36 | $(CC) -c -o $@ $?
|
---|
| 37 |
|
---|
| 38 | clean:
|
---|
| 39 | rm *.o
|
---|
| 40 | rm server
|
---|
Note:
See
TracBrowser
for help on using the repository browser.