1 # -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
5 # ***** BEGIN GPL LICENSE BLOCK *****
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software Foundation,
19 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
22 # All rights reserved.
24 # The Original Code is: all of this file.
28 # ***** END GPL LICENSE BLOCK *****
30 # set some defaults when these are not overruled (?=) by environment variables
33 sinclude ../user-def.mk
36 ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
37 ifeq (all, $(findstring all, $(MAKECMDGOALS)))
39 ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
40 ERRTXT += "Use something like ..make all && make debug.. instead"
45 # First generic defaults for all platforms which should be constant.
46 # Note: ?= lets these defaults be overruled by environment variables,
47 export SRCHOME ?= $(NANBLENDERHOME)/source
48 export CONFIG_GUESS := $(shell ${SRCHOME}/tools/guess/guessconfig)
49 export OS := $(shell echo ${CONFIG_GUESS} | sed -e 's/-.*//')
50 export OS_VERSION := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-//' -e 's/-[^-]*//')
51 export CPU := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-[^-]*-//')
52 export MAKE_START := $(shell date "+%H:%M:%S %d-%b-%Y")
53 export NAN_LIBDIR ?= $(NANBLENDERHOME)/../lib
54 export NAN_OBJDIR ?= $(NANBLENDERHOME)/obj
55 # Library Config_Guess DIRectory
56 export LCGDIR = $(NAN_LIBDIR)/$(CONFIG_GUESS)
57 # Object Config_Guess DIRectory
58 export OCGDIR = $(NAN_OBJDIR)/$(CONFIG_GUESS)
60 # Determines what targets are built
61 export WITH_BF_DYNAMICOPENGL ?= true
62 export WITH_BF_STATICOPENGL ?= false
63 export WITH_BF_BLENDERGAMEENGINE ?= true
64 export WITH_BF_BLENDERPLAYER ?= true
65 ifeq ($(NAN_NO_PLUGIN), true)
66 export WITH_BF_WEBPLUGIN = false
68 export WITH_BF_WEBPLUGIN ?= false
71 export NAN_MOTO ?= $(LCGDIR)/moto
72 ifeq ($(FREE_WINDOWS), true)
73 export NAN_SOLID ?= $(LCGDIR)/gcc/solid
74 export NAN_QHULL ?= $(LCGDIR)/gcc/qhull
76 export NAN_SOLID ?= $(LCGDIR)/solid
77 export NAN_QHULL ?= $(LCGDIR)/qhull
79 export BF_PROFILE ?= false
80 export NAN_USE_BULLET ?= true
81 export NAN_BULLET2 ?= $(LCGDIR)/bullet2
82 export NAN_SUMO ?= $(SRCHOME)/gameengine/Physics/Sumo
83 export NAN_FUZZICS ?= $(SRCHOME)/gameengine/Physics/Sumo/Fuzzics
84 export NAN_BLENKEY ?= $(LCGDIR)/blenkey
85 export NAN_DECIMATION ?= $(LCGDIR)/decimation
86 export NAN_GUARDEDALLOC ?= $(LCGDIR)/guardedalloc
87 export NAN_IKSOLVER ?= $(LCGDIR)/iksolver
88 export NAN_BSP ?= $(LCGDIR)/bsp
89 export NAN_BOOLOP ?= $(LCGDIR)/boolop
90 export NAN_SOUNDSYSTEM ?= $(LCGDIR)/SoundSystem
91 export NAN_STRING ?= $(LCGDIR)/string
92 export NAN_MEMUTIL ?= $(LCGDIR)/memutil
93 export NAN_CONTAINER ?= $(LCGDIR)/container
94 export NAN_ACTION ?= $(LCGDIR)/action
95 export NAN_GHOST ?= $(LCGDIR)/ghost
96 export NAN_TEST_VERBOSITY ?= 1
97 export NAN_BMFONT ?= $(LCGDIR)/bmfont
98 export NAN_OPENNL ?= $(LCGDIR)/opennl
99 export NAN_ELBEEM ?= $(LCGDIR)/elbeem
100 export NAN_SUPERLU ?= $(LCGDIR)/superlu
101 export NAN_GLEW ?= $(LCGDIR)/glew
102 ifeq ($(FREE_WINDOWS), true)
103 export NAN_FTGL ?= $(LCGDIR)/gcc/ftgl
104 export NAN_FFMPEG ?= $(LCGDIR)/gcc/ffmpeg
105 export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a $(NAN_FFMPEG)/lib/libavdevice.a
107 export NAN_FTGL ?= $(LCGDIR)/ftgl
108 export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
109 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
111 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include -I$(NANBLENDERHOME)/extern/ffmpeg
113 ifeq ($(WITH_VERSE), true)
114 export NAN_VERSE ?= $(LCGDIR)/verse
117 export WITH_OPENEXR ?= true
118 export WITH_DDS ?= true
119 export WITH_OPENJPEG ?= true
122 ifeq ($(NAN_USE_FFMPEG_CONFIG), true)
123 export NAN_FFMPEG ?= $(shell ffmpeg-config --prefix)
124 export NAN_FFMPEGLIBS ?= $(shell ffmpeg-config --libs avformat avcodec)
125 export NAN_FFMPEGCFLAGS ?= $(shell ffmpeg-config --cflags)
128 # Platform Dependent settings go below:
132 export HOST = $(HOSTNAME)
133 export NAN_PYTHON ?= $(LCGDIR)/python
134 export NAN_PYTHON_VERSION ?= 2.3
135 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
136 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
137 export NAN_OPENAL ?= $(LCGDIR)/openal
138 export NAN_JPEG ?= $(LCGDIR)/jpeg
139 export NAN_PNG ?= $(LCGDIR)/png
140 export NAN_TIFF ?= $(LCGDIR)/tiff
141 export NAN_ODE ?= $(LCGDIR)/ode
142 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
143 export NAN_MESA ?= /usr/src/Mesa-3.1
144 export NAN_ZLIB ?= $(LCGDIR)/zlib
145 export NAN_NSPR ?= $(LCGDIR)/nspr
146 export NAN_FREETYPE ?= $(LCGDIR)/freetype
147 export NAN_GETTEXT ?= $(LCGDIR)/gettext
148 export NAN_SDL ?= $(shell sdl-config --prefix)
149 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
150 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
152 # Uncomment the following line to use Mozilla inplace of netscape
153 # CPPFLAGS +=-DMOZ_NOT_NET
154 # Location of MOZILLA/Netscape header files...
155 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
156 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
157 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
158 # if this is not set.
160 export NAN_BUILDINFO ?= true
161 # Be paranoid regarding library creation (do not update archives)
162 export NAN_PARANOID ?= true
165 #export INTERNATIONAL ?= true
167 # enable freetype2 support for text objects
168 #export WITH_FREETYPE2 ?= true
173 export ID = $(shell whoami)
174 export HOST = $(shell hostname -s)
176 export PY_FRAMEWORK ?= 1
179 export NAN_PYTHON ?= /System/Library/Frameworks/Python.framework/Versions/2.3
180 export NAN_PYTHON_VERSION ?= 2.3
181 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
182 export NAN_PYTHON_LIB ?= -framework Python
184 export NAN_PYTHON ?= /sw
185 export NAN_PYTHON_VERSION ?= 2.3
186 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
187 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
190 export NAN_OPENAL ?= $(LCGDIR)/openal
191 export NAN_JPEG ?= $(LCGDIR)/jpeg
192 export NAN_PNG ?= $(LCGDIR)/png
193 export NAN_TIFF ?= $(LCGDIR)/tiff
194 export NAN_ODE ?= $(LCGDIR)/ode
195 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
196 export NAN_MESA ?= /usr/src/Mesa-3.1
197 export NAN_ZLIB ?= $(LCGDIR)/zlib
198 export NAN_NSPR ?= $(LCGDIR)/nspr
199 export NAN_FREETYPE ?= $(LCGDIR)/freetype
200 export NAN_GETTEXT ?= $(LCGDIR)/gettext
201 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/libintl.a
203 export NAN_GETTEXT_LIB += $(NAN_GETTEXT)/lib/libintl.a
205 export NAN_SDL ?= $(LCGDIR)/sdl
206 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
207 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a -framework Cocoa -framework IOKit
209 export NAN_OPENEXR ?= $(LCGDIR)/openexr
210 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
211 ifeq ($(CPU),powerpc)
212 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
214 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a
217 # export NAN_NO_KETSJI=true
220 export NAN_NO_OPENAL=true
223 # Uncomment the following line to use Mozilla inplace of netscape
224 # CPPFLAGS +=-DMOZ_NOT_NET
225 # Location of MOZILLA/Netscape header files...
226 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
227 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
228 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
229 # if this is not set.
231 export NAN_BUILDINFO ?= true
232 # Be paranoid regarding library creation (do not update archives)
233 export NAN_PARANOID ?= true
235 # enable quicktime by default on OS X
236 export WITH_QUICKTIME ?= true
239 export INTERNATIONAL ?= true
241 # enable freetype2 support for text objects
242 export WITH_FREETYPE2 ?= true
247 export ID = $(shell whoami)
248 export HOST = $(shell hostname -s)
249 export FREEDESKTOP ?= true
251 export NAN_PYTHON ?= /usr/local
252 export NAN_PYTHON_VERSION ?= 2.5
253 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
254 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
255 export NAN_OPENAL ?= /usr/local
256 export NAN_JPEG ?= /usr/local
257 export NAN_PNG ?= /usr/local
258 export NAN_TIFF ?= /usr/local
259 export NAN_ODE ?= $(LCGDIR)/ode
260 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
261 export NAN_MESA ?= /usr/src/Mesa-3.1
262 export NAN_ZLIB ?= /usr
263 export NAN_NSPR ?= /usr/local
264 export NAN_FREETYPE ?= $(LCGDIR)/freetype
265 export NAN_GETTEXT ?= $(LCGDIR)/gettext
266 export NAN_SDL ?= $(shell sdl-config --prefix)
267 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
268 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
270 # Uncomment the following line to use Mozilla inplace of netscape
271 # CPPFLAGS +=-DMOZ_NOT_NET
272 # Location of MOZILLA/Netscape header files...
273 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
274 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
275 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
276 # if this is not set.
278 export NAN_BUILDINFO ?= true
279 # Be paranoid regarding library creation (do not update archives)
280 export NAN_PARANOID ?= true
283 # export INTERNATIONAL ?= true
285 # enable freetype2 support for text objects
286 # export WITH_FREETYPE2 ?= true
291 export ID = $(shell whoami)
292 export HOST = $(shell /usr/bsd/hostname -s)
293 #export NAN_NO_KETSJI=true
294 export NAN_JUST_BLENDERDYNAMIC=true
295 export NAN_PYTHON ?= $(LCGDIR)/python
296 export NAN_PYTHON_VERSION ?= 2.3
297 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
298 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a -lpthread
299 export NAN_OPENAL ?= $(LCGDIR)/openal
300 export NAN_JPEG ?= $(LCGDIR)/jpeg
301 export NAN_PNG ?= $(LCGDIR)/png
302 export NAN_TIFF ?= $(LCGDIR)/tiff
303 export NAN_ODE ?= $(LCGDIR)/ode
304 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
305 export NAN_MESA ?= /usr/src/Mesa-3.1
306 export NAN_ZLIB ?= $(LCGDIR)/zlib
307 export NAN_NSPR ?= $(LCGDIR)/nspr
308 export NAN_FREETYPE ?= $(LCGDIR)/freetype
309 export NAN_ICONV ?= $(LCGDIR)/iconv
310 export NAN_GETTEXT ?= $(LCGDIR)/gettext
311 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/libintl.a $(NAN_ICONV)/lib/libiconv.a
312 export NAN_SDL ?= $(LCGDIR)/sdl
313 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a
314 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include/SDL
315 export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
316 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
317 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include -I$(NANBLENDERHOME)/extern/ffmpeg
319 ifeq ($(IRIX_USE_GCC), true)
320 export NAN_OPENEXR ?= $(LCGDIR)/openexr/gcc
322 export NAN_OPENEXR ?= $(LCGDIR)/openexr
324 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
325 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a
327 # Uncomment the following line to use Mozilla inplace of netscape
328 # CPPFLAGS +=-DMOZ_NOT_NET
329 # Location of MOZILLA/Netscape header files...
330 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
331 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
332 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
333 # if this is not set.
335 export NAN_BUILDINFO ?= true
336 # Be paranoid regarding library creation (do not update archives)
337 export NAN_PARANOID ?= true
340 export INTERNATIONAL ?= true
342 # enable freetype2 support for text objects
343 export WITH_FREETYPE2 ?= true
348 export ID = $(shell whoami)
349 export HOST = $(shell hostname -s)
350 export FREEDESKTOP ?= true
352 export NAN_PYTHON ?= /usr
353 export NAN_PYTHON_VERSION ?= 2.5
354 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
355 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
356 export NAN_OPENAL ?= /usr
357 export NAN_JPEG ?= /usr
358 export NAN_PNG ?= /usr
359 export NAN_TIFF ?= /usr
360 export NAN_ODE ?= $(LCGDIR)/ode
361 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
362 export NAN_MESA ?= /usr
363 export NAN_ZLIB ?= /usr
364 export NAN_NSPR ?= $(LCGDIR)/nspr
365 export NAN_FREETYPE ?= /usr
366 export NAN_GETTEXT ?= /usr
367 export NAN_SDL ?= $(shell sdl-config --prefix)
368 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
369 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
371 ifneq ($(NAN_USE_FFMPEG_CONFIG), true)
372 export NAN_FFMPEG ?= /usr
373 export NAN_FFMPEGLIBS ?= -L$(NAN_FFMPEG)/lib -lavformat -lavcodec -lavutil -lswscale -lavdevice -ldts -lz
374 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
377 ifeq ($(WITH_OPENEXR), true)
378 export NAN_OPENEXR ?= $(shell pkg-config --variable=prefix OpenEXR )
379 export NAN_OPENEXR_INC ?= $(shell pkg-config --cflags OpenEXR )
380 export NAN_OPENEXR_LIBS ?= $(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell pkg-config --libs-only-l OpenEXR | sed -s "s/-l//g" )))
383 # Uncomment the following line to use Mozilla inplace of netscape
384 export CPPFLAGS += -DMOZ_NOT_NET
385 # Location of MOZILLA/Netscape header files...
386 export NAN_MOZILLA_INC ?= /usr/include/mozilla
387 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
388 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
389 # if this is not set.
391 export NAN_BUILDINFO ?= true
392 # Be paranoid regarding library creation (do not update archives)
393 export NAN_PARANOID ?= true
396 export INTERNATIONAL ?= true
398 # enable freetype2 support for text objects
399 export WITH_FREETYPE2 ?= true
401 export WITH_BINRELOC ?= true
403 # enable ffmpeg support
405 export WITH_FFMPEG ?= true
411 export ID = $(shell whoami)
412 export HOST = $(shell hostname -s)
413 export FREEDESKTOP ?= true
415 export NAN_PYTHON ?= $(LCGDIR)/python
416 export NAN_PYTHON_VERSION ?= 2.3
417 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
418 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
419 export NAN_OPENAL ?= $(LCGDIR)/openal
420 export NAN_JPEG ?= $(LCGDIR)/jpeg
421 export NAN_PNG ?= $(LCGDIR)/png
422 export NAN_TIFF ?= $(LCGDIR)/tiff
423 export NAN_ODE ?= $(LCGDIR)/ode
424 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
425 export NAN_MESA ?= /usr/src/Mesa-3.1
426 export NAN_ZLIB ?= $(LCGDIR)/zlib
427 export NAN_NSPR ?= $(LCGDIR)/nspr
428 export NAN_FREETYPE ?= $(LCGDIR)/freetype
429 export NAN_GETTEXT ?= $(LCGDIR)/gettext
430 export NAN_SDL ?= $(shell sdl-config --prefix)
431 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
432 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
434 # Uncomment the following line to use Mozilla inplace of netscape
435 # CPPFLAGS +=-DMOZ_NOT_NET
436 # Location of MOZILLA/Netscape header files...
437 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
438 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
439 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
440 # if this is not set.
442 export NAN_BUILDINFO ?= true
443 # Be paranoid regarding library creation (do not update archives)
444 export NAN_PARANOID ?= true
447 #export INTERNATIONAL ?= true
449 # enable freetype2 support for text objects
450 #export WITH_FREETYPE2 ?= true
455 export ID = $(shell /usr/ucb/whoami)
456 export HOST = $(shell hostname)
457 export NAN_PYTHON ?= $(LCGDIR)/python
458 export NAN_PYTHON_VERSION ?= 2.5
459 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
460 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
461 export NAN_OPENAL ?= $(LCGDIR)/openal
462 export NAN_JPEG ?= $(LCGDIR)/jpeg
463 export NAN_PNG ?= $(LCGDIR)/png
464 export NAN_TIFF ?= /usr
465 export NAN_ODE ?= $(LCGDIR)/ode
466 export NAN_TERRAPLAY ?=
467 export NAN_MESA ?= /usr/X11
468 export NAN_ZLIB ?= $(LCGDIR)/zlib
469 export NAN_NSPR ?= $(LCGDIR)/nspr
470 export NAN_FREETYPE ?= $(LCGDIR)/freetype
471 export NAN_GETTEXT ?= $(LCGDIR)/gettext
472 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/libintl.a $(NAN_GETTEXT)/lib/libiconv.a
473 export NAN_SDL ?= $(LCGDIR)/sdl
474 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include/SDL
475 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a
477 # this only exists at the moment for i386-64 CPU Types at the moment
478 export NAN_OPENEXR ?= $(LCGDIR)/openexr
479 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
480 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
482 # Uncomment the following line to use Mozilla inplace of netscape
483 # CPPFLAGS +=-DMOZ_NOT_NET
484 # Location of MOZILLA/Netscape header files...
485 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
486 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
487 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
488 # if this is not set.
490 export NAN_BUILDINFO ?= true
491 # Be paranoid regarding library creation (do not update archives)
492 export NAN_PARANOID ?= true
495 #export INTERNATIONAL ?= true
497 # enable freetype2 support for text objects
498 #export WITH_FREETYPE2 ?= true
503 export ID = $(LOGNAME)
504 export NAN_PYTHON ?= $(LCGDIR)/python
505 export NAN_ICONV ?= $(LCGDIR)/iconv
506 export NAN_PYTHON_VERSION ?= 2.5
507 export NAN_OPENAL ?= $(LCGDIR)/openal
508 export NAN_JPEG ?= $(LCGDIR)/jpeg
509 export NAN_PNG ?= $(LCGDIR)/png
510 export NAN_TIFF ?= $(LCGDIR)/tiff
511 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
512 export NAN_MESA ?= /usr/src/Mesa-3.1
513 export NAN_ZLIB ?= $(LCGDIR)/zlib
514 export NAN_NSPR ?= $(LCGDIR)/nspr
515 export NAN_GETTEXT ?= $(LCGDIR)/gettext
516 ifeq ($(FREE_WINDOWS), true)
517 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/freegettext.a $(NAN_ICONV)/lib/freeiconv.a
518 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
519 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/lib25_vs2005/libpython25.a
520 export NAN_FREETYPE ?= $(LCGDIR)/gcc/freetype
521 export NAN_ODE ?= $(LCGDIR)/gcc/ode
522 export NAN_SDL ?= $(LCGDIR)/gcc/sdl
523 export NAN_OPENEXR ?= $(LCGDIR)/gcc/openexr
524 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
525 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
526 export NAN_PTHREADS ?= $(LCGDIR)/pthreads
528 export NAN_GETTEXT_LIB ?= $(NAN_GETTEXT)/lib/gnu_gettext.lib $(NAN_ICONV)/lib/iconv.lib
529 export NAN_PYTHON_BINARY ?= python
530 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python23.lib
531 export NAN_FREETYPE ?= $(LCGDIR)/freetype
532 export NAN_ODE ?= $(LCGDIR)/ode
533 export NAN_SDL ?= $(LCGDIR)/sdl
534 export NAN_OPENEXR ?= $(LCGDIR)/openexr
535 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/IlmImf -I$(NAN_OPENEXR)/include/Imath -I$(NAN_OPENEXR)/include/Iex
536 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/IlmImf.lib $(NAN_OPENEXR)/lib/Half.lib $(NAN_OPENEXR)/lib/Iex.lib
538 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
540 export NAN_WINTAB ?= $(LCGDIR)/wintab
541 # Uncomment the following line to use Mozilla inplace of netscape
542 # CPPFLAGS +=-DMOZ_NOT_NET
543 # Location of MOZILLA/Netscape header files...
544 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
545 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
546 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
547 # if this is not set.
548 export NAN_PYTHON_BINARY ?= python
549 export NAN_BUILDINFO ?= true
550 # Be paranoid regarding library creation (do not update archives)
551 export NAN_PARANOID ?= true
554 export INTERNATIONAL ?= true
556 # enable freetype2 support for text objects
557 export WITH_FREETYPE2 ?= true
559 # enable quicktime support
560 # export WITH_QUICKTIME ?= true
562 else # Platform not listed above
564 export NAN_PYTHON ?= $(LCGDIR)/python
565 export NAN_PYTHON_VERSION ?= 2.3
566 export NAN_PYTHON_BINARY ?= python
567 export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
569 export NAN_OPENAL ?= $(LCGDIR)/openal
570 export NAN_JPEG ?= $(LCGDIR)/jpeg
571 export NAN_PNG ?= $(LCGDIR)/png
572 export NAN_TIFF ?= $(LCGDIR)/tiff
573 export NAN_SDL ?= $(LCGDIR)/sdl
574 export NAN_ODE ?= $(LCGDIR)/ode
575 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
576 export NAN_MESA ?= /usr/src/Mesa-3.1
577 export NAN_ZLIB ?= $(LCGDIR)/zlib
578 export NAN_NSPR ?= $(LCGDIR)/nspr
579 export NAN_FREETYPE ?= $(LCGDIR)/freetype
580 export NAN_GETTEXT ?= $(LCGDIR)/gettext
581 export NAN_SDL ?= $(shell sdl-config --prefix)
582 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
583 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
585 # Uncomment the following line to use Mozilla inplace of netscape
586 # CPPFLAGS +=-DMOZ_NOT_NET
587 # Location of MOZILLA/Netscape header files...
588 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
589 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
590 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
591 # if this is not set.
593 export NAN_BUILDINFO ?= true
594 # Be paranoid regarding library creation (do not update archives)
595 export NAN_PARANOID ?= true
598 #export INTERNATIONAL ?= true
600 # enable freetype2 support for text objects
601 #export WITH_FREETYPE2 ?= true
603 endif # windows + fallback
614 # Don't want to build the gameengine?
615 ifeq ($(NAN_NO_KETSJI), true)
616 export NAN_JUST_BLENDERDYNAMIC=true
617 export NAN_NO_OPENAL=true
620 # INTERNATIONAL implies WITH_FREETYPE2
621 ifeq ($(INTERNATIONAL), true)
622 export WITH_FREETYPE2=true