Last change
on this file since 7f9b01c was 0065962, checked in by dportnoy15 <dmitry.portnoy@…>, 6 years ago |
Update the readme with instructions for installing the client on OSX
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | CC = g++
|
---|
2 | FLAGS = -Wall
|
---|
3 |
|
---|
4 | UNAME_S := $(shell uname -s)
|
---|
5 |
|
---|
6 | LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5 allegro_main-static-5 allegro_ttf-static-5 allegro_primitives-static-5` -lfreetype
|
---|
7 |
|
---|
8 | # osx needs to link against some extra libraries
|
---|
9 | ifeq ($(UNAME_S),Darwin)
|
---|
10 | LIB_FLAGS += -framework AppKit -framework IOKit -framework OpenGL -framework AGL -framework OpenAL
|
---|
11 | endif
|
---|
12 |
|
---|
13 | COMMON_PATH = ../common
|
---|
14 | 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
|
---|
15 |
|
---|
16 | gameClient : Client/main.cpp $(DEPENDENCIES)
|
---|
17 | $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS)
|
---|
18 |
|
---|
19 | %.o : Client/%.cpp
|
---|
20 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
21 |
|
---|
22 | Common.o : $(COMMON_PATH)/Common.cpp
|
---|
23 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
24 |
|
---|
25 | MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
|
---|
26 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
27 |
|
---|
28 | MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
|
---|
29 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
30 |
|
---|
31 | Player.o : $(COMMON_PATH)/Player.cpp
|
---|
32 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
33 |
|
---|
34 | WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
|
---|
35 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
36 |
|
---|
37 | Projectile.o : $(COMMON_PATH)/Projectile.cpp
|
---|
38 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
39 |
|
---|
40 | Game.o : $(COMMON_PATH)/Game.cpp
|
---|
41 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
42 |
|
---|
43 | GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
|
---|
44 | $(CC) -c -o $@ $? $(FLAGS)
|
---|
45 |
|
---|
46 | clean:
|
---|
47 | rm -f *.o
|
---|
48 | rm -f gameClient
|
---|
Note:
See
TracBrowser
for help on using the repository browser.