Last change
on this file since ace001a was e708305, checked in by Dmitry Portnoy <dmp1488@…>, 10 years ago |
Client makefile works on both linux and mac
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | CC = g++
|
---|
2 | FLAGS = -Wall -g
|
---|
3 |
|
---|
4 | UNAME_S := $(shell uname -s)
|
---|
5 |
|
---|
6 | 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`
|
---|
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.