source:
network-game/server/makefile@
eab83af
Last change on this file since eab83af was dee75cc, checked in by , 11 years ago | |
---|---|
|
|
File size: 626 bytes |
Rev | Line | |
---|---|---|
[2488852] | 1 | CC = g++ |
[60017fc] | 2 | LIB_FLAGS = -lssl -lmysqlclient -lcrypt -lrt |
[2488852] | 3 | FLAGS = $(LIB_FLAGS) |
4 | COMMON_PATH = ../common | |
[dee75cc] | 5 | DEPENDENCIES = Common.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o |
[2488852] | 6 | |
7 | server : server.cpp $(DEPENDENCIES) | |
8 | $(CC) -o $@ $+ $(FLAGS) | |
9 | ||
[edfd1d0] | 10 | Common.o : $(COMMON_PATH)/Common.cpp |
11 | $(CC) -c -o $@ $? | |
12 | ||
[787806f] | 13 | MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp |
14 | $(CC) -c -o $@ $? | |
15 | ||
[edfd1d0] | 16 | Player.o : $(COMMON_PATH)/Player.cpp |
17 | $(CC) -c -o $@ $? | |
18 | ||
[60017fc] | 19 | WorldMap.o : $(COMMON_PATH)/WorldMap.cpp |
[60b77d2] | 20 | $(CC) -c -o $@ $? |
21 | ||
[8dad966] | 22 | Projectile.o : $(COMMON_PATH)/Projectile.cpp |
23 | $(CC) -c -o $@ $? | |
24 | ||
[2488852] | 25 | %.o : %.cpp |
26 | $(CC) -c -o $@ $? | |
27 | ||
28 | clean: | |
29 | rm *.o | |
30 | rm server |
Note:
See TracBrowser
for help on using the repository browser.