Last change
on this file since 34bd549 was 34bd549, checked in by Dmitry Portnoy <dmp1488@…>, 11 years ago |
Make client compile on a Mac
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | CC = g++
|
---|
2 | #LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
|
---|
3 | # osx needs to link against some extra libraries
|
---|
4 | LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0` -framework AppKit -framework IOKit -framework OpenGL -framework AGL -framework OpenAL
|
---|
5 | FLAGS = -Wall -g
|
---|
6 | COMMON_PATH = ../common
|
---|
7 | DEPENDENCIES = 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
|
---|
8 |
|
---|
9 | gameClient : Client/main.cpp $(DEPENDENCIES)
|
---|
10 | $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS)
|
---|
11 |
|
---|
12 | %.o : Client/%.cpp
|
---|
13 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
14 |
|
---|
15 | Common.o : $(COMMON_PATH)/Common.cpp
|
---|
16 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
17 |
|
---|
18 | MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
|
---|
19 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
20 |
|
---|
21 | MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
|
---|
22 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
23 |
|
---|
24 | Player.o : $(COMMON_PATH)/Player.cpp
|
---|
25 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
26 |
|
---|
27 | WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
|
---|
28 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
29 |
|
---|
30 | Projectile.o : $(COMMON_PATH)/Projectile.cpp
|
---|
31 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
32 |
|
---|
33 | Game.o : $(COMMON_PATH)/Game.cpp
|
---|
34 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
35 |
|
---|
36 | GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
|
---|
37 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
38 |
|
---|
39 | clean:
|
---|
40 | rm -f *.o
|
---|
41 | rm -f gameClient
|
---|
Note:
See
TracBrowser
for help on using the repository browser.