source: network-game/client/makefile@ 8aed9c0

Last change on this file since 8aed9c0 was 8aed9c0, checked in by Dmitry Portnoy <dmp1488@…>, 11 years ago

Client compiles under linux

  • Property mode set to 100644
File size: 1.1 KB
Line 
1CC = g++
2LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
3FLAGS = $(LIB_FLAGS)
4COMMON_PATH = ../common
5DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o Projectile.o Game.o GameRender.o GameSummary.o chat.o GuiComponent.o Window.o Textbox.o Button.o RadioButtonList.o TextLabel.o
6
7gameClient : Client/main.cpp $(DEPENDENCIES)
8 $(CC) -o $@ $+ $(FLAGS)
9
10Common.o : $(COMMON_PATH)/Common.cpp
11 $(CC) -c -o $@ $? $(FLAGS)
12
13MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
14 $(CC) -c -o $@ $? $(FLAGS)
15
16MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
17 $(CC) -c -o $@ $? $(FLAGS)
18
19Player.o : $(COMMON_PATH)/Player.cpp
20 $(CC) -c -o $@ $? $(FLAGS)
21
22WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
23 $(CC) -c -o $@ $? $(FLAGS)
24
25Projectile.o : $(COMMON_PATH)/Projectile.cpp
26 $(CC) -c -o $@ $? $(FLAGS)
27
28Game.o : $(COMMON_PATH)/Game.cpp
29 $(CC) -c -o $@ $? $(FLAGS)
30
31GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
32 $(CC) -c -o $@ $? $(FLAGS)
33
34%.o : Client/%.cpp
35 $(CC) -c -o $@ $? $(FLAGS)
36
37clean:
38 rm *.o
39 rm gameClient
Note: See TracBrowser for help on using the repository browser.