2009-03-19 01:50:45 +00:00
|
|
|
# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
|
|
|
|
# vim: tabstop=8
|
2004-01-05 00:06:11 +00:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
2008-01-07 19:13:47 +00:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
2004-01-05 00:06:11 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
2008-01-07 19:13:47 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
2004-01-05 00:06:11 +00:00
|
|
|
#
|
2002-10-12 11:37:38 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
2004-01-05 00:06:11 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2010-08-10 21:22:26 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2004-01-05 00:06:11 +00:00
|
|
|
#
|
|
|
|
# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# The Original Code is: all of this file.
|
|
|
|
#
|
2009-03-19 01:50:45 +00:00
|
|
|
# Contributor(s): GSR
|
2004-01-05 00:06:11 +00:00
|
|
|
#
|
2008-01-07 19:13:47 +00:00
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
2004-01-05 00:06:11 +00:00
|
|
|
#
|
|
|
|
# Top level makefile. Start looping through subdirs and link....
|
|
|
|
#
|
|
|
|
|
|
|
|
ifndef NANENV
|
|
|
|
export NANENV := $(shell env | grep NAN_)
|
|
|
|
endif
|
|
|
|
|
|
|
|
include nan_definitions.mk
|
|
|
|
|
2004-03-21 19:59:51 +00:00
|
|
|
DIRS = creator blender kernel
|
|
|
|
|
|
|
|
ifneq ($(NAN_NO_KETSJI),true)
|
|
|
|
DIRS += gameengine
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
ifeq ($(OS),windows)
|
|
|
|
DIRS += icons
|
|
|
|
endif
|
|
|
|
|
|
|
|
########## buildinfo kludge ###################
|
|
|
|
CPPFLAGS += -I../Physics/common
|
|
|
|
CPPFLAGS += -I../Physics/Dummy
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
BUILDINFO_O = $(DIR)/$(DEBUG_DIR)buildinfo.o
|
|
|
|
BUILDINFO_C = $(SRCHOME)/creator/buildinfo.c
|
2010-10-03 16:30:10 +00:00
|
|
|
BUILDINFO_INC = -I$(SRCHOME)/blender/blenkernel
|
2004-01-05 00:06:11 +00:00
|
|
|
BUILD_DATE := $(shell date "+%Y-%m-%d")
|
|
|
|
BUILD_TIME := $(shell date "+%H:%M:%S")
|
2009-03-19 01:50:45 +00:00
|
|
|
BUILD_REV := $(shell svnversion)
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
############# set pyplayerlib ##################
|
|
|
|
|
|
|
|
|
|
|
|
############# libraries ##################
|
|
|
|
# COMLIB COMmon LIBraries for all targets
|
|
|
|
# BPLIB Browser Plugin LIBraries
|
|
|
|
# SPLIB1 Standalone Player LIBraries (pre COMLIB)
|
|
|
|
# SPLIB Standalone Player LIBraries (post COMLIB)
|
2008-01-11 16:56:00 +00:00
|
|
|
# PULIB PUblisher LIBraries
|
|
|
|
# GRPLIB Gui and Render LIBraries for Publisher
|
2004-01-05 00:06:11 +00:00
|
|
|
# LLIBS dynamic system libraries
|
|
|
|
# SADD Static OpenGL libraries
|
|
|
|
# DADD Dynamic OpenGL libraries
|
|
|
|
# NSPLUGLIB PLUGin LIBraries for ns-style api
|
|
|
|
# PLUGAPPLIB libs that form the application to be plugged in
|
|
|
|
# Note: the order is important here
|
|
|
|
|
2009-08-11 18:39:27 +00:00
|
|
|
|
2008-10-31 23:50:02 +00:00
|
|
|
GRPLIB = $(OCGDIR)/creator/$(DEBUG_DIR)libcreator.a
|
2008-01-11 16:56:00 +00:00
|
|
|
GRPLIB += $(OCGDIR)/blender/windowmanager/$(DEBUG_DIR)libwindowmanager.a
|
|
|
|
GRPLIB += $(NAN_GHOST)/lib/$(DEBUG_DIR)libghost.a
|
|
|
|
GRPLIB += $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
|
|
|
GRPLIB += $(OCGDIR)/blender/render/$(DEBUG_DIR)librender.a
|
2009-10-06 17:01:00 +00:00
|
|
|
GRPLIB += $(OCGDIR)/blender/render/$(DEBUG_DIR)librender_raytrace.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
# nlin: the reason that some libraries appear more than once below is
|
|
|
|
# to handle circular dependencies in linking among libraries... some
|
|
|
|
# linkers (e.g. under Linux) need libs to be specified multiple times
|
|
|
|
# to properly resolve circular dependencies. ugly, but it works...
|
|
|
|
# the repeat entries could probably be trimmed down.
|
2007-03-27 15:42:27 +00:00
|
|
|
COMLIB = $(OCGDIR)/blender/blenkernel/$(DEBUG_DIR)libblenkernel.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/blenloader/$(DEBUG_DIR)libblenloader.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/blenpluginapi/$(DEBUG_DIR)libblenpluginapi.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/nodes_shd/$(DEBUG_DIR)libnodes_shd.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/nodes_cmp/$(DEBUG_DIR)libnodes_cmp.a
|
2008-11-12 22:03:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/nodes_tex/$(DEBUG_DIR)libnodes_tex.a
|
2007-04-05 09:50:12 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/nodes/$(DEBUG_DIR)libnodes.a
|
2007-03-27 15:42:27 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/imbuf/$(DEBUG_DIR)libimbuf.a
|
2009-09-25 18:47:43 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/ikplugin/$(DEBUG_DIR)libikplugin.a
|
2010-04-12 01:23:55 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/modifiers/$(DEBUG_DIR)libmodifiers.a
|
2009-03-19 01:50:45 +00:00
|
|
|
COMLIB += $(NAN_IKSOLVER)/lib/$(DEBUG_DIR)libiksolver.a
|
2009-09-25 18:47:43 +00:00
|
|
|
COMLIB += $(NAN_ITASC)/lib/$(DEBUG_DIR)libitasc.a
|
2009-09-25 22:38:15 +00:00
|
|
|
COMLIB += $(NAN_ITASC)/lib/$(DEBUG_DIR)libitasc_kdl.a
|
|
|
|
COMLIB += $(NAN_ITASC)/lib/$(DEBUG_DIR)libitasc_kdl_util.a
|
2009-03-19 01:50:45 +00:00
|
|
|
COMLIB += $(NAN_MOTO)/lib/$(DEBUG_DIR)libmoto.a
|
|
|
|
COMLIB += $(NAN_SUPERLU)/lib/$(DEBUG_DIR)libsuperlu.a
|
2007-03-27 15:42:27 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/avi/$(DEBUG_DIR)libavi.a
|
|
|
|
COMLIB += $(NAN_JPEG)/lib/libjpeg.a
|
Merge of first part of changes from the apricot branch, especially
the features that are needed to run the game. Compile tested with
scons, make, but not cmake, that seems to have an issue not related
to these changes. The changes include:
* GLSL support in the viewport and game engine, enable in the game
menu in textured draw mode.
* Synced and merged part of the duplicated blender and gameengine/
gameplayer drawing code.
* Further refactoring of game engine drawing code, especially mesh
storage changed a lot.
* Optimizations in game engine armatures to avoid recomputations.
* A python function to get the framerate estimate in game.
* An option take object color into account in materials.
* An option to restrict shadow casters to a lamp's layers.
* Increase from 10 to 18 texture slots for materials, lamps, word.
An extra texture slot shows up once the last slot is used.
* Memory limit for undo, not enabled by default yet because it
needs the .B.blend to be changed.
* Multiple undo for image painting.
* An offset for dupligroups, so not all objects in a group have to
be at the origin.
2008-09-04 20:51:28 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/gpu/$(DEBUG_DIR)libgpu.a
|
2009-03-19 01:50:45 +00:00
|
|
|
COMLIB += $(NAN_GLEW)/lib/$(DEBUG_DIR)libglew.a
|
2009-01-29 05:19:27 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/blenfont/$(DEBUG_DIR)libblenfont.a
|
2010-08-16 17:07:59 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/python/$(DEBUG_DIR)libpython.a
|
2009-08-10 01:56:54 +00:00
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaudaspace.a
|
2010-08-17 01:50:47 +00:00
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_python.a
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaudaspace.a
|
2009-08-10 01:56:54 +00:00
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_src.a
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_fx.a
|
Update Makefiles for audaspace.
This add support for: sdl, ffmpeg, openal, jack and sndfile.
We have new options:
WITH_OPENAL, default false
WITH_JACK, default false
WITH_SNDFILE, default false
and with this:
NAN_OPENAL, default /usr
NAN_JACK, default /usr
NAN_JACKCFLAGS, default -I$(NAN_JACK)/include/jack
NAN_JACKLIBS, default $(NAN_JACK)/lib/libjack.a
NAN_SNDFILE, default /usr
NAN_SNDFILECFLAGS, default -I$(NAN_SNDFILE)/include
NAN_SNDFILELIBS, default $(NAN_SNDFILE)/lib/libsndfile.
Also add two new option on source/Makefile for jack and sndfile libs,
but only for linux, so let me know for other OS.
2009-08-21 22:56:26 +00:00
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_sdl.a
|
|
|
|
ifeq ($(WITH_FFMPEG),true)
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_ffmpeg.a
|
|
|
|
endif
|
|
|
|
ifeq ($(WITH_OPENAL),true)
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_openal.a
|
|
|
|
endif
|
|
|
|
ifeq ($(WITH_JACK),true)
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_jack.a
|
|
|
|
endif
|
|
|
|
ifeq ($(WITH_SNDFILE),true)
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_sndfile.a
|
|
|
|
endif
|
2009-12-28 23:40:20 +00:00
|
|
|
ifeq ($(WITH_FFTW3),true)
|
|
|
|
COMLIB += $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_fftw.a
|
|
|
|
endif
|
2010-08-17 01:50:47 +00:00
|
|
|
COMLIB += $(NAN_SAMPLERATE)/lib/$(DEBUG_DIR)libsamplerate.a
|
|
|
|
COMLIB += $(NAN_LZO)/lib/$(DEBUG_DIR)libminilzo.a
|
|
|
|
COMLIB += $(NAN_LZMA)/lib/$(DEBUG_DIR)liblzma.a
|
|
|
|
COMLIB += $(NAN_BSP)/lib/$(DEBUG_DIR)libbsp.a
|
|
|
|
COMLIB += $(NAN_BOOLOP)/lib/$(DEBUG_DIR)libboolop.a
|
|
|
|
COMLIB += $(NAN_MOTO)/lib/$(DEBUG_DIR)libmoto.a
|
|
|
|
COMLIB += $(NAN_DECIMATION)/lib/$(DEBUG_DIR)libdecimation.a
|
|
|
|
COMLIB += $(NAN_GHOST)/lib/$(DEBUG_DIR)libghost.a
|
|
|
|
|
2009-12-28 23:40:20 +00:00
|
|
|
|
2004-03-21 19:59:51 +00:00
|
|
|
ifneq ($(NAN_NO_KETSJI),true)
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/bloutines/$(DEBUG_DIR)libbloutines.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
|
2004-03-28 21:56:00 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/ketsji/$(DEBUG_DIR)libketsji.a
|
2006-01-09 02:18:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
|
2006-01-11 20:25:04 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/ketsji/$(DEBUG_DIR)libketsji.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
|
2005-10-23 17:55:19 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/blbullet/$(DEBUG_DIR)libblbullet.a
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/ketsji/$(DEBUG_DIR)libketsji.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/logic/$(DEBUG_DIR)liblogic.a
|
2005-01-24 16:16:50 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/logic/Joystick/$(DEBUG_DIR)libJoystick.a
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/rasterizer/$(DEBUG_DIR)librasterizer.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/OpenGLrasterizer/$(DEBUG_DIR)libOpenGLrasterizer.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/expression/$(DEBUG_DIR)libexpression.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/scenegraph/$(DEBUG_DIR)libscenegraph.a
|
2008-11-02 18:12:45 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/videotex/$(DEBUG_DIR)libvideotex.a
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(NAN_MOTO)/lib/libmoto.a
|
|
|
|
COMLIB += $(NAN_SND_LIBS)
|
|
|
|
COMLIB += $(OCGDIR)/kernel/gen_system/$(DEBUG_DIR)libgen_system.a
|
|
|
|
COMLIB += $(OCGDIR)/kernel/gen_messaging/$(DEBUG_DIR)libgen_messaging.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/ketsji/KXNetwork/$(DEBUG_DIR)libKXNetwork.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/Network/$(DEBUG_DIR)libNetwork.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/Network/LoopBackNetwork/$(DEBUG_DIR)libLoopBackNetwork.a
|
2006-11-22 19:05:35 +00:00
|
|
|
COMLIB += $(NAN_BULLET2)/lib/libbullet2.a
|
2004-03-21 19:59:51 +00:00
|
|
|
endif
|
2007-03-27 15:42:27 +00:00
|
|
|
|
2009-06-08 20:08:19 +00:00
|
|
|
# Cloth requires bullet2, gameegine does not matter anymore
|
|
|
|
#COMLIB += $(NAN_BULLET2)/lib/libbullet2.a
|
|
|
|
|
2008-10-31 23:50:02 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/makesdna/$(DEBUG_DIR)libdna.a
|
2007-03-27 15:42:27 +00:00
|
|
|
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
|
|
|
|
COMLIB += $(NAN_MEMUTIL)/lib/libmemutil.a
|
|
|
|
COMLIB += $(NAN_PNG)/lib/libpng.a
|
2009-12-09 17:53:52 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/python/$(DEBUG_DIR)libpython.a # This was a PULIB up to circa r25248
|
2009-06-18 19:25:58 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/gen_python/$(DEBUG_DIR)libgen_python.a
|
2010-01-22 16:28:16 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
|
|
|
|
ifeq ($(WITH_QUICKTIME), true)
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
|
|
|
|
2008-01-11 16:56:00 +00:00
|
|
|
ifeq ($(WITH_OPENEXR), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/imbuf/openexr/$(DEBUG_DIR)libopenexr.a
|
|
|
|
endif
|
|
|
|
|
2009-03-10 16:04:29 +00:00
|
|
|
ifeq ($(WITH_OPENJPEG), true)
|
2009-11-09 20:08:19 +00:00
|
|
|
ifndef BF_OPENJPEG_LIBS
|
|
|
|
COMLIB += $(OCGDIR)/extern/openjpeg/$(DEBUG_DIR)libopenjpeg.a
|
|
|
|
else
|
|
|
|
COMLIB += $(BF_OPENJPEG_LIBS)
|
|
|
|
endif
|
2009-03-10 16:04:29 +00:00
|
|
|
endif
|
|
|
|
|
2010-08-03 11:25:34 +00:00
|
|
|
ifeq ($(WITH_CINEON), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/imbuf/cineon/$(DEBUG_DIR)libcineon.a
|
|
|
|
endif
|
2007-03-27 15:42:27 +00:00
|
|
|
|
2007-06-25 19:50:25 +00:00
|
|
|
ifeq ($(WITH_DDS), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/imbuf/dds/$(DEBUG_DIR)libdds.a
|
|
|
|
endif
|
|
|
|
|
2008-01-18 21:39:47 +00:00
|
|
|
ifeq ($(WITH_BINRELOC), true)
|
|
|
|
COMLIB += $(OCGDIR)/extern/binreloc/$(DEBUG_DIR)libbinreloc.a
|
|
|
|
endif
|
|
|
|
|
2010-01-10 09:11:48 +00:00
|
|
|
ifeq ($(WITH_OPENCOLLADA), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/bf_collada/$(DEBUG_DIR)/libbf_collada.a
|
|
|
|
COMLIB += $(BF_PCRE_LIBS)
|
|
|
|
endif
|
|
|
|
|
2009-05-05 23:10:32 +00:00
|
|
|
ifeq ($(OS), windows)
|
|
|
|
ifeq ($(FREE_WINDOWS), true)
|
2006-01-11 20:25:04 +00:00
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
|
2009-05-05 23:10:32 +00:00
|
|
|
else
|
2006-01-11 20:25:04 +00:00
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/freetype2ST.lib
|
2009-05-05 23:10:32 +00:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifeq ($(OS), irix)
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
|
2004-01-05 00:06:11 +00:00
|
|
|
else
|
2008-12-14 17:32:24 +00:00
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
|
2006-01-11 20:25:04 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS), irix)
|
2006-01-11 20:25:04 +00:00
|
|
|
COMLIB += $(NAN_SDL)/lib/libSDL.a
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
2007-03-27 15:42:27 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
ifeq ($(OS), windows)
|
|
|
|
ifeq ($(FREE_WINDOWS), true)
|
2006-01-11 20:25:04 +00:00
|
|
|
COMLIB += $(NAN_SDL)/lib/libSDL.a
|
2006-02-27 00:03:18 +00:00
|
|
|
COMLIB += $(NAN_PTHREADS)/lib/libpthreadGC2.a
|
2004-01-05 00:06:11 +00:00
|
|
|
else
|
2006-01-11 20:25:04 +00:00
|
|
|
COMLIB += $(NAN_SDL)/lib/SDL.lib
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-01-10 06:29:57 +00:00
|
|
|
ifeq ($(WITH_OPENEXR), true)
|
|
|
|
COMLIB += $(NAN_OPENEXR_LIBS)
|
|
|
|
endif
|
|
|
|
|
2008-12-12 10:18:26 +00:00
|
|
|
# note: space_api.a in begin of editors, screen.a in end
|
2008-09-14 03:51:51 +00:00
|
|
|
PULIB = $(NAN_MOTO)/lib/libmoto.a
|
2008-01-11 16:56:00 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_space/$(DEBUG_DIR)libed_space.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_sound/$(DEBUG_DIR)libed_sound.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_action/$(DEBUG_DIR)libed_action.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_nla/$(DEBUG_DIR)libed_nla.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_script/$(DEBUG_DIR)libed_script.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_text/$(DEBUG_DIR)libed_text.a
|
2009-06-16 13:09:36 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_logic/$(DEBUG_DIR)libed_logic.a
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_sequencer/$(DEBUG_DIR)libed_sequencer.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_file/$(DEBUG_DIR)libed_file.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_info/$(DEBUG_DIR)libed_info.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_buttons/$(DEBUG_DIR)libed_buttons.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_graph/$(DEBUG_DIR)libed_graph.a
|
2009-07-08 17:49:14 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_node/$(DEBUG_DIR)libed_node.a
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_outliner/$(DEBUG_DIR)libed_outliner.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_time/$(DEBUG_DIR)libed_time.a
|
2009-09-29 20:26:06 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_render/$(DEBUG_DIR)libed_render.a
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_view3d/$(DEBUG_DIR)libed_view3d.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_interface/$(DEBUG_DIR)libed_interface.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_object/$(DEBUG_DIR)libed_object.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_curve/$(DEBUG_DIR)libed_curve.a
|
2009-07-29 18:03:25 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_metaball/$(DEBUG_DIR)libed_metaball.a
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_armature/$(DEBUG_DIR)libed_armature.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_mesh/$(DEBUG_DIR)libed_mesh.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_sculpt_paint/$(DEBUG_DIR)libed_sculpt_paint.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_physics/$(DEBUG_DIR)libed_physics.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_animation/$(DEBUG_DIR)libed_animation.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_transform/$(DEBUG_DIR)libed_transform.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_util/$(DEBUG_DIR)libed_util.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_datafiles/$(DEBUG_DIR)libed_datafiles.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_image/$(DEBUG_DIR)libed_image.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_uvedit/$(DEBUG_DIR)libed_uvedit.a
|
|
|
|
PULIB += $(OCGDIR)/blender/ed_screen/$(DEBUG_DIR)libed_screen.a
|
2009-07-16 03:11:21 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_console/$(DEBUG_DIR)libed_console.a
|
2009-08-18 17:01:59 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_userpref/$(DEBUG_DIR)libed_userpref.a
|
2009-08-26 17:13:20 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_gpencil/$(DEBUG_DIR)libed_gpencil.a
|
2009-08-28 15:54:15 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/ed_opsound/$(DEBUG_DIR)libed_opsound.a
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/windowmanager/$(DEBUG_DIR)libwindowmanager.a
|
2008-10-31 23:50:02 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/makesrna/$(DEBUG_DIR)librna.a
|
2008-12-30 13:16:14 +00:00
|
|
|
# note, no idea but it suddenly doesn't compile :(
|
|
|
|
PULIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
|
2009-03-17 21:44:58 +00:00
|
|
|
PULIB += $(NAN_OPENNL)/lib/$(DEBUG_DIR)libopennl.a
|
|
|
|
PULIB += $(NAN_ELBEEM)/lib/$(DEBUG_DIR)libelbeem.a
|
2009-12-09 17:53:52 +00:00
|
|
|
PULIB += $(NAN_SMOKE)/lib/$(DEBUG_DIR)libsmoke.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
2004-03-21 19:59:51 +00:00
|
|
|
ifeq ($(NAN_NO_KETSJI),true)
|
2009-03-19 01:50:45 +00:00
|
|
|
PULIB += $(NAN_MOTO)/lib/$(DEBUG_DIR)libmoto.a
|
2008-01-11 16:56:00 +00:00
|
|
|
PULIB += $(OCGDIR)/kernel/gen_system/$(DEBUG_DIR)libgen_system.a
|
|
|
|
PULIB += $(OCGDIR)/kernel/gen_messaging/$(DEBUG_DIR)libgen_messaging.a
|
2004-03-21 19:59:51 +00:00
|
|
|
COMLIB += $(NAN_SND_LIBS)
|
|
|
|
endif
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
SPLIB1 = $(OCGDIR)/gameengine/GamePlayer/ghost/$(DEBUG_DIR)libghost.a
|
|
|
|
SPLIB1 += $(OCGDIR)/gameengine/GamePlayer/common/$(DEBUG_DIR)libcommon.a
|
2008-09-13 14:21:06 +00:00
|
|
|
SPLIB1 += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
|
2008-01-11 16:56:00 +00:00
|
|
|
SPLIB1 += $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
|
|
|
SPLIB1 += $(NAN_GHOST)/lib/$(DEBUG_DIR)libghost.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
2008-10-31 23:50:02 +00:00
|
|
|
SPLIB = $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
|
2008-01-11 16:56:00 +00:00
|
|
|
# this is used for the plugin. It uses some things from libz.a,
|
|
|
|
# but somehow it consistently fails to resolve these symbols... or
|
|
|
|
# can I just not check them? nm claims they aren't...
|
|
|
|
SPLIB += $(OCGDIR)/blender/blenkernel/blenkernel_blc/$(DEBUG_DIR)libblenkernel_blc.a
|
2008-10-31 23:50:02 +00:00
|
|
|
SPLIB += $(OCGDIR)/blender/makesrna/$(DEBUG_DIR)librna.a
|
2009-06-08 20:08:19 +00:00
|
|
|
SPLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
# These three need to be explicitly mentioned on the cl, because
|
|
|
|
# if they are offered as a lib, they are optimized away. (nzc)
|
|
|
|
NSPLUGLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)UnixShell.o
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)stubs.o
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)winstubs.o
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)Blender3DPlugin_native_implementation.o
|
2004-01-05 00:06:11 +00:00
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
# Here you can configure what sort of test to make for the plugin.
|
2004-01-05 00:06:11 +00:00
|
|
|
# PLUGTESTLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/test/$(DEBUG_DIR)libns_api_test_stub.a
|
|
|
|
# PLUGTESTLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/test/$(DEBUG_DIR)libns_api_test_colorcycle.a
|
|
|
|
# PLUGTESTLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/test/$(DEBUG_DIR)libns_api_test_gears.a
|
2007-03-27 15:42:27 +00:00
|
|
|
PLUGTESTLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/test/$(DEBUG_DIR)libns_api_test_threaded_gears.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
# XPCOM is done only for Linux for now
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "linux"))
|
|
|
|
ifeq ($(CPU),i386)
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)XPH_xpcom_hooks.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
PLUGAPPLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)libplugin_ketsji_hooks.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "freebsd linux irix solaris"))
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)PLG_X11_windowing.o
|
|
|
|
PLUGAPPLIB += $(OCGDIR)/gameengine/GamePlayer/common/unix/$(DEBUG_DIR)libunix.a
|
|
|
|
endif
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "windows"))
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)PLG_MSWindows_windowing.o
|
|
|
|
NSPLUGLIB += $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)npB3DPlg.res
|
|
|
|
PLUGAPPLIB += $(OCGDIR)/gameengine/GamePlayer/common/windows/$(DEBUG_DIR)libwindows.a
|
|
|
|
endif
|
2007-03-27 15:42:27 +00:00
|
|
|
|
|
|
|
PLUGAPPLIB += $(OCGDIR)/gameengine/GamePlayer/common/$(DEBUG_DIR)libcommon.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "linux"))
|
|
|
|
ifeq ($(CPU),i386)
|
2009-03-19 01:50:45 +00:00
|
|
|
PLUGAPPLIB_XPLINK = $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)_Blender3DPlugin_implementation_.o
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-01-11 16:56:00 +00:00
|
|
|
# A bit silly... but needed to resolve symbols.
|
|
|
|
PLUGREMLIB = $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
######################## OS dependencies (alphabetic!) ################
|
|
|
|
|
|
|
|
include nan_link.mk
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
ifeq ($(NAN_JUST_BLENDERDYNAMIC),true)
|
2004-01-05 00:06:11 +00:00
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
endif
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
ifeq ($(WITH_BF_DYNAMICOPENGL), true)
|
|
|
|
BINTARGETS += blenderdynamic
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
ifeq ($(WITH_BF_STATICOPENGL), true)
|
2004-01-05 00:06:11 +00:00
|
|
|
BINTARGETS += blenderstatic
|
|
|
|
endif
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
ifeq ($(WITH_BF_BLENDERPLAYER), true)
|
|
|
|
export WITH_BF_GAMEENGINE=true
|
2004-01-05 00:06:11 +00:00
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
endif
|
|
|
|
|
2007-03-27 15:42:27 +00:00
|
|
|
ifeq ($(WITH_BF_WEBPLUGIN), true)
|
2008-05-08 18:38:21 +00:00
|
|
|
BINTARGETS += plugin
|
|
|
|
ifeq ($(OS),linux)
|
|
|
|
ifeq ($(CPU),i386)
|
|
|
|
BINTARGETS += xplink
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-07-17 02:44:24 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
Update Makefiles for audaspace.
This add support for: sdl, ffmpeg, openal, jack and sndfile.
We have new options:
WITH_OPENAL, default false
WITH_JACK, default false
WITH_SNDFILE, default false
and with this:
NAN_OPENAL, default /usr
NAN_JACK, default /usr
NAN_JACKCFLAGS, default -I$(NAN_JACK)/include/jack
NAN_JACKLIBS, default $(NAN_JACK)/lib/libjack.a
NAN_SNDFILE, default /usr
NAN_SNDFILECFLAGS, default -I$(NAN_SNDFILE)/include
NAN_SNDFILELIBS, default $(NAN_SNDFILE)/lib/libsndfile.
Also add two new option on source/Makefile for jack and sndfile libs,
but only for linux, so let me know for other OS.
2009-08-21 22:56:26 +00:00
|
|
|
ifeq ($(WITH_OPENAL),true)
|
2004-01-05 00:06:11 +00:00
|
|
|
ifeq ($(OS),$(findstring $(OS), "freebsd linux windows"))
|
2008-03-23 12:59:26 +00:00
|
|
|
ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc x86_64 parisc64"))
|
2004-01-05 00:06:11 +00:00
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
|
|
|
|
else
|
|
|
|
ifeq ($(OS),windows)
|
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/openal_static.lib
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
else
|
2004-12-09 13:13:24 +00:00
|
|
|
ifeq ($(OS),darwin)
|
2004-04-14 13:00:36 +00:00
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
|
2004-01-05 00:06:11 +00:00
|
|
|
else
|
2004-12-09 13:46:38 +00:00
|
|
|
ifeq ($(OS), solaris)
|
2004-12-09 13:13:24 +00:00
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
Update Makefiles for audaspace.
This add support for: sdl, ffmpeg, openal, jack and sndfile.
We have new options:
WITH_OPENAL, default false
WITH_JACK, default false
WITH_SNDFILE, default false
and with this:
NAN_OPENAL, default /usr
NAN_JACK, default /usr
NAN_JACKCFLAGS, default -I$(NAN_JACK)/include/jack
NAN_JACKLIBS, default $(NAN_JACK)/lib/libjack.a
NAN_SNDFILE, default /usr
NAN_SNDFILECFLAGS, default -I$(NAN_SNDFILE)/include
NAN_SNDFILELIBS, default $(NAN_SNDFILE)/lib/libsndfile.
Also add two new option on source/Makefile for jack and sndfile libs,
but only for linux, so let me know for other OS.
2009-08-21 22:56:26 +00:00
|
|
|
ifeq ($(WITH_JACK),true)
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "linux"))
|
|
|
|
NAN_SND_LIBS += $(NAN_JACKLIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(WITH_SNDFILE),true)
|
2010-08-04 08:42:18 +00:00
|
|
|
ifeq ($(OS),$(findstring $(OS), "linux darwin"))
|
Update Makefiles for audaspace.
This add support for: sdl, ffmpeg, openal, jack and sndfile.
We have new options:
WITH_OPENAL, default false
WITH_JACK, default false
WITH_SNDFILE, default false
and with this:
NAN_OPENAL, default /usr
NAN_JACK, default /usr
NAN_JACKCFLAGS, default -I$(NAN_JACK)/include/jack
NAN_JACKLIBS, default $(NAN_JACK)/lib/libjack.a
NAN_SNDFILE, default /usr
NAN_SNDFILECFLAGS, default -I$(NAN_SNDFILE)/include
NAN_SNDFILELIBS, default $(NAN_SNDFILE)/lib/libsndfile.
Also add two new option on source/Makefile for jack and sndfile libs,
but only for linux, so let me know for other OS.
2009-08-21 22:56:26 +00:00
|
|
|
NAN_SND_LIBS += $(NAN_SNDFILELIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
ifeq ($(OS),windows)
|
|
|
|
|
|
|
|
# Might need to change this to $(NAN_MOZILLA_LIB)/nspr4.lib
|
|
|
|
NSPLUGLIB += $(NAN_NSPR)/lib/nspr4.lib
|
|
|
|
|
|
|
|
BINTARGETS = blenderdynamic
|
2005-08-23 01:31:11 +00:00
|
|
|
ifeq ($(FREE_WINDOWS),true)
|
|
|
|
ifneq ($(NAN_NO_KETSJI),true)
|
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
BINTARGETS += blenderdynplayer
|
|
|
|
BINTARGETS += plugin
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
2008-01-11 16:56:00 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/icons/$(DEBUG_DIR)winblender.res
|
|
|
|
PULIB += $(NAN_ZLIB)/lib/libz.a
|
2004-01-05 00:06:11 +00:00
|
|
|
SPLIB += $(OCGDIR)/blender/icons/$(DEBUG_DIR)winblender.res
|
|
|
|
SPLIB += $(NAN_ZLIB)/lib/libz.a
|
2004-03-21 19:59:51 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
# prepare for NAN_BUILDINFO compile at the *sigh* link rules below
|
|
|
|
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
CSRCS =
|
|
|
|
ALLTARGETS =
|
|
|
|
include nan_compile.mk
|
|
|
|
endif
|
|
|
|
|
|
|
|
################## target rules ########################
|
|
|
|
|
|
|
|
all debug ::
|
|
|
|
@echo "****> Make $@ by $(ID)@$(HOST) at $(MAKE_START) on $(CONFIG_GUESS)"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NANENV
|
2004-01-05 00:06:11 +00:00
|
|
|
@for n in $(NANENV); do \
|
|
|
|
echo " $$n"; \
|
2002-10-12 11:37:38 +00:00
|
|
|
done
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
DIR = $(OCGDIR)
|
|
|
|
SOURCEDIR = source
|
2004-01-04 22:10:36 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
include nan_subdirs.mk
|
2004-01-04 22:10:36 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
################## target rules ########################
|
2004-01-04 22:10:36 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
all:: link
|
2004-01-04 22:10:36 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
debug debuglink::
|
|
|
|
@$(MAKE) link DEBUG_DIR="debug/" NANENV=$(NANENV)
|
2004-01-04 22:10:36 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
clean:: linkclean debuglinkclean
|
2004-01-04 22:10:36 +00:00
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
link: $(BINTARGETS)
|
2010-06-12 23:09:01 +00:00
|
|
|
@echo "****> Build SVN rev $(BUILD_REV), $(MAKE_START) - `date '+%H:%M:%S %d-%b-%Y'`"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NANENV
|
2004-01-05 00:06:11 +00:00
|
|
|
@for n in $(NANENV); do \
|
|
|
|
echo " $$n"; \
|
|
|
|
done
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
linkclean:
|
2005-05-22 01:21:01 +00:00
|
|
|
@$(RM) -r $(DIR)/blenderstatic* \
|
|
|
|
$(DIR)/blenderplayer* \
|
|
|
|
$(DIR)/bin/*
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
debuglinkclean:
|
2005-05-22 01:21:01 +00:00
|
|
|
@$(RM) -r $(DIR)/debug/blenderstatic* \
|
|
|
|
$(DIR)/debug/blenderplayer* \
|
|
|
|
$(DIR)/debug/bin/*
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
# Shortcut for Tinderbox release builds. Mortals don't use this.
|
|
|
|
release:
|
|
|
|
@$(MAKE) -C ../release/ all || exit 1;
|
|
|
|
|
|
|
|
############### Linker rules ###############
|
|
|
|
|
|
|
|
blenderstatic: $(DIR)/$(DEBUG_DIR)bin/blenderstatic
|
|
|
|
blenderdynamic: $(DIR)/$(DEBUG_DIR)bin/blender$(EXT)
|
|
|
|
blenderplayer: $(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT)
|
|
|
|
blenderdynplayer: $(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT)
|
|
|
|
|
|
|
|
# XPCOM connector only for linux so far...
|
|
|
|
ifeq ($(OS),linux)
|
|
|
|
xplink: $(DIR)/$(DEBUG_DIR)bin/Blender3DPlugin$(SOEXT)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Moz/NS plugin:
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "freebsd linux irix solaris"))
|
|
|
|
plugin: $(DIR)/$(DEBUG_DIR)bin/npBlender3DPlugin$(SOEXT)
|
|
|
|
ptest: $(DIR)/$(DEBUG_DIR)bin/npTestPlugin$(SOEXT)
|
|
|
|
endif
|
|
|
|
# Windows needs a 8.3 name... Why? Dunno...
|
|
|
|
ifeq ($(OS),windows)
|
|
|
|
ifneq ($(FREE_WINDOWS),true)
|
|
|
|
plugin: $(DIR)/$(DEBUG_DIR)npB3DPlg$(SOEXT)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-01-05 17:20:40 +00:00
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blenderstatic: $(OBJS) $(GRPLIB) $(PULIB) $(COMLIB)
|
2004-01-05 00:06:11 +00:00
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"static"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
2009-04-20 15:06:46 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderstatic $(BUILDINFO_O) $(OBJS) $(GRPLIB) $(PULIB) $(COMLIB) $(LLIBS) $(SADD) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2007-04-08 17:16:52 +00:00
|
|
|
ifeq ($(OS), darwin)
|
2007-03-27 15:42:27 +00:00
|
|
|
@$(MAKE) -C darwin/ APPLICATION=blenderstatic
|
2007-04-08 17:16:52 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
2009-03-19 01:50:45 +00:00
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blender$(EXT): $(OBJS) $(GRPLIB) $(PULIB) $(COMLIB)
|
2004-01-05 00:06:11 +00:00
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
2009-04-20 15:06:46 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blender$(EXT) $(BUILDINFO_O) $(OBJS) $(GRPLIB) $(PULIB) $(COMLIB) $(LLIBS) $(DADD) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2007-04-08 17:16:52 +00:00
|
|
|
ifeq ($(OS), darwin)
|
2007-03-27 15:42:27 +00:00
|
|
|
@$(MAKE) -C darwin/ APPLICATION=blender
|
2007-04-08 17:16:52 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT): $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
2009-04-20 15:06:46 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT) $(BUILDINFO_O) $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB) $(LLIBS) $(DADD) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2007-04-08 17:16:52 +00:00
|
|
|
ifeq ($(OS), darwin)
|
2007-03-27 15:42:27 +00:00
|
|
|
@$(MAKE) -C darwin/ APPLICATION=blenderplayer
|
2007-04-08 17:16:52 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT): $(OBJS) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
2009-04-20 15:06:46 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT) $(BUILDINFO_O) $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB) $(LLIBS) $(DADD) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2007-04-08 17:16:52 +00:00
|
|
|
ifeq ($(OS), darwin)
|
2007-03-27 15:42:27 +00:00
|
|
|
@$(MAKE) -C darwin/ APPLICATION=blenderplayer
|
2007-04-08 17:16:52 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/Blender3DPlugin$(SOEXT): $(PLUGAPPLIB_XPLINK)
|
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
2009-04-20 15:06:46 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(DYNLDFLAGS) -o $@ $(PLUGAPPLIB_XPLINK) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Windows build needs a def file? Why? For exposing functions from the
|
|
|
|
# dll to the outside world. However, this is alsi done internally..
|
|
|
|
DEFFILE = ./gameengine/GamePlayer/netscape/src/npB3DPlg.def
|
|
|
|
|
|
|
|
# Windows needs a specific name format for dll.s so we give it one.
|
|
|
|
$(DIR)/$(DEBUG_DIR)npB3DPlg$(SOEXT): $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2007-12-05 16:58:52 +00:00
|
|
|
# $(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB) $(PLUGREMLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB) $(PLUGREMLIB) $(LLIBS) $(DADD) $(LOPTS) /def:$(DEFFILE)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/npBlender3DPlugin$(SOEXT): $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
2007-12-05 16:58:52 +00:00
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB) $(PLUGREMLIB) $(LLIBS) $(DADD) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/npTestPlugin$(SOEXT): $(NSPLUGLIB)
|
|
|
|
@echo "****> Link $@"
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2010-10-03 16:30:10 +00:00
|
|
|
$(CCC) $(CCFLAGS) $(REL_CCFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_INC) $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
2007-03-27 15:42:27 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGTESTLIB) $(LLIBS) $(DADD) $(LOPTS)
|
2007-03-27 15:42:27 +00:00
|
|
|
ifdef NAN_BUILDINFO
|
2004-01-05 00:06:11 +00:00
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|