aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-28 22:28:34 +1000
committerDavid Walter Seikel2016-03-28 22:28:34 +1000
commit7028cbe09c688437910a25623098762bf0fa592d (patch)
tree10b5af58277d9880380c2251f109325542c4e6eb /src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile
parentMove lemon to the src/others directory. (diff)
downloadSledjHamr-7028cbe09c688437910a25623098762bf0fa592d.zip
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.gz
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.bz2
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.xz
Move Irrlicht to src/others.
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile')
-rw-r--r--src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile b/src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile
new file mode 100644
index 0000000..2462ea8
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/examples/19.MouseAndJoystick/Makefile
@@ -0,0 +1,39 @@
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
4Target = 19.MouseAndJoystick
5Sources = main.cpp
6
7# general compiler settings
8CPPFLAGS = -I../../include -I/usr/X11R6/include
9#CXXFLAGS = -O3 -ffast-math
10CXXFLAGS = -g -Wall
11
12#default target is Linux
13all: all_linux
14
15ifeq ($(HOSTTYPE), x86_64)
16LIBSELECT=64
17endif
18
19# target specific settings
20all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
21all_linux clean_linux: SYSTEM=Linux
22all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
23all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
24all_win32 clean_win32: SYSTEM=Win32-gcc
25all_win32 clean_win32: SUF=.exe
26# name of the binary - only valid for targets which set SYSTEM
27DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
28
29all_linux all_win32:
30 $(warning Building...)
31 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
32
33clean: clean_linux clean_win32
34 $(warning Cleaning...)
35
36clean_linux clean_win32:
37 @$(RM) $(DESTPATH)
38
39.PHONY: all all_win32 clean clean_linux clean_win32