~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to examples/18.SplitScreen/Makefile

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
Target = 18.SplitScreen
 
5
Sources = main.cpp
 
6
 
 
7
# general compiler settings
 
8
CPPFLAGS = -I../../include -I/usr/X11R6/include
 
9
CXXFLAGS = -O3 -ffast-math
 
10
#CXXFLAGS = -g -Wall
 
11
 
 
12
#default target is Linux
 
13
all: all_linux
 
14
 
 
15
ifeq ($(HOSTTYPE), x86_64)
 
16
LIBSELECT=64
 
17
endif
 
18
 
 
19
# target specific settings
 
20
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
 
21
all_linux clean_linux: SYSTEM=Linux
 
22
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
 
23
all_win32 clean_win32: SYSTEM=Win32-gcc
 
24
all_win32 clean_win32: SUF=.exe
 
25
# name of the binary - only valid for targets which set SYSTEM
 
26
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
 
27
 
 
28
all_linux all_win32:
 
29
        $(warning Building...)
 
30
        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(Sources) -o $(DESTPATH) $(LDFLAGS)
 
31
 
 
32
clean: clean_linux clean_win32
 
33
        $(warning Cleaning...)
 
34
 
 
35
clean_linux clean_win32:
 
36
        @$(RM) $(DESTPATH)
 
37
 
 
38
.PHONY: all all_win32 clean clean_linux clean_win32