source: network-game/server/makefile@ 198cf2d

Last change on this file since 198cf2d was 787806f, checked in by dportnoy <dmp1488@…>, 11 years ago

Added an ACK message type and a skeleton MessageProcessor class

  • Property mode set to 100644
File size: 695 bytes
Line 
1CC = g++
2LIB_FLAGS = -lssl -lmysqlclient -lcrypt -lrt
3FLAGS = $(LIB_FLAGS)
4COMMON_PATH = ../common
5DEPENDENCIES = Common.o Message.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o
6
7server : server.cpp $(DEPENDENCIES)
8 $(CC) -o $@ $+ $(FLAGS)
9
10Common.o : $(COMMON_PATH)/Common.cpp
11 $(CC) -c -o $@ $?
12
13Message.o : $(COMMON_PATH)/Message.cpp
14 $(CC) -c -o $@ $?
15
16MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
17 $(CC) -c -o $@ $?
18
19Player.o : $(COMMON_PATH)/Player.cpp
20 $(CC) -c -o $@ $?
21
22WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
23 $(CC) -c -o $@ $?
24
25Projectile.o : $(COMMON_PATH)/Projectile.cpp
26 $(CC) -c -o $@ $?
27
28%.o : %.cpp
29 $(CC) -c -o $@ $?
30
31clean:
32 rm *.o
33 rm server
Note: See TracBrowser for help on using the repository browser.