~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to examples/Demo/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
# Irrlicht Engine Demo Makefile
 
2
Target = Demo
 
3
Sources = CDemo.cpp CMainMenu.cpp main.cpp
 
4
 
 
5
CPPFLAGS = -I../../include -I/usr/X11R6/include
 
6
CXXFLAGS = -Wall -O3 -ffast-math
 
7
 
 
8
ifeq ($(HOSTTYPE), x86_64)
 
9
LIBSELECT=64
 
10
endif
 
11
 
 
12
all: all_linux
 
13
 
 
14
# target specific settings
 
15
all_linux: SYSTEM=Linux
 
16
all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor
 
17
 
 
18
all_win32 clean_win32: SYSTEM=Win32-gcc
 
19
all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lm
 
20
 
 
21
# if you enable sound add the proper library for linking
 
22
#LDFLAGS += -lIrrKlang
 
23
#LDFLAGS += -laudiere
 
24
#LDFLAGS += -lSDL_mixer -lSDL
 
25
 
 
26
all_win32 clean_win32: SUF=.exe
 
27
# name of the binary - only valid for targets which set SYSTEM
 
28
DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
 
29
 
 
30
OBJ = $(Sources:.cpp=.o)
 
31
 
 
32
all_linux all_win32: $(OBJ)
 
33
        $(warning Building...)
 
34
        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $(DESTPATH) $(LDFLAGS)
 
35
 
 
36
clean: clean_linux clean_win32
 
37
        $(warning Cleaning...)
 
38
        @$(RM) $(OBJ)
 
39
 
 
40
clean_linux clean_win32:
 
41
        @$(RM) $(DESTPATH)
 
42
 
 
43
.PHONY: all all_win32 clean clean_linux clean_win32