1 # -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
6 # ***** BEGIN GPL LICENSE BLOCK *****
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software Foundation,
20 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 # All rights reserved.
25 # The Original Code is: all of this file.
29 # ***** END GPL LICENSE BLOCK *****
31 # set some defaults when these are not overruled (?=) by environment variables
34 sinclude ../user-def.mk
36 # This warning only takes place once in source/
37 ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
38 ifeq (all, $(findstring all, $(MAKECMDGOALS)))
39 export ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
40 export ERRTXT += "Use something like ..make all && make debug.. instead"
49 ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
50 export DEBUG_DIR = debug/
51 export ALL_OR_DEBUG = debug
53 ifeq (all, $(findstring all, $(MAKECMDGOALS)))
54 export ALL_OR_DEBUG ?= all
57 # First generic defaults for all platforms which should be constant.
58 # Note: ?= lets these defaults be overruled by environment variables,
59 export SRCHOME ?= $(NANBLENDERHOME)/source
60 export CONFIG_GUESS := $(shell ${SRCHOME}/tools/guess/guessconfig)
61 export OS := $(shell echo ${CONFIG_GUESS} | sed -e 's/-.*//')
62 export OS_VERSION := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-//' -e 's/-[^-]*//')
63 export CPU := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-[^-]*-//')
64 export MAKE_START := $(shell date "+%H:%M:%S %d-%b-%Y")
65 export NAN_LIBDIR ?= $(NANBLENDERHOME)/../lib
66 export NAN_OBJDIR ?= $(NANBLENDERHOME)/obj
67 # Library Config_Guess DIRectory
68 export LCGDIR = $(NAN_LIBDIR)/$(CONFIG_GUESS)
69 # Object Config_Guess DIRectory
70 export OCGDIR = $(NAN_OBJDIR)/$(CONFIG_GUESS)
72 # Determines what targets are built
73 export WITH_BF_DYNAMICOPENGL ?= true
74 export WITH_BF_STATICOPENGL ?= false
75 export WITH_BF_BLENDERGAMEENGINE ?= true
76 export WITH_BF_BLENDERPLAYER ?= true
77 ifeq ($(NAN_NO_PLUGIN), true)
78 export WITH_BF_WEBPLUGIN = false
80 export WITH_BF_WEBPLUGIN ?= false
83 export NAN_MOTO ?= $(LCGDIR)/moto
84 ifeq ($(FREE_WINDOWS), true)
85 export NAN_SOLID ?= $(LCGDIR)/gcc/solid
86 export NAN_QHULL ?= $(LCGDIR)/gcc/qhull
88 export NAN_SOLID ?= $(LCGDIR)/solid
89 export NAN_QHULL ?= $(LCGDIR)/qhull
91 export BF_PROFILE ?= false
92 export NAN_USE_BULLET ?= true
93 export NAN_BULLET2 ?= $(LCGDIR)/bullet2
94 export NAN_FUZZICS ?= $(SRCHOME)/gameengine/Physics/Sumo/Fuzzics
95 export NAN_BLENKEY ?= $(LCGDIR)/blenkey
96 export NAN_DECIMATION ?= $(LCGDIR)/decimation
97 export NAN_GUARDEDALLOC ?= $(LCGDIR)/guardedalloc
98 export NAN_IKSOLVER ?= $(LCGDIR)/iksolver
99 export NAN_BSP ?= $(LCGDIR)/bsp
100 export NAN_BOOLOP ?= $(LCGDIR)/boolop
101 export NAN_SOUNDSYSTEM ?= $(LCGDIR)/SoundSystem
102 export NAN_STRING ?= $(LCGDIR)/string
103 export NAN_MEMUTIL ?= $(LCGDIR)/memutil
104 export NAN_CONTAINER ?= $(LCGDIR)/container
105 export NAN_ACTION ?= $(LCGDIR)/action
106 export NAN_GHOST ?= $(LCGDIR)/ghost
107 export NAN_TEST_VERBOSITY ?= 1
108 export NAN_OPENNL ?= $(LCGDIR)/opennl
109 export NAN_ELBEEM ?= $(LCGDIR)/elbeem
110 export NAN_SUPERLU ?= $(LCGDIR)/superlu
111 export NAN_GLEW ?= $(LCGDIR)/glew
112 ifeq ($(FREE_WINDOWS), true)
113 export NAN_FFMPEG ?= $(LCGDIR)/gcc/ffmpeg
114 export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a $(NAN_FFMPEG)/lib/libavdevice.a
116 export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
117 export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavcodec.a $(NAN_FFMPEG)/lib/libswscale.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavdevice.a
119 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include -I$(NANBLENDERHOME)/extern/ffmpeg
121 export WITH_OPENEXR ?= true
122 export WITH_DDS ?= true
123 export WITH_OPENJPEG ?= true
126 ifeq ($(NAN_USE_FFMPEG_CONFIG), true)
127 export NAN_FFMPEG ?= $(shell ffmpeg-config --prefix)
128 export NAN_FFMPEGLIBS ?= $(shell ffmpeg-config --libs avformat avcodec)
129 export NAN_FFMPEGCFLAGS ?= $(shell ffmpeg-config --cflags)
132 # Platform Dependent settings go below:
135 export ID = $(shell whoami)
136 export HOST = $(shell hostname -s)
138 export PY_FRAMEWORK ?= 1
141 export NAN_PYTHON ?= /System/Library/Frameworks/Python.framework/Versions/2.3
142 export NAN_PYTHON_VERSION ?= 2.3
143 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
144 export NAN_PYTHON_LIB ?= -framework Python
146 export NAN_PYTHON ?= /sw
147 export NAN_PYTHON_VERSION ?= 2.3
148 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
149 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
152 export NAN_OPENAL ?= $(LCGDIR)/openal
153 export NAN_JPEG ?= $(LCGDIR)/jpeg
154 export NAN_PNG ?= $(LCGDIR)/png
155 export NAN_TIFF ?= $(LCGDIR)/tiff
156 export NAN_ODE ?= $(LCGDIR)/ode
157 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
158 export NAN_MESA ?= /usr/src/Mesa-3.1
159 export NAN_ZLIB ?= $(LCGDIR)/zlib
160 export NAN_NSPR ?= $(LCGDIR)/nspr
161 export NAN_FREETYPE ?= $(LCGDIR)/freetype
162 export NAN_GETTEXT ?= $(LCGDIR)/gettext
163 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/libintl.a
165 export NAN_GETTEXT_LIB += $(NAN_GETTEXT)/lib/libintl.a
167 export NAN_SDL ?= $(LCGDIR)/sdl
168 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
169 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a -framework Cocoa -framework IOKit
171 export NAN_OPENEXR ?= $(LCGDIR)/openexr
172 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
173 ifeq ($(CPU),powerpc)
174 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
176 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a
179 # export NAN_NO_KETSJI=true
182 export NAN_NO_OPENAL=true
185 # Uncomment the following line to use Mozilla inplace of netscape
186 # CPPFLAGS +=-DMOZ_NOT_NET
187 # Location of MOZILLA/Netscape header files...
188 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
189 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
190 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
191 # if this is not set.
193 export NAN_BUILDINFO ?= true
194 # Be paranoid regarding library creation (do not update archives)
195 export NAN_PARANOID ?= true
197 # enable quicktime by default on OS X
198 export WITH_QUICKTIME ?= true
201 export INTERNATIONAL ?= true
206 export ID = $(shell whoami)
207 export HOST = $(shell hostname -s)
208 export FREEDESKTOP ?= true
210 export NAN_PYTHON ?= /usr/local
211 export NAN_PYTHON_VERSION ?= 2.5
212 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
213 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
214 export NAN_OPENAL ?= /usr/local
215 export NAN_JPEG ?= /usr/local
216 export NAN_PNG ?= /usr/local
217 export NAN_TIFF ?= /usr/local
218 export NAN_ODE ?= $(LCGDIR)/ode
219 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
220 export NAN_MESA ?= /usr/src/Mesa-3.1
221 export NAN_ZLIB ?= /usr
222 export NAN_NSPR ?= /usr/local
223 export NAN_FREETYPE ?= $(LCGDIR)/freetype
224 export NAN_GETTEXT ?= $(LCGDIR)/gettext
225 export NAN_SDL ?= $(shell sdl-config --prefix)
226 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
227 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
229 # Uncomment the following line to use Mozilla inplace of netscape
230 # CPPFLAGS +=-DMOZ_NOT_NET
231 # Location of MOZILLA/Netscape header files...
232 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
233 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
234 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
235 # if this is not set.
237 export NAN_BUILDINFO ?= true
238 # Be paranoid regarding library creation (do not update archives)
239 export NAN_PARANOID ?= true
242 # export INTERNATIONAL ?= true
247 export ID = $(shell whoami)
248 export HOST = $(shell /usr/bsd/hostname -s)
249 #export NAN_NO_KETSJI=true
250 export NAN_JUST_BLENDERDYNAMIC=true
251 export NAN_PYTHON_VERSION ?= 2.5
252 ifeq ($(IRIX_USE_GCC), true)
253 export NAN_PYTHON ?= $(LCGDIR)/python_gcc
255 export NAN_PYTHON ?= $(LCGDIR)/python
257 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
258 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a -lpthread
259 export NAN_OPENAL ?= $(LCGDIR)/openal
260 export NAN_JPEG ?= $(LCGDIR)/jpeg
261 export NAN_PNG ?= $(LCGDIR)/png
262 export NAN_TIFF ?= $(LCGDIR)/tiff
263 export NAN_ODE ?= $(LCGDIR)/ode
264 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
265 export NAN_MESA ?= /usr/src/Mesa-3.1
266 export NAN_ZLIB ?= $(LCGDIR)/zlib
267 export NAN_NSPR ?= $(LCGDIR)/nspr
268 export NAN_FREETYPE ?= $(LCGDIR)/freetype
269 export NAN_ICONV ?= $(LCGDIR)/iconv
270 export NAN_GETTEXT ?= $(LCGDIR)/gettext
271 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/libintl.a $(NAN_ICONV)/lib/libiconv.a
272 export NAN_SDL ?= $(LCGDIR)/sdl
273 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a
274 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include/SDL
275 export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
276 export NAN_FFMPEGLIBS = $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavcodec.a $(NAN_FFMPEG)/lib/libswscale.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavdevice.a $(NAN_FFMPEG)/lib/libogg.a $(NAN_FFMPEG)/lib/libfaad.a $(NAN_FFMPEG)/lib/libmp3lame.a $(NAN_FFMPEG)/lib/libvorbis.a $(NAN_FFMPEG)/lib/libx264.a $(NAN_FFMPEG)/lib/libfaac.a $(NAN_ZLIB)/lib/libz.a
277 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include -I$(NANBLENDERHOME)/extern/ffmpeg
279 ifeq ($(IRIX_USE_GCC), true)
280 export NAN_OPENEXR ?= $(LCGDIR)/openexr/gcc
282 export NAN_OPENEXR ?= $(LCGDIR)/openexr
284 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
285 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a
287 # Uncomment the following line to use Mozilla inplace of netscape
288 # CPPFLAGS +=-DMOZ_NOT_NET
289 # Location of MOZILLA/Netscape header files...
290 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
291 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
292 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
293 # if this is not set.
295 export NAN_BUILDINFO ?= true
296 # Be paranoid regarding library creation (do not update archives)
297 export NAN_PARANOID ?= true
300 export INTERNATIONAL ?= true
305 export ID = $(shell whoami)
306 export HOST = $(shell hostname -s)
307 export FREEDESKTOP ?= true
309 export NAN_PYTHON ?= /usr
310 export NAN_PYTHON_VERSION ?= 2.6
311 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
312 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
313 export NAN_OPENAL ?= /usr
314 export NAN_JPEG ?= /usr
315 export NAN_PNG ?= /usr
316 export NAN_TIFF ?= /usr
317 export NAN_ODE ?= $(LCGDIR)/ode
318 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
319 export NAN_MESA ?= /usr
320 export NAN_ZLIB ?= /usr
321 export NAN_NSPR ?= $(LCGDIR)/nspr
322 export NAN_FREETYPE ?= /usr
323 export NAN_GETTEXT ?= /usr
324 export NAN_SDL ?= $(shell sdl-config --prefix)
325 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
326 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
328 ifneq ($(NAN_USE_FFMPEG_CONFIG), true)
329 export NAN_FFMPEG ?= /usr
330 export NAN_FFMPEGLIBS ?= -L$(NAN_FFMPEG)/lib -lavformat -lavcodec -lavutil -lswscale -lavdevice -ldts -lz
331 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
334 ifeq ($(WITH_OPENEXR), true)
335 export NAN_OPENEXR ?= $(shell pkg-config --variable=prefix OpenEXR )
336 export NAN_OPENEXR_INC ?= $(shell pkg-config --cflags OpenEXR )
337 export NAN_OPENEXR_LIBS ?= $(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell pkg-config --libs-only-l OpenEXR | sed -s "s/-l//g" )))
340 # Uncomment the following line to use Mozilla inplace of netscape
341 export CPPFLAGS += -DMOZ_NOT_NET
342 # Location of MOZILLA/Netscape header files...
343 export NAN_MOZILLA_INC ?= /usr/include/mozilla
344 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
345 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
346 # if this is not set.
348 export NAN_BUILDINFO ?= true
349 # Be paranoid regarding library creation (do not update archives)
350 export NAN_PARANOID ?= true
353 export INTERNATIONAL ?= true
355 export WITH_BINRELOC ?= true
357 # enable ffmpeg support
359 export WITH_FFMPEG ?= true
365 export ID = $(shell whoami)
366 export HOST = $(shell hostname -s)
367 export FREEDESKTOP ?= true
369 export NAN_PYTHON ?= $(LCGDIR)/python
370 export NAN_PYTHON_VERSION ?= 2.3
371 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
372 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
373 export NAN_OPENAL ?= $(LCGDIR)/openal
374 export NAN_JPEG ?= $(LCGDIR)/jpeg
375 export NAN_PNG ?= $(LCGDIR)/png
376 export NAN_TIFF ?= $(LCGDIR)/tiff
377 export NAN_ODE ?= $(LCGDIR)/ode
378 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
379 export NAN_MESA ?= /usr/src/Mesa-3.1
380 export NAN_ZLIB ?= $(LCGDIR)/zlib
381 export NAN_NSPR ?= $(LCGDIR)/nspr
382 export NAN_FREETYPE ?= $(LCGDIR)/freetype
383 export NAN_GETTEXT ?= $(LCGDIR)/gettext
384 export NAN_SDL ?= $(shell sdl-config --prefix)
385 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
386 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
388 # Uncomment the following line to use Mozilla inplace of netscape
389 # CPPFLAGS +=-DMOZ_NOT_NET
390 # Location of MOZILLA/Netscape header files...
391 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
392 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
393 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
394 # if this is not set.
396 export NAN_BUILDINFO ?= true
397 # Be paranoid regarding library creation (do not update archives)
398 export NAN_PARANOID ?= true
401 #export INTERNATIONAL ?= true
406 export ID = $(shell /usr/ucb/whoami)
407 export HOST = $(shell hostname)
408 export NAN_PYTHON ?= $(LCGDIR)/python
409 export NAN_PYTHON_VERSION ?= 2.5
410 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
411 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
412 export NAN_OPENAL ?= $(LCGDIR)/openal
413 export NAN_JPEG ?= $(LCGDIR)/jpeg
414 export NAN_PNG ?= $(LCGDIR)/png
415 export NAN_TIFF ?= /usr
416 export NAN_ODE ?= $(LCGDIR)/ode
417 export NAN_TERRAPLAY ?=
418 export NAN_MESA ?= /usr/X11
419 export NAN_ZLIB ?= $(LCGDIR)/zlib
420 export NAN_NSPR ?= $(LCGDIR)/nspr
421 export NAN_FREETYPE ?= $(LCGDIR)/freetype
422 export NAN_GETTEXT ?= $(LCGDIR)/gettext
423 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/libintl.a $(NAN_GETTEXT)/lib/libiconv.a
424 export NAN_SDL ?= $(LCGDIR)/sdl
425 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include/SDL
426 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a
428 # this only exists at the moment for i386-64 CPU Types at the moment
429 export NAN_OPENEXR ?= $(LCGDIR)/openexr
430 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
431 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a -lrt
433 # Uncomment the following line to use Mozilla inplace of netscape
434 # CPPFLAGS +=-DMOZ_NOT_NET
435 # Location of MOZILLA/Netscape header files...
436 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
437 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
438 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
439 # if this is not set.
441 export NAN_BUILDINFO ?= true
442 # Be paranoid regarding library creation (do not update archives)
443 export NAN_PARANOID ?= true
446 #export INTERNATIONAL ?= true
451 export ID = $(LOGNAME)
452 export NAN_PYTHON ?= $(LCGDIR)/python
453 export NAN_ICONV ?= $(LCGDIR)/iconv
454 export NAN_PYTHON_VERSION ?= 2.5
455 export NAN_OPENAL ?= $(LCGDIR)/openal
456 export NAN_JPEG ?= $(LCGDIR)/jpeg
457 export NAN_PNG ?= $(LCGDIR)/png
458 export NAN_TIFF ?= $(LCGDIR)/tiff
459 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
460 export NAN_MESA ?= /usr/src/Mesa-3.1
461 export NAN_ZLIB ?= $(LCGDIR)/zlib
462 export NAN_NSPR ?= $(LCGDIR)/nspr
463 export NAN_GETTEXT ?= $(LCGDIR)/gettext
464 ifeq ($(FREE_WINDOWS), true)
465 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/freegettext.a $(NAN_ICONV)/lib/freeiconv.a
466 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
467 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/lib25_vs2005/libpython25.a
468 export NAN_FREETYPE ?= $(LCGDIR)/gcc/freetype
469 export NAN_ODE ?= $(LCGDIR)/gcc/ode
470 export NAN_SDL ?= $(LCGDIR)/gcc/sdl
471 export NAN_OPENEXR ?= $(LCGDIR)/gcc/openexr
472 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
473 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
474 export NAN_PTHREADS ?= $(LCGDIR)/pthreads
476 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/gnu_gettext.lib $(NAN_ICONV)/lib/iconv.lib
477 export NAN_PYTHON_BINARY ?= python
478 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python23.lib
479 export NAN_FREETYPE ?= $(LCGDIR)/freetype
480 export NAN_ODE ?= $(LCGDIR)/ode
481 export NAN_SDL ?= $(LCGDIR)/sdl
482 export NAN_OPENEXR ?= $(LCGDIR)/openexr
483 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/IlmImf -I$(NAN_OPENEXR)/include/Imath -I$(NAN_OPENEXR)/include/Iex
484 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/IlmImf.lib $(NAN_OPENEXR)/lib/Half.lib $(NAN_OPENEXR)/lib/Iex.lib
486 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
488 export NAN_WINTAB ?= $(LCGDIR)/wintab
489 # Uncomment the following line to use Mozilla inplace of netscape
490 # CPPFLAGS +=-DMOZ_NOT_NET
491 # Location of MOZILLA/Netscape header files...
492 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
493 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
494 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
495 # if this is not set.
496 export NAN_PYTHON_BINARY ?= python
497 export NAN_BUILDINFO ?= true
498 # Be paranoid regarding library creation (do not update archives)
499 export NAN_PARANOID ?= true
502 export INTERNATIONAL ?= true
504 # enable quicktime support
505 # export WITH_QUICKTIME ?= true
507 else # Platform not listed above
509 export NAN_PYTHON ?= $(LCGDIR)/python
510 export NAN_PYTHON_VERSION ?= 2.3
511 export NAN_PYTHON_BINARY ?= python
512 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
514 export NAN_OPENAL ?= $(LCGDIR)/openal
515 export NAN_JPEG ?= $(LCGDIR)/jpeg
516 export NAN_PNG ?= $(LCGDIR)/png
517 export NAN_TIFF ?= $(LCGDIR)/tiff
518 export NAN_SDL ?= $(LCGDIR)/sdl
519 export NAN_ODE ?= $(LCGDIR)/ode
520 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
521 export NAN_MESA ?= /usr/src/Mesa-3.1
522 export NAN_ZLIB ?= $(LCGDIR)/zlib
523 export NAN_NSPR ?= $(LCGDIR)/nspr
524 export NAN_FREETYPE ?= $(LCGDIR)/freetype
525 export NAN_GETTEXT ?= $(LCGDIR)/gettext
526 export NAN_SDL ?= $(shell sdl-config --prefix)
527 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
528 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
530 # Uncomment the following line to use Mozilla inplace of netscape
531 # CPPFLAGS +=-DMOZ_NOT_NET
532 # Location of MOZILLA/Netscape header files...
533 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
534 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
535 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
536 # if this is not set.
538 export NAN_BUILDINFO ?= true
539 # Be paranoid regarding library creation (do not update archives)
540 export NAN_PARANOID ?= true
543 #export INTERNATIONAL ?= true
545 endif # windows + fallback
555 # Don't want to build the gameengine?
556 ifeq ($(NAN_NO_KETSJI), true)
557 export NAN_JUST_BLENDERDYNAMIC=true
558 export NAN_NO_OPENAL=true