aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/examples/25.XmlHandling/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/examples/25.XmlHandling/Makefile132
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)
6Target := 25.XmlHandling 6Target := 25.XmlHandling
7# List of source files, separated by spaces 7# List of source files, separated by spaces
8Sources := main.cpp 8Sources := main.cpp
9# Path to Irrlicht directory, should contain include/ and lib/ 9# Path to Irrlicht directory, should contain include/ and lib/
10IrrlichtHome := ../.. 10IrrlichtHome := ../..
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
12BinPath = ../../bin/$(SYSTEM) 12BinPath = ../../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
16USERCPPFLAGS = 16USERCPPFLAGS =
17# compiler flags such as optimization flags 17# compiler flags such as optimization flags
18USERCXXFLAGS = -O3 -ffast-math 18USERCXXFLAGS = -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
21USERLDFLAGS = 21USERLDFLAGS =
22 22
23#### 23####
24#no changes necessary below this line 24#no changes necessary below this line
25#### 25####
26 26
27CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS) 27CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
28CXXFLAGS = $(USERCXXFLAGS) 28CXXFLAGS = $(USERCXXFLAGS)
29LDFLAGS = $(USERLDFLAGS) 29LDFLAGS = $(USERLDFLAGS)
30 30
31#default target is Linux 31#default target is Linux
32all: all_linux 32all: all_linux
33 33
34# target specific settings 34# target specific settings
35all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht 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 36all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
37all_linux clean_linux: SYSTEM=Linux 37all_linux clean_linux: SYSTEM=Linux
38all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc 38all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
39all_win32 clean_win32 static_win32: SUF=.exe 39all_win32 clean_win32 static_win32: SUF=.exe
40static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_ 40static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
41all_win32: LDFLAGS += -lopengl32 -lm 41all_win32: LDFLAGS += -lopengl32 -lm
42static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32 42static_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
44DESTPATH = $(BinPath)/$(Target)$(SUF) 44DESTPATH = $(BinPath)/$(Target)$(SUF)
45 45
46all_linux all_win32 static_win32: 46all_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
50clean: clean_linux clean_win32 50clean: clean_linux clean_win32
51 $(warning Cleaning...) 51 $(warning Cleaning...)
52 52
53clean_linux clean_win32: 53clean_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
59ifeq ($(HOSTTYPE), x86_64) 59ifeq ($(HOSTTYPE), x86_64)
60LIBSELECT=64 60LIBSELECT=64
61endif 61endif
62#solaris real-time features 62#solaris real-time features
63ifeq ($(HOSTTYPE), sun4) 63ifeq ($(HOSTTYPE), sun4)
64LDFLAGS += -lrt 64LDFLAGS += -lrt
65endif 65endif
66 66