2
# $Id: Makefile 28911 2010-05-21 21:26:03Z sgefant $
4
# ***** BEGIN GPL LICENSE BLOCK *****
6
# This program is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU General Public License
8
# as published by the Free Software Foundation; either version 2
9
# of the License, or (at your option) any later version.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software Foundation,
18
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21
# All rights reserved.
23
# The Original Code is: all of this file.
25
# Contributor(s): none yet.
27
# ***** END GPL LICENSE BLOCK *****
32
DIR = $(OCGDIR)/blender/$(LIBNAME)
34
include nan_compile.mk
36
CFLAGS += $(LEVEL_1_C_WARNINGS)
39
CPPFLAGS += -I$(NAN_GLEW)/include
40
CPPFLAGS += -I$(OPENGL_HEADERS)
41
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
43
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
44
CPPFLAGS += -I../../../../intern/memutil
45
CPPFLAGS += -I$(NAN_AUDASPACE)/include
46
# Reference to the types in makesdna and imbuf
47
CPPFLAGS += -I../../makesdna
48
CPPFLAGS += -I../../makesrna
49
CPPFLAGS += -I../../imbuf
50
CPPFLAGS += -I../../ikplugin
51
# This mod uses the BLI and BLO module
52
CPPFLAGS += -I../../blenlib
53
CPPFLAGS += -I../../blenloader
54
CPPFLAGS += -I../../python
55
CPPFLAGS += -I../../blenfont
56
# This is bad level, remove eventually
57
CPPFLAGS += -I../../windowmanager
59
CPPFLAGS += -I../../avi
60
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
62
# we still refer to /include a bit...
63
CPPFLAGS += -I../../editors/include
65
# to include the render stuff:
66
CPPFLAGS += -I../../render/extern/include
69
#CPPFLAGS += -I../../../kernel/gen_system
70
CPPFLAGS += $(NAN_SDLCFLAGS)
72
CPPFLAGS += -I$(NAN_IKSOLVER)/include
73
CPPFLAGS += -I$(NAN_DECIMATION)/include
74
CPPFLAGS += -I$(NAN_ELBEEM)/include
75
CPPFLAGS += -I$(NAN_OPENNL)/include
76
CPPFLAGS += -I$(NAN_BSP)/include
77
CPPFLAGS += -I$(NAN_SMOKE)/include
80
CPPFLAGS += -I$(NAN_ZLIB)/include
83
CPPFLAGS += -I../../nodes
86
CPPFLAGS += -I../../gpu
89
CPPFLAGS += -I../../modifiers
91
# path to our own external headerfiles
94
CPPFLAGS += -I$(NAN_FREETYPE)/include
95
CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
97
# path to bullet2, for cloth
98
ifeq ($(NAN_USE_BULLET), true)
99
CPPFLAGS += -I$(NAN_BULLET2)/include
102
# lzo and lzma, for pointcache
103
ifeq ($(WITH_LZO),true)
104
CPPFLAGS += -I$(NAN_LZO)/minilzo
105
CPPFLAGS += -DWITH_LZO
108
ifeq ($(WITH_LZO),true)
109
CPPFLAGS += -I$(NAN_LZMA)
110
CPPFLAGS += -DWITH_LZMA
113
ifeq ($(WITH_FFMPEG),true)
114
CPPFLAGS += -DWITH_FFMPEG
115
CPPFLAGS += $(NAN_FFMPEGCFLAGS)
118
ifeq ($(WITH_OPENEXR), true)
119
CPPFLAGS += -DWITH_OPENEXR
122
ifeq ($(WITH_DDS), true)
123
CPPFLAGS += -DWITH_DDS
126
ifeq ($(WITH_OPENJPEG), true)
127
CPPFLAGS += -DWITH_OPENJPEG
130
ifeq ($(WITH_QUICKTIME), true)
131
CPPFLAGS += -I../../quicktime
132
CPPFLAGS += -DWITH_QUICKTIME
135
ifeq ($(WITH_TIFF), true)
136
CPPFLAGS += -DWITH_TIFF
140
ifeq ($(WITH_BF_OPENMP), true)
141
CPPFLAGS += -DPARALLEL=1