aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/examples/02.Quake3Map/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/02.Quake3Map/Makefile')
-rw-r--r--src/others/irrlicht-1.8.1/examples/02.Quake3Map/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/02.Quake3Map/Makefile b/src/others/irrlicht-1.8.1/examples/02.Quake3Map/Makefile
new file mode 100644
index 0000000..09953cf
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/02.Quake3Map/Makefile
@@ -0,0 +1,40 @@
1# Makefile for Irrlicht Examples
2# It's usually sufficient to change just the target name and source file list
3# and be sure that CXX is set to a valid compiler
4Target = 02.Quake3Map
5Sources = main.cpp
6
7# general compiler settings
8CPPFLAGS = -I../../include -I/usr/X11R6/include
9CXXFLAGS = -O3 -ffast-math
10#CXXFLAGS = -g -Wall
11
12#default target is Linux
13all: all_linux
14
15ifeq ($(HOSTTYPE), x86_64)
16LIBSELECT=64
17endif
18
19# target specific settings
20all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
21all_linux clean_linux: SYSTEM=Linux
22all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht
23static_win32: LDFLAGS += -lgdi32 -lopengl32 -ld3dx9d -lwinmm -lm
24static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
25static_win32 all_win32 clean_win32: SYSTEM=Win32-gcc
26static_win32 all_win32 clean_win32: SUF=.exe
27# name of the binary - only valid for targets which set SYSTEM
28DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
29
30all_linux all_win32 static_win32:
31 $(warning Building...)
32 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
33
34clean: clean_linux clean_win32
35 $(warning Cleaning...)
36
37clean_linux clean_win32:
38 @$(RM) $(DESTPATH)
39
40.PHONY: all all_win32 clean clean_linux clean_win32 static_win32