diff options
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/Makefile | 66 |
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) | ||
6 | Target := 24.CursorControl | ||
7 | # List of source files, separated by spaces | ||
8 | Sources := main.cpp | ||
9 | # Path to Irrlicht directory, should contain include/ and lib/ | ||
10 | IrrlichtHome := ../.. | ||
11 | # Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems | ||
12 | BinPath = ../../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 | ||
16 | USERCPPFLAGS = | ||
17 | # compiler flags such as optimization flags | ||
18 | USERCXXFLAGS = -O3 -ffast-math | ||
19 | #USERCXXFLAGS = -g -Wall | ||
20 | # linker flags such as additional libraries and link paths | ||
21 | USERLDFLAGS = | ||
22 | |||
23 | #### | ||
24 | #no changes necessary below this line | ||
25 | #### | ||
26 | |||
27 | CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS) | ||
28 | CXXFLAGS = $(USERCXXFLAGS) | ||
29 | LDFLAGS = $(USERLDFLAGS) | ||
30 | |||
31 | #default target is Linux | ||
32 | all: all_linux | ||
33 | |||
34 | # target specific settings | ||
35 | all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht | ||
36 | all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor | ||
37 | all_linux clean_linux: SYSTEM=Linux | ||
38 | all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc | ||
39 | all_win32 clean_win32 static_win32: SUF=.exe | ||
40 | static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_ | ||
41 | all_win32: LDFLAGS += -lopengl32 -lm | ||
42 | static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32 | ||
43 | # name of the binary - only valid for targets which set SYSTEM | ||
44 | DESTPATH = $(BinPath)/$(Target)$(SUF) | ||
45 | |||
46 | all_linux all_win32 static_win32: | ||
47 | $(warning Building...) | ||
48 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) | ||
49 | |||
50 | clean: clean_linux clean_win32 | ||
51 | $(warning Cleaning...) | ||
52 | |||
53 | clean_linux clean_win32: | ||
54 | @$(RM) $(DESTPATH) | ||
55 | |||
56 | .PHONY: all all_win32 static_win32 clean clean_linux clean_win32 | ||
57 | |||
58 | #multilib handling | ||
59 | ifeq ($(HOSTTYPE), x86_64) | ||
60 | LIBSELECT=64 | ||
61 | endif | ||
62 | #solaris real-time features | ||
63 | ifeq ($(HOSTTYPE), sun4) | ||
64 | LDFLAGS += -lrt | ||
65 | endif | ||
66 | |||