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

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
RevLine 
[3f5616f]1CC = g++
[34bd549]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
[8df0c49]5FLAGS = -Wall -g
[3f5616f]6COMMON_PATH = ../common
[8aed9c0]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
[3f5616f]8
9gameClient : Client/main.cpp $(DEPENDENCIES)
[1e250bf]10 $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS)
11
12%.o : Client/%.cpp
13 $(CC) -c -o $@ $? $(FLAGS)
[3f5616f]14
[11402be]15Common.o : $(COMMON_PATH)/Common.cpp
16 $(CC) -c -o $@ $? $(FLAGS)
17
[50643fa]18MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp
19 $(CC) -c -o $@ $? $(FLAGS)
20
[eab83af]21MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp
[3f5616f]22 $(CC) -c -o $@ $? $(FLAGS)
23
[edfd1d0]24Player.o : $(COMMON_PATH)/Player.cpp
25 $(CC) -c -o $@ $? $(FLAGS)
26
[eab83af]27WorldMap.o : $(COMMON_PATH)/WorldMap.cpp
28 $(CC) -c -o $@ $? $(FLAGS)
29
30Projectile.o : $(COMMON_PATH)/Projectile.cpp
31 $(CC) -c -o $@ $? $(FLAGS)
32
[50643fa]33Game.o : $(COMMON_PATH)/Game.cpp
34 $(CC) -c -o $@ $? $(FLAGS)
35
[8aed9c0]36GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
37 $(CC) -c -o $@ $? $(FLAGS)
38
[3f5616f]39clean:
[0b6f9ec]40 rm -f *.o
41 rm -f gameClient
Note: See TracBrowser for help on using the repository browser.