From 57a7dfe5a5e8bbbc1f682c342ad40c65b9517aff Mon Sep 17 00:00:00 2001 From: Wouter van Heyst Date: Mon, 5 Jan 2004 00:06:11 +0000 Subject: - Revert to NaN makefiles --- source/Makefile | 1298 ++++++++++++++++++++++++++----------------------------- 1 file changed, 621 insertions(+), 677 deletions(-) (limited to 'source/Makefile') diff --git a/source/Makefile b/source/Makefile index aa47b33d9c5..4267f780fb1 100644 --- a/source/Makefile +++ b/source/Makefile @@ -1,686 +1,630 @@ -# Makefile.in generated by automake 1.7.6 from Makefile.am. -# source/Makefile. Generated from Makefile.in by configure. - -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - +# +# $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. +# # This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - - -srcdir = . -top_srcdir = .. - -pkgdatadir = $(datadir)/blender -pkglibdir = $(libdir)/blender -pkgincludedir = $(includedir)/blender -top_builddir = .. - -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -c -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = i686-pc-linux-gnu -host_triplet = i686-pc-linux-gnu -target_triplet = i686-pc-linux-gnu -ACLOCAL = ${SHELL} /home/qword/nuevo/fuentes/trabajo/blender/missing --run aclocal-1.7 -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/qword/nuevo/fuentes/trabajo/blender/missing --run tar -AR = ar -AUTOCONF = ${SHELL} /home/qword/nuevo/fuentes/trabajo/blender/missing --run autoconf -AUTOHEADER = ${SHELL} /home/qword/nuevo/fuentes/trabajo/blender/missing --run autoheader -AUTOMAKE = ${SHELL} /home/qword/nuevo/fuentes/trabajo/blender/missing --run automake-1.7 -AWK = mawk -BLIB_JPEG = -BLIB_PNG = -BLIB_SDL = -BlenderFMOD_FALSE = -BlenderFMOD_TRUE = # -BlenderGAME_FALSE = -BlenderGAME_TRUE = # -BlenderOPENAL_FALSE = -BlenderOPENAL_TRUE = # -BlenderPLUGIN_FALSE = -BlenderPLUGIN_TRUE = # -BlenderQUICKTIME_FALSE = -BlenderQUICKTIME_TRUE = # -BlenderSTATIC_FALSE = -BlenderSTATIC_TRUE = # -CARBON_FALSE = -CARBON_TRUE = # -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -funsigned-char -CPP = gcc -E -CPPFLAGS = -CXX = g++ -CXXCPP = g++ -E -CXXDEPMODE = depmode=gcc3 -CXXFLAGS = -funsigned-char -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO = echo -ECHO_C = -ECHO_N = -n -ECHO_T = -EGREP = grep -E -EXEEXT = -F77 = -FFLAGS = -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LIBM = -lm -LIBOBJS = - -LIBS = -LIBTOOL = $(SHELL) $(top_builddir)/libtool -LN_S = ln -s -LTLIBOBJS = -MAKE = /usr/bin/make -MAKEINFO = ${SHELL} /home/qword/nuevo/fuentes/trabajo/blender/missing --run makeinfo -OBJEXT = o -PACKAGE = blender -PACKAGE_BUGREPORT = -PACKAGE_NAME = blender -PACKAGE_STRING = blender 2.29 -PACKAGE_TARNAME = blender -PACKAGE_VERSION = 2.29 -PATH_SEPARATOR = : -PBBUILD = -PYTHON = /usr/bin/python -PYTHONSYSPREFIX = /usr -PYTHON_EXEC_PREFIX = ${exec_prefix} -PYTHON_LDFLAGS = -Xlinker -export-dynamic -PYTHON_PLATFORM = linux2 -PYTHON_PREFIX = ${prefix} -PYTHON_VERSION = 2.2 -RANLIB = ranlib -SDL_CFLAGS = -I/usr/include/SDL -D_REENTRANT -SDL_CONFIG = /usr/bin/sdl-config -SDL_LIBS = -L/usr/lib -lSDL -lpthread -SET_MAKE = -SHELL = /bin/sh -STRIP = strip -USE_OPENAL_FALSE = -USE_OPENAL_TRUE = # -VERSION = 2.29 -WIN32_FALSE = -WIN32_TRUE = # -X11_FALSE = # -X11_TRUE = -X_CFLAGS = -I/usr/X11R6/include -X_EXTRA_LIBS = -X_LIBS = -L/usr/X11R6/lib -X_PRE_LIBS = -lSM -lICE -ac_ct_AR = ar -ac_ct_CC = gcc -ac_ct_CXX = g++ -ac_ct_F77 = -ac_ct_RANLIB = ranlib -ac_ct_STRIP = strip -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__fastdepCXX_FALSE = # -am__fastdepCXX_TRUE = -am__include = include -am__leading_dot = . -am__quote = -b_jpeg_FALSE = -b_jpeg_TRUE = # -b_png_FALSE = -b_png_TRUE = # -b_sdl_FALSE = -b_sdl_TRUE = # -bindir = ${exec_prefix}/bin -build = i686-pc-linux-gnu -build_alias = -build_cpu = i686 -build_os = linux-gnu -build_vendor = pc -datadir = ${prefix}/share -exec_prefix = ${prefix} -host = i686-pc-linux-gnu -host_alias = -host_cpu = i686 -host_os = linux-gnu -host_vendor = pc -includedir = ${prefix}/include -infodir = ${prefix}/info -install_sh = /home/qword/nuevo/fuentes/trabajo/blender/install-sh -libdir = ${exec_prefix}/lib -libexecdir = ${exec_prefix}/libexec -localstatedir = ${prefix}/var -mandir = ${prefix}/man -oldincludedir = /usr/include -pkgpyexecdir = ${pyexecdir}/blender -pkgpythondir = ${pythondir}/blender -prefix = /usr/local -program_transform_name = s,x,x, -pyexecdir = ${exec_prefix}/lib/python2.2/site-packages -pythondir = ${prefix}/lib/python2.2/site-packages -sbindir = ${exec_prefix}/sbin -sharedstatedir = ${prefix}/com -sysconfdir = ${prefix}/etc -target = i686-pc-linux-gnu -target_alias = -target_cpu = i686 -target_os = linux-gnu -target_vendor = pc -gameblenderdir = -#gameblenderdir = gameengine -gamelib = -#gamelib = gameengine/libblender_gameengine.la -playerlib = -#playerlib = libblender_player.la -pluginlib = - -#pluginlib = libblender_plugin.la -icondir = - -#icondir = icons -blenquicktimelib = - -#blenquicktimelib = blender/quicktime/libblender_quicktime.la - -SUBDIRS = blender kernel creator $(gameblenderdir) $(icondir) - -noinst_LTLIBRARIES = libblender_source.la $(playerlib) $(pluginlib) - -libblender_source_la_SOURCES = - -libblender_source_la_LIBADD = \ - $(gamelib) \ - creator/libblender_creator.la \ - blender/src/libblender_blendersrc.la \ - blender/renderconverter/libblender_renderconverter.la \ - blender/blenloader/libblender_blenloader.la \ - blender/deflate/libblender_deflate.la \ - blender/inflate/libblender_inflate.la \ - blender/writestreamglue/libblender_writestreamglue.la \ - blender/readstreamglue/libblender_readstreamglue.la \ - blender/writeblenfile/libblender_writeblenfile.la \ - blender/readblenfile/libblender_readblenfile.la \ - blender/avi/libblender_avi.la \ - blender/img/libblender_img.la \ - $(blenquicktimelib) \ - blender/render/libblender_render.la \ - blender/radiosity/libblender_radiosity.la \ - blender/blenkernel/libblender_blenkernel.la \ - blender/blenpluginapi/libblender_blenpluginapi.la \ - blender/imbuf/libblender_imbuf.la \ - blender/blenlib/libblender_blenlib.la \ - blender/python/libblender_python.la \ - blender/makesdna/libblender_makesdna.la \ - kernel/libblender_kernel.la - - -libblender_player_la_SOURCES = - -libblender_player_la_LIBADD = \ - gameengine/libgameblender_player.la - - -libblender_plugin_la_SOURCES = - -libblender_plugin_la_LIBADD = \ - gameengine/libgameblender_plugin.la - -subdir = source -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) - -libblender_player_la_LDFLAGS = -libblender_player_la_DEPENDENCIES = gameengine/libgameblender_player.la -am_libblender_player_la_OBJECTS = -libblender_player_la_OBJECTS = $(am_libblender_player_la_OBJECTS) -libblender_plugin_la_LDFLAGS = -libblender_plugin_la_DEPENDENCIES = gameengine/libgameblender_plugin.la -am_libblender_plugin_la_OBJECTS = -libblender_plugin_la_OBJECTS = $(am_libblender_plugin_la_OBJECTS) -libblender_source_la_LDFLAGS = -#libblender_source_la_DEPENDENCIES = \ -# creator/libblender_creator.la \ -# blender/src/libblender_blendersrc.la \ -# blender/renderconverter/libblender_renderconverter.la \ -# blender/blenloader/libblender_blenloader.la \ -# blender/deflate/libblender_deflate.la \ -# blender/inflate/libblender_inflate.la \ -# blender/writestreamglue/libblender_writestreamglue.la \ -# blender/readstreamglue/libblender_readstreamglue.la \ -# blender/writeblenfile/libblender_writeblenfile.la \ -# blender/readblenfile/libblender_readblenfile.la \ -# blender/avi/libblender_avi.la \ -# blender/img/libblender_img.la \ -# blender/quicktime/libblender_quicktime.la \ -# blender/render/libblender_render.la \ -# blender/radiosity/libblender_radiosity.la \ -# blender/blenkernel/libblender_blenkernel.la \ -# blender/blenpluginapi/libblender_blenpluginapi.la \ -# blender/imbuf/libblender_imbuf.la \ -# blender/blenlib/libblender_blenlib.la \ -# blender/python/libblender_python.la \ -# blender/makesdna/libblender_makesdna.la \ -# kernel/libblender_kernel.la -libblender_source_la_DEPENDENCIES = \ - creator/libblender_creator.la \ - blender/src/libblender_blendersrc.la \ - blender/renderconverter/libblender_renderconverter.la \ - blender/blenloader/libblender_blenloader.la \ - blender/deflate/libblender_deflate.la \ - blender/inflate/libblender_inflate.la \ - blender/writestreamglue/libblender_writestreamglue.la \ - blender/readstreamglue/libblender_readstreamglue.la \ - blender/writeblenfile/libblender_writeblenfile.la \ - blender/readblenfile/libblender_readblenfile.la \ - blender/avi/libblender_avi.la \ - blender/img/libblender_img.la \ - blender/render/libblender_render.la \ - blender/radiosity/libblender_radiosity.la \ - blender/blenkernel/libblender_blenkernel.la \ - blender/blenpluginapi/libblender_blenpluginapi.la \ - blender/imbuf/libblender_imbuf.la \ - blender/blenlib/libblender_blenlib.la \ - blender/python/libblender_python.la \ - blender/makesdna/libblender_makesdna.la \ - kernel/libblender_kernel.la -##libblender_source_la_DEPENDENCIES = \ -## gameengine/libblender_gameengine.la \ -## creator/libblender_creator.la \ -## blender/src/libblender_blendersrc.la \ -## blender/renderconverter/libblender_renderconverter.la \ -## blender/blenloader/libblender_blenloader.la \ -## blender/deflate/libblender_deflate.la \ -## blender/inflate/libblender_inflate.la \ -## blender/writestreamglue/libblender_writestreamglue.la \ -## blender/readstreamglue/libblender_readstreamglue.la \ -## blender/writeblenfile/libblender_writeblenfile.la \ -## blender/readblenfile/libblender_readblenfile.la \ -## blender/avi/libblender_avi.la \ -## blender/img/libblender_img.la \ -## blender/quicktime/libblender_quicktime.la \ -## blender/render/libblender_render.la \ -## blender/radiosity/libblender_radiosity.la \ -## blender/blenkernel/libblender_blenkernel.la \ -## blender/blenpluginapi/libblender_blenpluginapi.la \ -## blender/imbuf/libblender_imbuf.la \ -## blender/blenlib/libblender_blenlib.la \ -## blender/python/libblender_python.la \ -## blender/makesdna/libblender_makesdna.la \ -## kernel/libblender_kernel.la -#libblender_source_la_DEPENDENCIES = \ -# gameengine/libblender_gameengine.la \ -# creator/libblender_creator.la \ -# blender/src/libblender_blendersrc.la \ -# blender/renderconverter/libblender_renderconverter.la \ -# blender/blenloader/libblender_blenloader.la \ -# blender/deflate/libblender_deflate.la \ -# blender/inflate/libblender_inflate.la \ -# blender/writestreamglue/libblender_writestreamglue.la \ -# blender/readstreamglue/libblender_readstreamglue.la \ -# blender/writeblenfile/libblender_writeblenfile.la \ -# blender/readblenfile/libblender_readblenfile.la \ -# blender/avi/libblender_avi.la \ -# blender/img/libblender_img.la \ -# blender/render/libblender_render.la \ -# blender/radiosity/libblender_radiosity.la \ -# blender/blenkernel/libblender_blenkernel.la \ -# blender/blenpluginapi/libblender_blenpluginapi.la \ -# blender/imbuf/libblender_imbuf.la \ -# blender/blenlib/libblender_blenlib.la \ -# blender/python/libblender_python.la \ -# blender/makesdna/libblender_makesdna.la \ -# kernel/libblender_kernel.la -am_libblender_source_la_OBJECTS = -libblender_source_la_OBJECTS = $(am_libblender_source_la_OBJECTS) - -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DIST_SOURCES = $(libblender_player_la_SOURCES) \ - $(libblender_plugin_la_SOURCES) $(libblender_source_la_SOURCES) - -RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ - ps-recursive install-info-recursive uninstall-info-recursive \ - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive -DIST_COMMON = Makefile.am Makefile.in -DIST_SUBDIRS = blender kernel creator gameengine icons -SOURCES = $(libblender_player_la_SOURCES) $(libblender_plugin_la_SOURCES) $(libblender_source_la_SOURCES) - -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu source/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" = "$$p" && dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libblender_player.la: $(libblender_player_la_OBJECTS) $(libblender_player_la_DEPENDENCIES) - $(LINK) $(libblender_player_la_LDFLAGS) $(libblender_player_la_OBJECTS) $(libblender_player_la_LIBADD) $(LIBS) -libblender_plugin.la: $(libblender_plugin_la_OBJECTS) $(libblender_plugin_la_DEPENDENCIES) - $(LINK) $(libblender_plugin_la_LDFLAGS) $(libblender_plugin_la_OBJECTS) $(libblender_plugin_la_LIBADD) $(LIBS) -libblender_source.la: $(libblender_source_la_OBJECTS) $(libblender_source_la_DEPENDENCIES) - $(LINK) $(libblender_source_la_LDFLAGS) $(libblender_source_la_OBJECTS) $(libblender_source_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core - -distclean-compile: - -rm -f *.tab.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @set fnord $$MAKEFLAGS; amf=$$2; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @set fnord $$MAKEFLAGS; amf=$$2; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ +# 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 + +DIRS = creator blender kernel gameengine + +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_DECIMATION)/lib/libdecimation.a + GRPLIB += $(NAN_BSP)/lib/$(DEBUG_DIR)libbsp.a + 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/renderconverter/$(DEBUG_DIR)librenderconverter.a + GRPLIB += $(OCGDIR)/blender/render/$(DEBUG_DIR)librender.a + GRPLIB += $(OCGDIR)/blender/radiosity/$(DEBUG_DIR)libradiosity.a + + GRPLIB += $(OCGDIR)/blender/python/$(DEBUG_DIR)libpython.a + +# 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 + 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 + 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 + COMLIB += $(OCGDIR)/gameengine/blphys/blode/$(DEBUG_DIR)libblode.a + COMLIB += $(NAN_ODE)/lib/libode.a +# COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.a + COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a + 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 + COMLIB += $(OCGDIR)/gameengine/blphys/blode/$(DEBUG_DIR)libblode.a +# COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.a + COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a + 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 + 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 + COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a + COMLIB += $(NAN_BMFONT)/lib/$(DEBUG_DIR)libbmfont.a + COMLIB += $(NAN_PNG)/lib/libpng.a + ifeq ($(WITH_QUICKTIME), true) + COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a + endif + 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 +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 + + PULIB = $(NAN_IKSOLVER)/lib/libiksolver.a + PULIB += $(NAN_MOTO)/lib/libmoto.a + PULIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a + PULIB += $(OCGDIR)/blender/readstreamglue/$(DEBUG_DIR)libreadstreamglue.a + PULIB += $(OCGDIR)/blender/writestreamglue/$(DEBUG_DIR)libwritestreamglue.a + # toggle 2 writestreamglue libs for the Uber-Publisher :) + #PULIB += $(OCGDIR)/blender/writestreamglueSTUB/$(DEBUG_DIR)libwritestreamglueSTUB.a + PULIB += $(OCGDIR)/blender/inflate/$(DEBUG_DIR)libinflate.a + PULIB += $(OCGDIR)/blender/deflate/$(DEBUG_DIR)libdeflate.a + PULIB += $(OCGDIR)/blender/writeblenfile/$(DEBUG_DIR)libwriteblenfile.a + PULIB += $(OCGDIR)/blender/writestreamglue/$(DEBUG_DIR)libwritestreamglue.a + # toggle 2 writestreamglue libs for the Uber-Publisher :) + #PULIB += $(OCGDIR)/blender/writestreamglueSTUB/$(DEBUG_DIR)libwritestreamglueSTUB.a + PULIB += $(OCGDIR)/blender/readstreamglue/$(DEBUG_DIR)libreadstreamglue.a # KEY_dependkludge fix.. Remove me + PULIB += $(OCGDIR)/blender/src/$(DEBUG_DIR)libsrcpublisher.a + + 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 + SPLIB += $(OCGDIR)/blender/readstreamglue/$(DEBUG_DIR)libreadstreamglue.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/inflate/$(DEBUG_DIR)libinflate.a + SPLIB += $(OCGDIR)/blender/writestreamglueSTUB/$(DEBUG_DIR)libwritestreamglueSTUB.a + 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 + PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a + # Next line would enable MxTextTools (for VRML2 import) + # but results in a link error + # PYLIB += $(NAN_MXTEXTTOOLS) +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) +# BINTARGETS = plugin + # BINTARGETS += ptest +# BINTARGETS += xplink + BINTARGETS += blenderdynamic +# BINTARGETS += blenderplayer +# BINTARGETS += blenderstatic + endif + ifeq ($(CPU),powerpc) + BINTARGETS = blenderdynamic + BINTARGETS += blenderstatic + 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 + +# 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")) + ifeq ($(CPU),i386) + ifeq ($(OS),freebsd) + NAN_SND_LIBS = $(SOUNDSYSTEM) + NAN_SND_LIBS += $(DUMMYSOUND) + NAN_SND_LIBS += $(OPENALSOUND) + NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a + NAN_SND_LIBS += $(SOUNDSYSTEM) + else + NAN_SND_LIBS = $(SOUNDSYSTEM) + NAN_SND_LIBS += $(DUMMYSOUND) + NAN_SND_LIBS += $(OPENALSOUND) + NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a + NAN_SND_LIBS += $(SOUNDSYSTEM) + endif + else + ifeq ($(OS),windows) + NAN_SND_LIBS = $(SOUNDSYSTEM) + NAN_SND_LIBS += $(DUMMYSOUND) + NAN_SND_LIBS += $(OPENALSOUND) + 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 + ifeq ($(OS),darwin) + NAN_SND_LIBS = $(SOUNDSYSTEM) + NAN_SND_LIBS += $(DUMMYSOUND) + NAN_SND_LIBS += $(SOUNDSYSTEM) + else + NAN_SND_LIBS = $(SOUNDSYSTEM) + NAN_SND_LIBS += $(DUMMYSOUND) + NAN_SND_LIBS += $(SOUNDSYSTEM) + endif + endif +endif + +ifeq ($(OS),windows) + ifeq ($(FREE_WINDOWS),true) + PYLIB = $(NAN_PYTHON)/lib/freepy.a + else + PYLIB = $(NAN_PYTHON)/lib/python22.lib + 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 + ifneq ($(FREE_WINDOWS),true) + BINTARGETS += blenderplayer + BINTARGETS += blenderdynplayer + BINTARGETS += plugin + endif + + 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 + + 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 +endif + +# 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"; \ done + endif -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if (etags --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - else \ - include_option=--include; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -f $$subdir/TAGS && \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" \ - distdir=../$(distdir)/$$subdir \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile $(LTLIBRARIES) -installdirs: installdirs-recursive -installdirs-am: - -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -rm -f Makefile $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-recursive - -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-recursive +DIR = $(OCGDIR) +SOURCEDIR = source -dvi-am: +include nan_subdirs.mk -info: info-recursive +################## target rules ######################## -info-am: +all:: link -install-data-am: +debug debuglink:: + @$(MAKE) link DEBUG_DIR="debug/" NANENV=$(NANENV) -install-exec-am: +clean:: linkclean debuglinkclean -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - clean-recursive ctags ctags-recursive distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-recursive distclean-tags distdir dvi dvi-am \ - dvi-recursive info info-am info-recursive install install-am \ - install-data install-data-am install-data-recursive \ - install-exec install-exec-am install-exec-recursive \ - install-info install-info-am install-info-recursive install-man \ - install-recursive install-strip installcheck installcheck-am \ - installdirs installdirs-am installdirs-recursive \ - maintainer-clean maintainer-clean-generic \ - maintainer-clean-recursive mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ - pdf pdf-am pdf-recursive ps ps-am ps-recursive tags \ - tags-recursive uninstall uninstall-am uninstall-info-am \ - uninstall-info-recursive uninstall-recursive - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: +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: + @$(RM) $(DIR)/blenderstatic* \ + $(DIR)/blenderplayer* \ + $(DIR)/bin/* + +debuglinkclean: + @$(RM) $(DIR)/debug/blenderstatic* \ + $(DIR)/debug/blenderplayer* \ + $(DIR)/debug/bin/* + +# 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 -- cgit v1.2.3