~baltix/+junk/irrlicht-test

« back to all changes in this revision

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