source:
network-game/client/makefile
| Last change on this file was 0065962, checked in by , 7 years ago | |
|---|---|
|
|
| File size: 1.3 KB | |
| Rev | Line | |
|---|---|---|
| [3f5616f] | 1 | CC = g++ |
| [0065962] | 2 | FLAGS = -Wall |
| [e708305] | 3 | |
| 4 | UNAME_S := $(shell uname -s) | |
| 5 | ||
| [ea3a3a9] | 6 | LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5 allegro_main-static-5 allegro_ttf-static-5 allegro_primitives-static-5` -lfreetype |
| [e708305] | 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 | ||
| [3f5616f] | 13 | COMMON_PATH = ../common |
| [8aed9c0] | 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 |
| [3f5616f] | 15 | |
| 16 | gameClient : Client/main.cpp $(DEPENDENCIES) | |
| [1e250bf] | 17 | $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS) |
| 18 | ||
| 19 | %.o : Client/%.cpp | |
| 20 | $(CC) -c -o $@ $? $(FLAGS) | |
| [3f5616f] | 21 | |
| [11402be] | 22 | Common.o : $(COMMON_PATH)/Common.cpp |
| 23 | $(CC) -c -o $@ $? $(FLAGS) | |
| 24 | ||
| [50643fa] | 25 | MessageContainer.o : $(COMMON_PATH)/MessageContainer.cpp |
| 26 | $(CC) -c -o $@ $? $(FLAGS) | |
| 27 | ||
| [eab83af] | 28 | MessageProcessor.o : $(COMMON_PATH)/MessageProcessor.cpp |
| [3f5616f] | 29 | $(CC) -c -o $@ $? $(FLAGS) |
| 30 | ||
| [edfd1d0] | 31 | Player.o : $(COMMON_PATH)/Player.cpp |
| 32 | $(CC) -c -o $@ $? $(FLAGS) | |
| 33 | ||
| [eab83af] | 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 | ||
| [50643fa] | 40 | Game.o : $(COMMON_PATH)/Game.cpp |
| 41 | $(CC) -c -o $@ $? $(FLAGS) | |
| 42 | ||
| [8aed9c0] | 43 | GameSummary.o : $(COMMON_PATH)/GameSummary.cpp |
| 44 | $(CC) -c -o $@ $? $(FLAGS) | |
| 45 | ||
| [3f5616f] | 46 | clean: |
| [0b6f9ec] | 47 | rm -f *.o |
| 48 | rm -f gameClient |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)