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