source:
network-game/server/makefile@
edfd1d0
Last change on this file since edfd1d0 was edfd1d0, checked in by , 12 years ago | |
---|---|
|
|
File size: 436 bytes |
Rev | Line | |
---|---|---|
[2488852] | 1 | CC = g++ |
2 | LIB_FLAGS = -lssl -lmysqlclient | |
3 | FLAGS = $(LIB_FLAGS) | |
4 | COMMON_PATH = ../common | |
[edfd1d0] | 5 | DEPENDENCIES = Common.o Message.o Player.o DataAccess.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 | ||
[edfd1d0] | 16 | Player.o : $(COMMON_PATH)/Player.cpp |
17 | $(CC) -c -o $@ $? | |
18 | ||
[2488852] | 19 | %.o : %.cpp |
20 | $(CC) -c -o $@ $? | |
21 | ||
22 | clean: | |
23 | rm *.o | |
24 | rm server |
Note:
See TracBrowser
for help on using the repository browser.