source: network-game/server/makefile@ edfd1d0

Last change on this file since edfd1d0 was edfd1d0, checked in by dportnoy <dmp1488@…>, 12 years ago

Moved the Player class to the common directory, added a position to Player, added a new message type for sending player info, and made the server broadcast player positions everytime it receives and replies to a message

  • Property mode set to 100644
File size: 436 bytes
Line 
1CC = g++
2LIB_FLAGS = -lssl -lmysqlclient
3FLAGS = $(LIB_FLAGS)
4COMMON_PATH = ../common
5DEPENDENCIES = Common.o Message.o Player.o DataAccess.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
16Player.o : $(COMMON_PATH)/Player.cpp
17 $(CC) -c -o $@ $?
18
19%.o : %.cpp
20 $(CC) -c -o $@ $?
21
22clean:
23 rm *.o
24 rm server
Note: See TracBrowser for help on using the repository browser.