- Unified makefiles for examples.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5219 dfc29bdd-3216-0410-991c-e03cc46cb475
master
nadro 2015-12-15 20:26:58 +00:00
parent 1c63af32d6
commit bc9fe27e30
27 changed files with 834 additions and 466 deletions

View File

@ -12,21 +12,12 @@ IrrlichtHome := ../..
BinPath = ../../bin/$(SYSTEM) BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too) # general compiler settings (might need to be set when compiling the lib, too)
# preprocessor flags, e.g. defines and include paths CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
USERCPPFLAGS = ifndef NDEBUG
# compiler flags such as optimization flags CXXFLAGS += -g -Wall
USERCXXFLAGS = -O3 -ffast-math else
#USERCXXFLAGS = -g -Wall CXXFLAGS += -O3
# linker flags such as additional libraries and link paths endif
USERLDFLAGS =
####
#no changes necessary below this line
####
CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
CXXFLAGS = $(USERCXXFLAGS)
LDFLAGS = $(USERLDFLAGS)
#default target is Linux #default target is Linux
all: all_linux all: all_linux
@ -63,4 +54,3 @@ endif
ifeq ($(HOSTTYPE), sun4) ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt LDFLAGS += -lrt
endif endif

View File

@ -1,31 +1,38 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 02.Quake3Map
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 02.Quake3Map
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
static_win32: LDFLAGS += -lgdi32 -lopengl32 -ld3dx9d -lwinmm -lm all_win32 clean_win32 static_win32: SUF=.exe
static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_ static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
static_win32 all_win32 clean_win32: SYSTEM=Win32-gcc all_win32: LDFLAGS += -lopengl32 -lm
static_win32 all_win32 clean_win32: SUF=.exe static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32 static_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
@ -37,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 static_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 03.CustomSceneNode
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 03.CustomSceneNode
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,32 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 04.Movement
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 04.Movement
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SYSTEM=Win32-gcc static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32 clean_win32: SUF=.exe all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -36,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 05.UserInterface
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 05.UserInterface
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 06.2DGraphics
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 06.2DGraphics
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 07.Collision
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 07.Collision
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 08.SpecialFX
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 08.SpecialFX
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 09.Meshviewer
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 09.Meshviewer
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 10.Shaders
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 10.Shaders
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 11.PerPixelLighting
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 11.PerPixelLighting
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 12.TerrainRendering
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 12.TerrainRendering
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 13.RenderToTexture
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 13.RenderToTexture
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 14.Win32Window
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 14.Win32Window
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 15.LoadIrrFile
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 15.LoadIrrFile
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 16.Quake3MapShader
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 16.Quake3MapShader
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 18.SplitScreen
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 18.SplitScreen
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,32 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 19.MouseAndJoystick
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 19.MouseAndJoystick
#CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SYSTEM=Win32-gcc static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32 clean_win32: SUF=.exe all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -36,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,32 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 20.ManagedLights
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 20.ManagedLights
#CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SYSTEM=Win32-gcc static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32 clean_win32: SUF=.exe all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -36,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 21.Quake3Explorer
Sources = main.cpp sound.cpp q3factory.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 21.Quake3Explorer
#CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
CXXFLAGS = -g -Wall Sources := main.cpp sound.cpp q3factory.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 22.MaterialViewer
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 22.MaterialViewer
#CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -1,31 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 23.SMeshHandling
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 23.SMeshHandling
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SYSTEM=Win32-gcc all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SUF=.exe static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -35,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -12,21 +12,12 @@ IrrlichtHome := ../..
BinPath = ../../bin/$(SYSTEM) BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too) # general compiler settings (might need to be set when compiling the lib, too)
# preprocessor flags, e.g. defines and include paths CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
USERCPPFLAGS = ifndef NDEBUG
# compiler flags such as optimization flags CXXFLAGS += -g -Wall
USERCXXFLAGS = -O3 -ffast-math else
#USERCXXFLAGS = -g -Wall CXXFLAGS += -O3
# linker flags such as additional libraries and link paths endif
USERLDFLAGS =
####
#no changes necessary below this line
####
CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
CXXFLAGS = $(USERCXXFLAGS)
LDFLAGS = $(USERLDFLAGS)
#default target is Linux #default target is Linux
all: all_linux all: all_linux
@ -63,4 +54,3 @@ endif
ifeq ($(HOSTTYPE), sun4) ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt LDFLAGS += -lrt
endif endif

View File

@ -12,21 +12,12 @@ IrrlichtHome := ../..
BinPath = ../../bin/$(SYSTEM) BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too) # general compiler settings (might need to be set when compiling the lib, too)
# preprocessor flags, e.g. defines and include paths CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
USERCPPFLAGS = ifndef NDEBUG
# compiler flags such as optimization flags CXXFLAGS += -g -Wall
USERCXXFLAGS = -O3 -ffast-math else
#USERCXXFLAGS = -g -Wall CXXFLAGS += -O3
# linker flags such as additional libraries and link paths endif
USERLDFLAGS =
####
#no changes necessary below this line
####
CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
CXXFLAGS = $(USERCXXFLAGS)
LDFLAGS = $(USERLDFLAGS)
#default target is Linux #default target is Linux
all: all_linux all: all_linux
@ -63,4 +54,3 @@ endif
ifeq ($(HOSTTYPE), sun4) ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt LDFLAGS += -lrt
endif endif

View File

@ -1,32 +1,40 @@
# Makefile for Irrlicht Examples # Makefile for Irrlicht Examples
# It's usually sufficient to change just the target name and source file list # It's usually sufficient to change just the target name and source file list
# and be sure that CXX is set to a valid compiler # and be sure that CXX is set to a valid compiler
Target = 26.OcclusionQuery
Sources = main.cpp
# general compiler settings # Name of the executable created (.exe will be added automatically if necessary)
CPPFLAGS = -I../../include -I/usr/X11R6/include Target := 26.OcclusionQuery
CXXFLAGS = -O3 -ffast-math # List of source files, separated by spaces
#CXXFLAGS = -g -Wall Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too)
CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif
#default target is Linux #default target is Linux
all: all_linux all: all_linux
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
# target specific settings # target specific settings
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL all_win32 clean_win32 static_win32: SUF=.exe
all_win32 clean_win32: SYSTEM=Win32-gcc static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32 clean_win32: SUF=.exe all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
all_linux all_win32: all_linux all_win32 static_win32:
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
@ -36,4 +44,13 @@ clean: clean_linux clean_win32
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif

View File

@ -12,21 +12,12 @@ IrrlichtHome := ../..
BinPath = ../../bin/$(SYSTEM) BinPath = ../../bin/$(SYSTEM)
# general compiler settings (might need to be set when compiling the lib, too) # general compiler settings (might need to be set when compiling the lib, too)
# preprocessor flags, e.g. defines and include paths CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
USERCPPFLAGS = ifndef NDEBUG
# compiler flags such as optimization flags CXXFLAGS += -g -Wall
USERCXXFLAGS = -O3 -ffast-math else
#USERCXXFLAGS = -g -Wall CXXFLAGS += -O3
# linker flags such as additional libraries and link paths endif
USERLDFLAGS =
####
#no changes necessary below this line
####
CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
CXXFLAGS = $(USERCXXFLAGS)
LDFLAGS = $(USERLDFLAGS)
#default target is Linux #default target is Linux
all: all_linux all: all_linux
@ -63,4 +54,3 @@ endif
ifeq ($(HOSTTYPE), sun4) ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt LDFLAGS += -lrt
endif endif

View File

@ -1,43 +1,61 @@
# Irrlicht Engine Demo Makefile # Makefile for Irrlicht Examples
Target = Demo # It's usually sufficient to change just the target name and source file list
Sources = CDemo.cpp CMainMenu.cpp main.cpp # and be sure that CXX is set to a valid compiler
CPPFLAGS = -I../../include -I/usr/X11R6/include # Name of the executable created (.exe will be added automatically if necessary)
CXXFLAGS = -Wall -O3 -ffast-math Target := Demo
# List of source files, separated by spaces
Sources := CDemo.cpp CMainMenu.cpp main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
IrrlichtHome := ../..
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
BinPath = ../../bin/$(SYSTEM)
ifeq ($(HOSTTYPE), x86_64) # general compiler settings (might need to be set when compiling the lib, too)
LIBSELECT=64 CPPFLAGS += -I$(IrrlichtHome)/include -I/usr/X11R6/include
ifndef NDEBUG
CXXFLAGS += -g -Wall
else
CXXFLAGS += -O3
endif endif
all: all_linux
# target specific settings
all_linux: SYSTEM=Linux
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lm
# if you enable sound add the proper library for linking # if you enable sound add the proper library for linking
#LDFLAGS += -lIrrKlang #LDFLAGS += -lIrrKlang
#LDFLAGS += -laudiere #LDFLAGS += -laudiere
#LDFLAGS += -lSDL_mixer -lSDL #LDFLAGS += -lSDL_mixer -lSDL
all_win32 clean_win32: SUF=.exe #default target is Linux
all: all_linux
# target specific settings
all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11 -lXcursor
all_linux clean_linux: SYSTEM=Linux
all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32 static_win32: SUF=.exe
static_win32: CPPFLAGS += -D_IRR_STATIC_LIB_
all_win32: LDFLAGS += -lopengl32 -lm
static_win32: LDFLAGS += -lgdi32 -lwinspool -lcomdlg32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lopengl32
# name of the binary - only valid for targets which set SYSTEM # name of the binary - only valid for targets which set SYSTEM
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF) DESTPATH = $(BinPath)/$(Target)$(SUF)
OBJ = $(Sources:.cpp=.o) all_linux all_win32 static_win32:
all_linux all_win32: $(OBJ)
$(warning Building...) $(warning Building...)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $(DESTPATH) $(LDFLAGS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
clean: clean_linux clean_win32 clean: clean_linux clean_win32
$(warning Cleaning...) $(warning Cleaning...)
@$(RM) $(OBJ)
clean_linux clean_win32: clean_linux clean_win32:
@$(RM) $(DESTPATH) @$(RM) $(DESTPATH)
.PHONY: all all_win32 clean clean_linux clean_win32 .PHONY: all all_win32 static_win32 clean clean_linux clean_win32
#multilib handling
ifeq ($(HOSTTYPE), x86_64)
LIBSELECT=64
endif
#solaris real-time features
ifeq ($(HOSTTYPE), sun4)
LDFLAGS += -lrt
endif