source: network-game/client/makefile@ 7f9b01c

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 
1CC = g++
2FLAGS = -Wall
3
4UNAME_S := $(shell uname -s)
5
6LIB_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
9ifeq ($(UNAME_S),Darwin)
10 LIB_FLAGS += -framework AppKit -framework IOKit -framework OpenGL -framework AGL -framework OpenAL
11endif
12
13COMMON_PATH = ../common
14DEPENDENCIES = 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
16gameClient : Client/main.cpp $(DEPENDENCIES)
17 $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS)
18
19%.o : Client/%.cpp
20 $(CC) -c -o $@ $? $(FLAGS)
21
22Common.o : $(COMMON_PATH)/Common.cpp
23 $(CC) -c -o $@ $? $(FLAGS)
24
25MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
26 $(CC) -c -o $@ $? $(FLAGS)
27
28MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
29 $(CC) -c -o $@ $? $(FLAGS)
30
31Player.o : $(COMMON_PATH)/Player.cpp
32 $(CC) -c -o $@ $? $(FLAGS)
33
34WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
35 $(CC) -c -o $@ $? $(FLAGS)
36
37Projectile.o : $(COMMON_PATH)/Projectile.cpp
38 $(CC) -c -o $@ $? $(FLAGS)
39
40Game.o : $(COMMON_PATH)/Game.cpp
41 $(CC) -c -o $@ $? $(FLAGS)
42
43GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
44 $(CC) -c -o $@ $? $(FLAGS)
45
46clean:
47 rm -f *.o
48 rm -f gameClient
Note: See TracBrowser for help on using the repository browser.