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