source: network-game/client/makefile@ 34bd549

Last change on this file since 34bd549 was 34bd549, checked in by Dmitry Portnoy <dmp1488@…>, 10 years ago

Make client compile on a Mac

  • Property mode set to 100644
File size: 1.4 KB
Line 
1CC = 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
4LIB_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
5FLAGS = -Wall -g
6COMMON_PATH = ../common
7DEPENDENCIES = 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
9gameClient : Client/main.cpp $(DEPENDENCIES)
10 $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS)
11
12%.o : Client/%.cpp
13 $(CC) -c -o $@ $? $(FLAGS)
14
15Common.o : $(COMMON_PATH)/Common.cpp
16 $(CC) -c -o $@ $? $(FLAGS)
17
18MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
19 $(CC) -c -o $@ $? $(FLAGS)
20
21MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
22 $(CC) -c -o $@ $? $(FLAGS)
23
24Player.o : $(COMMON_PATH)/Player.cpp
25 $(CC) -c -o $@ $? $(FLAGS)
26
27WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
28 $(CC) -c -o $@ $? $(FLAGS)
29
30Projectile.o : $(COMMON_PATH)/Projectile.cpp
31 $(CC) -c -o $@ $? $(FLAGS)
32
33Game.o : $(COMMON_PATH)/Game.cpp
34 $(CC) -c -o $@ $? $(FLAGS)
35
36GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
37 $(CC) -c -o $@ $? $(FLAGS)
38
39clean:
40 rm -f *.o
41 rm -f gameClient
Note: See TracBrowser for help on using the repository browser.