diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/examples/Demo/Makefile | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/examples/Demo/Makefile')
-rw-r--r-- | libraries/irrlicht-1.8/examples/Demo/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/examples/Demo/Makefile b/libraries/irrlicht-1.8/examples/Demo/Makefile new file mode 100644 index 0000000..1577ac9 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/Demo/Makefile | |||
@@ -0,0 +1,43 @@ | |||
1 | # Irrlicht Engine Demo Makefile | ||
2 | Target = Demo | ||
3 | Sources = CDemo.cpp CMainMenu.cpp main.cpp | ||
4 | |||
5 | CPPFLAGS = -I../../include -I/usr/X11R6/include | ||
6 | CXXFLAGS = -Wall -O3 -ffast-math | ||
7 | |||
8 | ifeq ($(HOSTTYPE), x86_64) | ||
9 | LIBSELECT=64 | ||
10 | endif | ||
11 | |||
12 | all: all_linux | ||
13 | |||
14 | # target specific settings | ||
15 | all_linux: SYSTEM=Linux | ||
16 | all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor | ||
17 | |||
18 | all_win32 clean_win32: SYSTEM=Win32-gcc | ||
19 | all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lm | ||
20 | |||
21 | # if you enable sound add the proper library for linking | ||
22 | #LDFLAGS += -lIrrKlang | ||
23 | #LDFLAGS += -laudiere | ||
24 | #LDFLAGS += -lSDL_mixer -lSDL | ||
25 | |||
26 | all_win32 clean_win32: SUF=.exe | ||
27 | # name of the binary - only valid for targets which set SYSTEM | ||
28 | DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) | ||
29 | |||
30 | OBJ = $(Sources:.cpp=.o) | ||
31 | |||
32 | all_linux all_win32: $(OBJ) | ||
33 | $(warning Building...) | ||
34 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $(DESTPATH) $(LDFLAGS) | ||
35 | |||
36 | clean: clean_linux clean_win32 | ||
37 | $(warning Cleaning...) | ||
38 | @$(RM) $(OBJ) | ||
39 | |||
40 | clean_linux clean_win32: | ||
41 | @$(RM) $(DESTPATH) | ||
42 | |||
43 | .PHONY: all all_win32 clean clean_linux clean_win32 | ||