aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/examples/24.CursorControl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/24.CursorControl/Makefile')
-rw-r--r--src/others/irrlicht-1.8.1/examples/24.CursorControl/Makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/24.CursorControl/Makefile b/src/others/irrlicht-1.8.1/examples/24.CursorControl/Makefile
new file mode 100644
index 0000000..bc2a137
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/24.CursorControl/Makefile
@@ -0,0 +1,66 @@
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
4
5# Name of the executable created (.exe will be added automatically if necessary)
6Target := 24.CursorControl
7# List of source files, separated by spaces
8Sources := main.cpp
9# Path to Irrlicht directory, should contain include/ and lib/
10IrrlichtHome := ../..
11# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
12BinPath = ../../bin/$(SYSTEM)
13
14# general compiler settings (might need to be set when compiling the lib, too)
15# preprocessor flags, e.g. defines and include paths
16USERCPPFLAGS =
17# compiler flags such as optimization flags
18USERCXXFLAGS = -O3 -ffast-math
19#USERCXXFLAGS = -g -Wall
20# linker flags such as additional libraries and link paths
21USERLDFLAGS =
22
23####
24#no changes necessary below this line
25####
26
27CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
28CXXFLAGS = $(USERCXXFLAGS)
29LDFLAGS = $(USERLDFLAGS)
30
31#default target is Linux
32all: all_linux
33
34# target specific settings
35all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
36all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
37all_linux clean_linux: SYSTEM=Linux
38all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
39all_win32 clean_win32 static_win32: SUF=.exe
40static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
41all_win32: LDFLAGS += -lopengl32 -lm
42static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
43# name of the binary - only valid for targets which set SYSTEM
44DESTPATH = $(BinPath)/$(Target)$(SUF)
45
46all_linux all_win32 static_win32:
47 $(warning Building...)
48 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
49
50clean: clean_linux clean_win32
51 $(warning Cleaning...)
52
53clean_linux clean_win32:
54 @$(RM) $(DESTPATH)
55
56.PHONY: all all_win32 static_win32 clean clean_linux clean_win32
57
58#multilib handling
59ifeq ($(HOSTTYPE), x86_64)
60LIBSELECT=64
61endif
62#solaris real-time features
63ifeq ($(HOSTTYPE), sun4)
64LDFLAGS += -lrt
65endif
66