2004-01-05 00:06:11 +00:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# of the License, or (at your option) any later version. The Blender
|
|
|
|
# Foundation also sells licenses for use in proprietary software under
|
|
|
|
# the Blender License. See http://www.blender.org/BL/ for information
|
|
|
|
# about this.
|
|
|
|
#
|
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,
|
|
|
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
|
|
# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# The Original Code is: all of this file.
|
|
|
|
#
|
|
|
|
# Contributor(s): none yet.
|
|
|
|
#
|
|
|
|
# ***** END GPL/BL DUAL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
BUILD_DATE := $(shell date "+%Y-%m-%d")
|
|
|
|
BUILD_TIME := $(shell date "+%H:%M:%S")
|
|
|
|
endif
|
|
|
|
|
|
|
|
############# set pyplayerlib ##################
|
|
|
|
|
|
|
|
PYPLAYERLIB ?= $(PYLIB)
|
|
|
|
|
|
|
|
############# libraries ##################
|
|
|
|
# COMLIB COMmon LIBraries for all targets
|
|
|
|
# BPLIB Browser Plugin LIBraries
|
|
|
|
# SPLIB1 Standalone Player LIBraries (pre COMLIB)
|
|
|
|
# SPLIB Standalone Player LIBraries (post COMLIB)
|
|
|
|
# PULIB PUblisher LIBraries
|
|
|
|
# GRPLIB Gui and Render LIBraries for Publisher
|
|
|
|
# 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
|
|
|
|
|
|
|
|
GRPLIB = $(OCGDIR)/creator/$(DEBUG_DIR)libcreator.a
|
|
|
|
GRPLIB += $(OCGDIR)/blender/src/$(DEBUG_DIR)libsrcpublisher.a
|
|
|
|
GRPLIB += $(NAN_BSP)/lib/$(DEBUG_DIR)libbsp.a
|
Somehow, most files are missing from this commit, and I have no idea why,
so there will be more files following.
Anyway: NEW BOOLEANS from Google Summer of Code (Courtesy of Marc Freixas)
Known problems:
- Random freezes while using them as a modifier. This may not be directly
related to modifiers though - it's maybe just the huge number of
operations that leads to a higher probability of triggering a bug
- Static booleans (the first 3 entries in the WKEY menu) are borked
anyway, this is not due to this commit.
- Errors when exiting Blender (dupli_alloc stuff), is not related to this
commit, either.
Please test if everything works, and check the other build systems, I only
know that make works.
Also, compare the results of, say, cube-cylinder, in old and new booleans
:)
2005-10-28 19:54:16 +00:00
|
|
|
GRPLIB += $(NAN_BOOLOP)/lib/$(DEBUG_DIR)libboolop.a
|
2004-01-05 00:06:11 +00:00
|
|
|
GRPLIB += $(NAN_SOUNDSYSTEM)/lib/$(DEBUG_DIR)libSoundSystem.a
|
|
|
|
GRPLIB += $(NAN_GHOST)/lib/$(DEBUG_DIR)libghost.a
|
|
|
|
GRPLIB += $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
|
|
|
GRPLIB += $(OCGDIR)/blender/img/$(DEBUG_DIR)libimg.a
|
|
|
|
GRPLIB += $(OCGDIR)/blender/render/$(DEBUG_DIR)librender.a
|
|
|
|
GRPLIB += $(OCGDIR)/blender/radiosity/$(DEBUG_DIR)libradiosity.a
|
2004-07-13 11:42:13 +00:00
|
|
|
GRPLIB += $(NAN_OPENNL)/lib/$(DEBUG_DIR)libopennl.a
|
2004-11-14 13:44:47 +00:00
|
|
|
GRPLIB += $(NAN_SUPERLU)/lib/$(DEBUG_DIR)libsuperlu.a
|
2004-01-05 00:06:11 +00:00
|
|
|
GRPLIB += $(OCGDIR)/blender/python/$(DEBUG_DIR)libpython.a
|
|
|
|
|
2004-11-14 13:44:47 +00:00
|
|
|
|
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.
|
|
|
|
COMLIB = $(OCGDIR)/blender/blenkernel/$(DEBUG_DIR)libblenkernel.a
|
2005-07-26 07:15:17 +00:00
|
|
|
COMLIB += $(NAN_DECIMATION)/lib/libdecimation.a
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/blenloader/$(DEBUG_DIR)libblenloader.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/blenpluginapi/$(DEBUG_DIR)libblenpluginapi.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/imbuf/$(DEBUG_DIR)libimbuf.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
|
|
|
|
COMLIB += $(OCGDIR)/blender/avi/$(DEBUG_DIR)libavi.a
|
|
|
|
COMLIB += $(NAN_JPEG)/lib/libjpeg.a
|
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
|
2004-07-18 18:42:36 +00:00
|
|
|
COMLIB += $(NAN_SOLID)/lib/libsolid.a
|
2004-07-19 02:43:07 +00:00
|
|
|
COMLIB += $(NAN_SOLID)/lib/libsolid_broad.a
|
|
|
|
COMLIB += $(NAN_SOLID)/lib/libsolid_complex.a
|
|
|
|
COMLIB += $(NAN_SOLID)/lib/libsolid_convex.a
|
2004-03-28 21:56:00 +00:00
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.a
|
|
|
|
COMLIB += $(OCGDIR)/gameengine/blphys/fuzzics/$(DEBUG_DIR)libfuzzics.a
|
|
|
|
COMLIB += $(NAN_QHULL)/lib/libqhull.a
|
|
|
|
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/sumo/$(DEBUG_DIR)libsumo.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
|
2004-08-26 22:42:44 +00:00
|
|
|
# COMLIB += $(OCGDIR)/gameengine/blphys/blode/$(DEBUG_DIR)libblode.a
|
2004-01-05 00:06:11 +00:00
|
|
|
# COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.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/sumo/$(DEBUG_DIR)libsumo.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
|
|
|
|
# COMLIB += $(OCGDIR)/sumo/$(DEBUG_DIR)libfuzzics.a
|
|
|
|
# COMLIB += $(OCGDIR)/sumo/$(DEBUG_DIR)libsolid.a
|
|
|
|
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
|
2005-10-23 17:55:19 +00:00
|
|
|
COMLIB += $(NAN_BULLET)/lib/libbulletdyn.a
|
|
|
|
COMLIB += $(NAN_BULLET)/lib/libbullet.a
|
2004-03-21 19:59:51 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
|
|
|
|
COMLIB += $(NAN_BMFONT)/lib/$(DEBUG_DIR)libbmfont.a
|
|
|
|
COMLIB += $(NAN_PNG)/lib/libpng.a
|
2004-01-05 17:42:07 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/yafray/$(DEBUG_DIR)libyafrayexport.a
|
2005-01-05 17:32:15 +00:00
|
|
|
COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
|
2004-01-05 00:06:11 +00:00
|
|
|
ifeq ($(WITH_QUICKTIME), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
|
|
|
|
endif
|
2006-01-09 02:18:11 +00:00
|
|
|
ifeq ($(WITH_OPENEXR), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/imbuf/openexr/$(DEBUG_DIR)libopenexr.a
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
ifeq ($(WITH_FREETYPE2), true)
|
|
|
|
ifeq ($(OS), windows)
|
|
|
|
ifeq ($(FREE_WINDOWS), true)
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
|
|
|
|
else
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/freetype2ST.lib
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifeq ($(OS), irix)
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib32/libfreetype.a
|
|
|
|
else
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(INTERNATIONAL), true)
|
|
|
|
COMLIB += $(OCGDIR)/blender/ftfont/$(DEBUG_DIR)libftfont.a
|
|
|
|
ifeq ($(OS), windows)
|
|
|
|
ifeq ($(FREE_WINDOWS), true)
|
|
|
|
COMLIB += $(NAN_GETTEXT)/lib/freegettext.a
|
|
|
|
COMLIB += $(NAN_FTGL)/lib/libftgl.a
|
|
|
|
#COMLIB += $(NAN_ICONV)/lib/freeiconv.a
|
|
|
|
else
|
|
|
|
COMLIB += $(NAN_GETTEXT)/lib/gnu_gettext.lib
|
|
|
|
COMLIB += $(NAN_FTGL)/lib/ftgl_static_ST.lib
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/freetype2ST.lib
|
|
|
|
COMLIB += $(NAN_ICONV)/lib/iconv.lib
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
COMLIB += $(NAN_FTGL)/lib/libftgl.a
|
|
|
|
ifeq ($(OS), irix)
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib32/libfreetype.a
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib32/libintl.a
|
|
|
|
else
|
|
|
|
COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(OS), darwin)
|
|
|
|
COMLIB += $(NAN_GETTEXT)/lib/libintl.a
|
|
|
|
endif
|
2004-12-09 13:13:24 +00:00
|
|
|
ifeq ($(OS), solaris)
|
|
|
|
COMLIB += $(NAN_GETTEXT)/lib/libintl.a
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS), irix)
|
|
|
|
COMLIB += $(NAN_SDL)/lib/libSDL.a
|
|
|
|
endif
|
|
|
|
ifeq ($(OS), windows)
|
|
|
|
ifeq ($(FREE_WINDOWS), true)
|
|
|
|
COMLIB += $(NAN_SDL)/lib/libSDL.a
|
|
|
|
else
|
|
|
|
COMLIB += $(NAN_SDL)/lib/SDL.lib
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-01-10 06:29:57 +00:00
|
|
|
ifeq ($(WITH_OPENEXR), true)
|
|
|
|
COMLIB += $(NAN_OPENEXR_LIBS)
|
|
|
|
endif
|
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
PULIB = $(NAN_IKSOLVER)/lib/libiksolver.a
|
|
|
|
PULIB += $(NAN_MOTO)/lib/libmoto.a
|
2005-09-18 13:27:12 +00:00
|
|
|
PULIB += $(NAN_ELBEEM)/lib/$(DEBUG_DIR)libelbeem.a
|
2004-01-05 00:06:11 +00:00
|
|
|
PULIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
|
|
|
|
PULIB += $(OCGDIR)/blender/src/$(DEBUG_DIR)libsrcpublisher.a
|
|
|
|
|
2004-03-21 19:59:51 +00:00
|
|
|
ifeq ($(NAN_NO_KETSJI),true)
|
|
|
|
PULIB += $(NAN_MOTO)/lib/libmoto.a
|
|
|
|
PULIB += $(OCGDIR)/kernel/gen_system/$(DEBUG_DIR)libgen_system.a
|
|
|
|
PULIB += $(OCGDIR)/kernel/gen_messaging/$(DEBUG_DIR)libgen_messaging.a
|
|
|
|
COMLIB += $(NAN_SND_LIBS)
|
|
|
|
endif
|
|
|
|
|
2004-01-05 00:06:11 +00:00
|
|
|
SPLIB1 = $(OCGDIR)/gameengine/GamePlayer/ghost/$(DEBUG_DIR)libghost.a
|
|
|
|
SPLIB1 += $(OCGDIR)/gameengine/GamePlayer/common/$(DEBUG_DIR)libcommon.a
|
|
|
|
SPLIB1 += $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
|
|
|
SPLIB1 += $(NAN_GHOST)/lib/$(DEBUG_DIR)libghost.a
|
|
|
|
|
|
|
|
SPLIB = $(OCGDIR)/blender/makesdna/$(DEBUG_DIR)DNA.o
|
|
|
|
SPLIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Here you can configure what sort of test to make for the plugin.
|
|
|
|
# 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
|
|
|
|
PLUGTESTLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/test/$(DEBUG_DIR)libns_api_test_threaded_gears.a
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
PLUGAPPLIB = $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)libplugin_ketsji_hooks.a
|
|
|
|
|
|
|
|
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
|
|
|
|
PLUGAPPLIB += $(OCGDIR)/gameengine/GamePlayer/common/$(DEBUG_DIR)libcommon.a
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "linux"))
|
|
|
|
ifeq ($(CPU),i386)
|
|
|
|
PLUGAPPLIB_XPLINK = $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)_Blender3DPlugin_implementation_.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# A bit silly... but needed to resolve symbols.
|
|
|
|
PLUGREMLIB = $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
|
|
|
|
|
|
|
######################## OS dependencies (alphabetic!) ################
|
|
|
|
|
|
|
|
include nan_link.mk
|
|
|
|
|
|
|
|
ifeq ($(OS),beos)
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),darwin)
|
|
|
|
BINTARGETS = blenderdynamic.app
|
|
|
|
BINTARGETS += blenderplayer.app
|
2004-11-14 13:44:47 +00:00
|
|
|
|
|
|
|
ifdef PY_FRAMEWORK
|
|
|
|
PYLIB = -framework Python
|
|
|
|
else
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),freebsd)
|
|
|
|
ifeq ($(OS_VERSION),$(findstring $(OS_VERSION), "3.4 4.0"))
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
BINTARGETS += blenderstatic
|
|
|
|
else
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
BINTARGETS += plugin
|
|
|
|
endif
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
|
|
|
|
PYLIB += $(NAN_MXTEXTTOOLS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),irix)
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
BINTARGETS += plugin
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
|
|
|
|
PYLIB += $(NAN_MXTEXTTOOLS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),linux)
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
ifeq ($(CPU),alpha)
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
endif
|
|
|
|
ifeq ($(CPU),i386)
|
2004-07-17 02:44:24 +00:00
|
|
|
BINTARGETS = blenderdynamic
|
2004-01-28 19:05:52 +00:00
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
BINTARGETS += blenderstatic
|
2004-07-17 02:44:24 +00:00
|
|
|
ifneq ($(NAN_NO_PLUGIN),true)
|
|
|
|
BINTARGETS += plugin xplink
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(CPU),powerpc)
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
BINTARGETS += blenderstatic
|
2005-05-22 01:21:01 +00:00
|
|
|
BINTARGETS += blenderplayer
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
|
|
|
|
PYLIB += $(NAN_MXTEXTTOOLS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),openbsd)
|
|
|
|
BINTARGETS = blenderstatic
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),solaris)
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
BINTARGETS += blenderplayer
|
|
|
|
ifeq ($(CPU),sparc)
|
|
|
|
BINTARGETS += plugin
|
|
|
|
endif
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
|
|
|
|
PYLIB += $(NAN_MXTEXTTOOLS)
|
|
|
|
PYLIB += $(NAN_ZLIB)/lib/libz.a
|
|
|
|
|
|
|
|
PULIB += $(NAN_ZLIB)/lib/libz.a
|
|
|
|
SPLIB += $(NAN_ZLIB)/lib/libz.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
# OpenAL libs are already compiled as shared code! Check FMod if we switch to that. (nzc)
|
|
|
|
|
|
|
|
|
|
|
|
# Some vars to keep the rest of this section mostly readable
|
|
|
|
# in an 80 char term
|
|
|
|
SOUNDSYSTEM = $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
|
|
|
|
DUMMYSOUND = $(OCGDIR)/intern/DummySoundSystem/$(DEBUG_DIR)libDummySoundSystem.a
|
|
|
|
OPENALSOUND = $(OCGDIR)/intern/OpenALSoundSystem/$(DEBUG_DIR)libOpenALSoundSystem.a
|
2004-04-04 15:33:18 +00:00
|
|
|
SDLSOUND = $(OCGDIR)/intern/SDLSoundSystem/$(DEBUG_DIR)libSDLSoundSystem.a
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
# Some kooky logic going on here ...
|
|
|
|
ifeq ($(NAN_NO_OPENAL), true)
|
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
else
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "freebsd linux windows"))
|
2004-11-03 14:45:52 +00:00
|
|
|
ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc x86_64"))
|
2004-01-05 00:06:11 +00:00
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
|
|
|
NAN_SND_LIBS += $(OPENALSOUND)
|
2004-04-04 15:33:18 +00:00
|
|
|
NAN_SND_LIBS += $(SDLSOUND)
|
2004-01-05 00:06:11 +00:00
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
|
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
else
|
|
|
|
ifeq ($(OS),windows)
|
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
|
|
|
NAN_SND_LIBS += $(OPENALSOUND)
|
2004-04-04 15:33:18 +00:00
|
|
|
NAN_SND_LIBS += $(SDLSOUND)
|
2004-01-05 00:06:11 +00:00
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/openal_static.lib
|
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
else
|
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
else
|
2004-12-09 13:13:24 +00:00
|
|
|
ifeq ($(OS),darwin)
|
2004-01-05 00:06:11 +00:00
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
2004-04-14 13:00:36 +00:00
|
|
|
NAN_SND_LIBS += $(OPENALSOUND)
|
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
|
2004-01-05 00:06:11 +00:00
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
else
|
2004-12-09 13:46:38 +00:00
|
|
|
ifeq ($(OS), solaris)
|
2004-12-09 13:13:24 +00:00
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
|
|
|
NAN_SND_LIBS += $(OPENALSOUND)
|
|
|
|
NAN_SND_LIBS += $(SDLSOUND)
|
|
|
|
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
|
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
else
|
|
|
|
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
|
|
|
NAN_SND_LIBS += $(DUMMYSOUND)
|
|
|
|
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),windows)
|
|
|
|
ifeq ($(FREE_WINDOWS),true)
|
|
|
|
PYLIB = $(NAN_PYTHON)/lib/freepy.a
|
|
|
|
else
|
2004-07-17 02:44:24 +00:00
|
|
|
PYLIB = $(NAN_PYTHON)/lib/python23.lib
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
PYPLAYERLIB = $(NAN_PYTHON)/static/*.obj
|
|
|
|
PYPLAYERLIB = $(PYLIB)
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
PULIB += $(OCGDIR)/blender/icons/$(DEBUG_DIR)winblender.res
|
|
|
|
PULIB += $(NAN_ZLIB)/lib/libz.a
|
|
|
|
SPLIB += $(OCGDIR)/blender/icons/$(DEBUG_DIR)winblender.res
|
|
|
|
SPLIB += $(NAN_ZLIB)/lib/libz.a
|
|
|
|
|
2005-03-25 04:25:54 +00:00
|
|
|
# This code below seems outdated and doesn't even seem to
|
|
|
|
# apply to the Windows platform. I've commented it
|
|
|
|
# out until someone can take a good look at it and confirm
|
|
|
|
# or deny. If it breaks anything blame Chris Burt / Desoto
|
|
|
|
#
|
|
|
|
#ifdef NAN_PLAYERSTATIC
|
|
|
|
# PYPLAYERLIB = $(NAN_PYTHON)/static/python20.lib
|
|
|
|
# BINTARGETS = blenderplayer
|
|
|
|
#
|
|
|
|
# NAN_SND_LIBS = $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
|
|
|
|
# NAN_SND_LIBS += $(OCGDIR)/intern/DummySoundSystem/$(DEBUG_DIR)libDummySoundSystem.a
|
|
|
|
# NAN_SND_LIBS += $(OCGDIR)/intern/OpenALSoundSystem/$(DEBUG_DIR)libOpenALSoundSystem.a
|
|
|
|
# NAN_SND_LIBS += $(NAN_OPENAL)/lib/openal_static.lib
|
|
|
|
# NAN_SND_LIBS += $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
|
|
|
|
#
|
|
|
|
# PYINCLUDEOK := $(shell diff -qbB gameengine/Ketsji/KX_Python.h gameengine/Ketsji/KX_Python_static.h)
|
|
|
|
# ifneq (x$(PYINCLUDEOK),x)
|
|
|
|
# DUMMY := $(shell cat gameengine/Ketsji/KX_Python_static.h > gameengine/Ketsji/KX_Python.h)
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# PYINCLUDEOK := $(shell diff -qbB gameengine/Ketsji/KX_Python.h gameengine/Ketsji/KX_Python_dynamic.h)
|
|
|
|
# ifneq (x$(PYINCLUDEOK),x)
|
|
|
|
# DUMMY := $(shell cat gameengine/Ketsji/KX_Python_dynamic.h > gameengine/Ketsji/KX_Python.h)
|
|
|
|
# endif
|
|
|
|
#endif
|
2004-01-05 00:06:11 +00:00
|
|
|
endif
|
|
|
|
|
2004-03-21 19:59:51 +00:00
|
|
|
ifeq ($(NAN_JUST_BLENDERDYNAMIC),true)
|
|
|
|
ifeq ($(OS),darwin)
|
|
|
|
BINTARGETS = blenderdynamic.app
|
|
|
|
else
|
|
|
|
BINTARGETS = blenderdynamic
|
|
|
|
endif
|
|
|
|
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)"
|
|
|
|
ifdef NANENV
|
|
|
|
@for n in $(NANENV); do \
|
|
|
|
echo " $$n"; \
|
2002-10-12 11:37:38 +00:00
|
|
|
done
|
2004-01-05 00:06:11 +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)
|
|
|
|
@echo "****> Build $(MAKE_START) - `date '+%H:%M:%S %d-%b-%Y'`"
|
|
|
|
ifdef NANENV
|
|
|
|
@for n in $(NANENV); do \
|
|
|
|
echo " $$n"; \
|
|
|
|
done
|
|
|
|
endif
|
|
|
|
|
|
|
|
linkclean:
|
2005-05-22 01:21:01 +00:00
|
|
|
ifeq ($(OS),darwin)
|
|
|
|
@$(RM) -r $(DIR)/blenderstatic* \
|
|
|
|
$(DIR)/blenderplayer* \
|
|
|
|
$(DIR)/bin/*
|
|
|
|
else
|
2004-01-05 00:06:11 +00:00
|
|
|
@$(RM) $(DIR)/blenderstatic* \
|
|
|
|
$(DIR)/blenderplayer* \
|
|
|
|
$(DIR)/bin/*
|
2005-05-22 01:21:01 +00:00
|
|
|
endif
|
2004-01-05 00:06:11 +00:00
|
|
|
|
|
|
|
debuglinkclean:
|
2005-05-22 01:21:01 +00:00
|
|
|
ifeq ($(OS),darwin)
|
|
|
|
@$(RM) -r $(DIR)/debug/blenderstatic* \
|
|
|
|
$(DIR)/debug/blenderplayer* \
|
|
|
|
$(DIR)/debug/bin/*
|
|
|
|
else
|
2004-01-05 00:06:11 +00:00
|
|
|
@$(RM) $(DIR)/debug/blenderstatic* \
|
|
|
|
$(DIR)/debug/blenderplayer* \
|
|
|
|
$(DIR)/debug/bin/*
|
2005-05-22 01:21:01 +00:00
|
|
|
endif
|
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)
|
|
|
|
|
|
|
|
blenderplayer.app: blenderplayer
|
|
|
|
@$(MAKE) -C darwin/ APPLICATION=blenderplayer
|
|
|
|
|
|
|
|
blenderdynamic.app: blenderdynamic
|
|
|
|
@$(MAKE) -C darwin/ APPLICATION=blender
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blenderstatic: $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"static"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderstatic $(BUILDINFO_O) $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) $(PYLIB) $(LLIBS) $(SADD) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blender$(EXT): $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blender$(EXT) $(BUILDINFO_O) $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) $(PYLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT): $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderplayer$(EXT) $(BUILDINFO_O) $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB) $(PYPLAYERLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT): $(OBJS) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(LDFLAGS) -o $(DIR)/$(DEBUG_DIR)bin/blenderdynplayer$(EXT) $(BUILDINFO_O) $(OBJS) $(SPLIB1) $(COMLIB) $(SPLIB) $(PYLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),linux)
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/Blender3DPlugin$(SOEXT): $(PLUGAPPLIB_XPLINK)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(PLUGAPPLIB_XPLINK) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
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.
|
|
|
|
ifeq ($(OS),windows)
|
|
|
|
$(DIR)/$(DEBUG_DIR)npB3DPlg$(SOEXT): $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
# $(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB) $(PYLIB) $(PLUGREMLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB) $(PYLIB) $(PLUGREMLIB) $(LLIBS) $(DADD) $(LOPTS) /def:$(DEFFILE)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),$(findstring $(OS), "linux freebsd irix solaris"))
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/npBlender3DPlugin$(SOEXT): $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGAPPLIB) $(COMLIB) $(SPLIB) $(PYLIB) $(PLUGREMLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DIR)/$(DEBUG_DIR)bin/npTestPlugin$(SOEXT): $(NSPLUGLIB)
|
|
|
|
@echo "****> Link $@"
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
$(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
|
|
|
|
endif
|
|
|
|
mkdir -p $(DIR)/$(DEBUG_DIR)bin
|
|
|
|
$(CCC) $(DYNLDFLAGS) -o $@ $(NSPLUGLIB) $(PLUGTESTLIB) $(LLIBS) $(DADD) $(LOPTS)
|
|
|
|
ifdef NAN_BUILDINFO
|
|
|
|
/bin/rm $(BUILDINFO_O)
|
|
|
|
endif
|
|
|
|
endif
|