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