Makefile updates for Blender 2.5 (from GSR)
authorChris Want <cwant@ualberta.ca>
Thu, 19 Mar 2009 01:50:45 +0000 (01:50 +0000)
committerChris Want <cwant@ualberta.ca>
Thu, 19 Mar 2009 01:50:45 +0000 (01:50 +0000)
29 files changed:
Makefile
extern/bFTGL/src/Makefile
extern/binreloc/Makefile
extern/bullet2/Makefile
extern/glew/src/Makefile
extern/ode/Makefile
extern/qhull/src/Makefile
extern/solid/Makefile
intern/SoundSystem/Makefile
intern/bmfont/Makefile
intern/boolop/Makefile
intern/bsp/Makefile
intern/container/Makefile
intern/decimation/Makefile
intern/elbeem/Makefile
intern/ghost/Makefile
intern/ghost/intern/Makefile
intern/guardedalloc/Makefile
intern/iksolver/Makefile
intern/memutil/Makefile
intern/moto/Makefile
intern/opennl/Makefile
intern/string/Makefile
source/Makefile
source/nan_compile.mk
source/nan_definitions.mk
source/nan_link.mk
source/nan_subdirs.mk
source/nan_warn.mk

index 42475dba31cc24eddb9b746a8bd32a63940fd753..7c883c41741a24374a4a55f7bcf8ffe8aeeaa82b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@
 #
 # The Original Code is: revision 1.1
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
index 17c6016ad030e9f29c42af84f715c7fd0b9fa8ef..d91bcb2559d3a99612fe5cd1a9c8d9296c59fbe5 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
@@ -46,15 +48,13 @@ CPPFLAGS += -I../include
 CPPFLAGS += -I$(NAN_FREETYPE)/include -I$(NAN_FREETYPE)/include/freetype2
 CPPFLAGS += -I$(OPENGL_HEADERS) 
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_FTGL) ] || mkdir -p $(NAN_FTGL)
        @[ -d $(NAN_FTGL)/include ] || mkdir -p $(NAN_FTGL)/include
-       @[ -d $(NAN_FTGL)/lib ] || mkdir -p $(NAN_FTGL)/lib
-       @[ -d $(NAN_FTGL)/lib/debug ] || mkdir -p $(NAN_FTGL)/lib/debug
-       @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/lib$(LIBNAME).a $(NAN_FTGL)/lib/
-#      @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/debug/lib$(LIBNAME).a $(NAN_FTGL)/lib/debug/
+       @[ -d $(NAN_FTGL)/lib/$(DEBUG_DIR) ] || mkdir -p $(NAN_FTGL)/lib/$(DEBUG_DIR)
+       @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)lib$(LIBNAME).a $(NAN_FTGL)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_FTGL)/lib/lib$(LIBNAME).a
+       ranlib $(NAN_FTGL)/lib/$(DEBUG_DIR)lib$(LIBNAME).a
 endif
        @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh ../include/*.h $(NAN_FTGL)/include/
 
index dbd093500a17e0ed71bf18a35688476507a33636..d303ab3afcc59d32051221ee38c465e32519449c 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
@@ -30,8 +32,7 @@ CPPFLAGS += -I./include
 
 include nan_compile.mk
 
-
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(DIR) ] || mkdir $(DIR)
        @[ -d $(DIR)/include ] || mkdir $(DIR)/include
        @../../intern/tools/cpifdiff.sh include/*.h $(DIR)/include/
index f3abb86e404da93361dc92bb98f4cab55a29d5ad..d974569e63ddd9fe32a183aef479fcbc22f3ce71 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -48,7 +50,7 @@ include nan_subdirs.mk
 
 CP = $(NANBLENDERHOME)/intern/tools/cpifdiff.sh
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_BULLET2) ] || mkdir -p $(NAN_BULLET2)
        @[ -d $(NAN_BULLET2)/include ] || mkdir -p $(NAN_BULLET2)/include
        @for i in $(BULLETDIRS); do \
index 55cc7cfccad8bd11c470648f2dfcd728c9524938..ebcecae45c8449d18df6cacf42d17b93126f109c 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -25,7 +27,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL/BL DUAL LICENSE BLOCK *****
 #
@@ -42,15 +44,13 @@ CSRCS = glew.c
 CCSRCS = 
 include nan_compile.mk 
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_GLEW) ] || mkdir -p $(NAN_GLEW)
        @[ -d $(NAN_GLEW)/include/GL ] || mkdir -p $(NAN_GLEW)/include/GL
-       @[ -d $(NAN_GLEW)/lib ] || mkdir -p $(NAN_GLEW)/lib
-       @[ -d $(NAN_GLEW)/lib/debug ] || mkdir -p $(NAN_GLEW)/lib/debug
-       @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/lib$(LIBNAME).a $(NAN_GLEW)/lib/
+       @[ -d $(NAN_GLEW)/lib/$(DEBUG_DIR) ] || mkdir -p $(NAN_GLEW)/lib/$(DEBUG_DIR)
+       @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)lib$(LIBNAME).a $(NAN_GLEW)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_GLEW)/lib/lib$(LIBNAME).a
-       ranlib $(NAN_GLEW)/lib/lib$(LIBNAME).a
+       ranlib $(NAN_GLEW)/lib/$(DEBUG_DIR)lib$(LIBNAME).a
 endif
        @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh ../include/GL/*.h $(NAN_GLEW)/include/GL
 
index 51be666aa691afb36c903ba3cf5a8962c6a4cd8d..9bdef821e4529ee9189461b37d22e88a734fe7d8 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 
@@ -60,8 +62,7 @@ all:
        mv $(TEMPSETTINGS) $(USERSETTINGS)
     endif
 
-# fake debug target
-debug:
+debug:: install
 
 install: all
     ifeq ($(OS),$(findstring $(OS), "freebsd linux darwin"))
index 8201e44f01b94bcda29385fd380a7e0a3b962532..81c06758cbb9e98e0e002a20f0f2209154a4fb72 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
@@ -40,16 +42,13 @@ CSRCS = user.c global.c stat.c io.c geom2.c poly2.c \
 CCSRCS = 
 include nan_compile.mk 
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_QHULL) ] || mkdir -p $(NAN_QHULL)
        @[ -d $(NAN_QHULL)/include/qhull ] || mkdir -p $(NAN_QHULL)/include/qhull
-       @[ -d $(NAN_QHULL)/lib ] || mkdir -p $(NAN_QHULL)/lib
-       @[ -d $(NAN_QHULL)/lib/debug ] || mkdir -p $(NAN_QHULL)/lib/debug
-       @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/lib$(LIBNAME).a $(NAN_QHULL)/lib/
-#      @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/debug/lib$(LIBNAME).a $(NAN_QHULL)/lib/debug/
+       @[ -d $(NAN_QHULL)/lib/$(DEBUG_DIR) ] || mkdir -p $(NAN_QHULL)/lib/$(DEBUG_DIR)
+       @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)lib$(LIBNAME).a $(NAN_QHULL)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_QHULL)/lib/lib$(LIBNAME).a
-#      ranlib $(NAN_QHULL)/lib/debug/lib$(LIBNAME).a
+       ranlib $(NAN_QHULL)/lib/$(DEBUG_DIR)lib$(LIBNAME).a
 endif
        @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh ../include/qhull/*.h $(NAN_QHULL)/include/qhull
 
index 3b333c5141da6369a7624526a9ecf039d37fbae6..206dc21c3fb49c416314becb71056ea7a358e0f1 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
@@ -37,18 +39,15 @@ DIRS = src
 
 include nan_subdirs.mk
 
-install: all debug
+install:  $(ALL_OR_DEBUG)
        @[ -d $(NAN_SOLID) ] || mkdir -p $(NAN_SOLID)
        @[ -d $(NAN_SOLID)/include/SOLID ] || mkdir -p $(NAN_SOLID)/include/SOLID
        @[ -d $(NAN_SOLID)/include/SOLID/MT ] || mkdir -p $(NAN_SOLID)/include/SOLID/MT
-       @[ -d $(NAN_SOLID)/lib ] || mkdir -p $(NAN_SOLID)/lib
-       @[ -d $(NAN_SOLID)/lib/debug ] || mkdir -p $(NAN_SOLID)/lib/debug
+       @[ -d $(NAN_SOLID)/lib/$(DEBUG_DIR) ] || mkdir -p $(NAN_SOLID)/lib/$(DEBUG_DIR)
        @for i in $(LIBNAMES); do \
-           $(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/$$i/lib$$i.a $(NAN_SOLID)/lib/ ; \
-           $(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/$$i/debug/lib$$i.a $(NAN_SOLID)/lib/debug/ ; \
+           $(NANBLENDERHOME)/intern/tools/cpifdiff.sh $(DIR)/$$i/$(DEBUG_DIR)lib$$i.a $(NAN_SOLID)/lib/$(DEBUG_DIR) ; \
            if [ $(OS) = darwin ] ; then \
-            ranlib $(NAN_SOLID)/lib/lib$$i.a ; \
-            ranlib $(NAN_SOLID)/lib/debug/lib$$i.a ; \
+            ranlib $(NAN_SOLID)/lib/$(DEBUG_DIR)lib$$i.a ; \
         fi ; \
        done
        @$(NANBLENDERHOME)/intern/tools/cpifdiff.sh include/*.h $(NAN_SOLID)/include/SOLID
index 051e2643a87dd7a0a1cfe95c5bec69d8b7ffecf6..61785e44e685f6afae7ba24889726ac1064a2bc9 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
@@ -56,16 +58,13 @@ endif
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_SOUNDSYSTEM) ] || mkdir $(NAN_SOUNDSYSTEM)
        @[ -d $(NAN_SOUNDSYSTEM)/include ] || mkdir $(NAN_SOUNDSYSTEM)/include
-       @[ -d $(NAN_SOUNDSYSTEM)/lib ] || mkdir $(NAN_SOUNDSYSTEM)/lib
-       @[ -d $(NAN_SOUNDSYSTEM)/lib/debug ] || mkdir $(NAN_SOUNDSYSTEM)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libSoundSystem.a $(NAN_SOUNDSYSTEM)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libSoundSystem.a $(NAN_SOUNDSYSTEM)/lib/debug/
+       @[ -d $(NAN_SOUNDSYSTEM)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_SOUNDSYSTEM)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libSoundSystem.a $(NAN_SOUNDSYSTEM)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_SOUNDSYSTEM)/lib/libSoundSystem.a
-       ranlib $(NAN_SOUNDSYSTEM)/lib/debug/libSoundSystem.a
+       ranlib $(NAN_SOUNDSYSTEM)/lib/$(DEBUG_DIR)libSoundSystem.a
 endif
        @../tools/cpifdiff.sh *.h $(NAN_SOUNDSYSTEM)/include/
 
index bc42f52a1fb5a554c2045425b1cd5fe2dea51380..de0fc7158848bec5a2ab1baf00d56c73c85d70b0 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # bmfont main makefile.
@@ -38,16 +40,13 @@ DIRS = intern
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_BMFONT) ] || mkdir $(NAN_BMFONT)
        @[ -d $(NAN_BMFONT)/include ] || mkdir $(NAN_BMFONT)/include
-       @[ -d $(NAN_BMFONT)/lib ] || mkdir $(NAN_BMFONT)/lib
-       @[ -d $(NAN_BMFONT)/lib/debug ] || mkdir $(NAN_BMFONT)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libbmfont.a $(NAN_BMFONT)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libbmfont.a $(NAN_BMFONT)/lib/debug/
+       @[ -d $(NAN_BMFONT)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_BMFONT)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libbmfont.a $(NAN_BMFONT)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_BMFONT)/lib/libbmfont.a
-       ranlib $(NAN_BMFONT)/lib/debug/libbmfont.a
+       ranlib $(NAN_BMFONT)/lib/$(DEBUG_DIR)libbmfont.a
 endif
        @../tools/cpifdiff.sh *.h $(NAN_BMFONT)/include/
 
index 4058c4ca7c1d0c57c623215a7a9ce7a2c15aeaca..a7a08f665c7f881fc730a539aced1b169c5c66ce 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # bsp main makefile.
@@ -38,16 +40,13 @@ DIRS = intern
 
 include nan_subdirs.mk
 
-install: all debug
+install:  $(ALL_OR_DEBUG)
        @[ -d $(NAN_BOOLOP) ] || mkdir $(NAN_BOOLOP)
        @[ -d $(NAN_BOOLOP)/include ] || mkdir $(NAN_BOOLOP)/include
-       @[ -d $(NAN_BOOLOP)/lib ] || mkdir $(NAN_BOOLOP)/lib
-       @[ -d $(NAN_BOOLOP)/lib/debug ] || mkdir $(NAN_BOOLOP)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libboolop.a $(NAN_BOOLOP)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libboolop.a $(NAN_BOOLOP)/lib/debug/
+       @[ -d $(NAN_BOOLOP)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_BOOLOP)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libboolop.a $(NAN_BOOLOP)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_BOOLOP)/lib/libboolop.a
-       ranlib $(NAN_BOOLOP)/lib/debug/libboolop.a
+       ranlib $(NAN_BOOLOP)/lib/$(DEBUG_DIR)libboolop.a
 endif
        @../tools/cpifdiff.sh extern/*.h $(NAN_BOOLOP)/include/
 
index fd106acab8384324744a28112b4a2c1c6f1d62e5..cd1653206a6afbbce10b33dcacf4b2c6a5b316f8 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # bsp main makefile.
@@ -38,19 +40,14 @@ DIRS = intern
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_BSP) ] || mkdir $(NAN_BSP)
        @[ -d $(NAN_BSP)/include ] || mkdir $(NAN_BSP)/include
-       @[ -d $(NAN_BSP)/lib ] || mkdir $(NAN_BSP)/lib
-       @[ -d $(NAN_BSP)/lib/debug ] || mkdir $(NAN_BSP)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libbsp.a $(NAN_BSP)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libbsp.a $(NAN_BSP)/lib/debug/
+       @[ -d $(NAN_BSP)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_BSP)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libbsp.a $(NAN_BSP)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_BSP)/lib/libbsp.a
-       ranlib $(NAN_BSP)/lib/debug/libbsp.a
+       ranlib $(NAN_BSP)/lib/$(DEBUG_DIR)libbsp.a
 endif
        @../tools/cpifdiff.sh extern/*.h $(NAN_BSP)/include/
 
 
-
-
index 76cba5b3ea14d52337d1123ec8acd4600acfcfb6..8a9c038f0ee71d59958a82b1a13c07deec2aae06 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # container main makefile.
@@ -38,12 +40,10 @@ DIRS = intern
  
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_CONTAINER) ] || mkdir $(NAN_CONTAINER)
        @[ -d $(NAN_CONTAINER)/include ] || mkdir $(NAN_CONTAINER)/include
-       @[ -d $(NAN_CONTAINER)/lib ] || mkdir $(NAN_CONTAINER)/lib
-       @[ -d $(NAN_CONTAINER)/lib/debug ] || mkdir $(NAN_CONTAINER)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libcontainer.a $(NAN_CONTAINER)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libcontainer.a $(NAN_CONTAINER)/lib/debug
+       @[ -d $(NAN_CONTAINER)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_CONTAINER)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libcontainer.a $(NAN_CONTAINER)/lib/$(DEBUG_DIR)
        @../tools/cpifdiff.sh *.h $(NAN_CONTAINER)/include/
 
index 9241d87c3a31c9a14f96afc003005a36458d10e2..7ff87fa018b56a6f092d3b32ed644b77396979d0 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # decimation main makefile.
@@ -38,16 +40,13 @@ TESTDIRS = test
 
 include nan_subdirs.mk
 
-install: all debug
+install:  $(ALL_OR_DEBUG)
        @[ -d $(NAN_DECIMATION) ] || mkdir $(NAN_DECIMATION)
        @[ -d $(NAN_DECIMATION)/include ] || mkdir $(NAN_DECIMATION)/include
-       @[ -d $(NAN_DECIMATION)/lib ] || mkdir $(NAN_DECIMATION)/lib
-       @[ -d $(NAN_DECIMATION)/lib/debug ] || mkdir $(NAN_DECIMATION)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libdecimation.a $(NAN_DECIMATION)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libdecimation.a $(NAN_DECIMATION)/lib/debug/
+       @[ -d $(NAN_DECIMATION)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_DECIMATION)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libdecimation.a $(NAN_DECIMATION)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_DECIMATION)/lib/libdecimation.a
-       ranlib $(NAN_DECIMATION)/lib/debug/libdecimation.a
+       ranlib $(NAN_DECIMATION)/lib/$(DEBUG_DIR)libdecimation.a
 endif
        @../tools/cpifdiff.sh extern/*.h $(NAN_DECIMATION)/include/
 
index 9ea08d633745858af06628a2d36a56890da8ebe1..e7e8a8baa6427e890331f6bf347d9ba65868e1a0 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # elbeem main makefile.
@@ -40,16 +42,13 @@ DIRS = intern
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_ELBEEM) ] || mkdir $(NAN_ELBEEM)
        @[ -d $(NAN_ELBEEM)/include ] || mkdir $(NAN_ELBEEM)/include
-       @[ -d $(NAN_ELBEEM)/lib ] || mkdir $(NAN_ELBEEM)/lib
-       @[ -d $(NAN_ELBEEM)/lib/debug ] || mkdir $(NAN_ELBEEM)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libelbeem.a $(NAN_ELBEEM)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libelbeem.a $(NAN_ELBEEM)/lib/debug/
+       @[ -d $(NAN_ELBEEM)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_ELBEEM)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libelbeem.a $(NAN_ELBEEM)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_ELBEEM)/lib/libelbeem.a
-       ranlib $(NAN_ELBEEM)/lib/debug/libelbeem.a
+       ranlib $(NAN_ELBEEM)/lib/$(DEBUG_DIR)libelbeem.a
 endif
        @../tools/cpifdiff.sh extern/*.h $(NAN_ELBEEM)/include/
 
index f809a32ac8f829aa29e269d26d2f6d7ab9589732..e983c3a9ceefcfe2cbea2d31acdee67a6765911d 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # ghost main makefile.
@@ -38,16 +40,13 @@ TESTDIRS = test
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_GHOST) ] || mkdir $(NAN_GHOST)
        @[ -d $(NAN_GHOST)/include ] || mkdir $(NAN_GHOST)/include
-       @[ -d $(NAN_GHOST)/lib ] || mkdir $(NAN_GHOST)/lib
-       @[ -d $(NAN_GHOST)/lib/debug ] || mkdir $(NAN_GHOST)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libghost.a $(NAN_GHOST)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libghost.a $(NAN_GHOST)/lib/debug/
+       @[ -d $(NAN_GHOST)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_GHOST)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libghost.a $(NAN_GHOST)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_GHOST)/lib/libghost.a
-       ranlib $(NAN_GHOST)/lib/debug/libghost.a
+       ranlib $(NAN_GHOST)/lib/$(DEBUG_DIR)libghost.a
 endif
        @../tools/cpifdiff.sh *.h $(NAN_GHOST)/include/
 
index 467ec7687207fb2e3cdc9185e645f1c9957368dc..5b95bbb3b6848ee10618e9aebeebd0fdc45fc435 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # ghost intern Makefile
@@ -38,8 +40,6 @@ CCSRCS += GHOST_Rect.cpp GHOST_DisplayManager.cpp GHOST_C-api.cpp
 CCSRCS += GHOST_CallbackEventConsumer.cpp
 CCSRCS += GHOST_NDOFManager.cpp
 
-include nan_definitions.mk
-
 ifeq ($(OS),$(findstring $(OS), "darwin"))
     CCSRCS += $(wildcard *Carbon.cpp)
 endif
index f0cef3d222cb53e30f69a32a033b02eddcf22df1..55894d54c8e094403f1eaddb6e63e94603b75acc 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # decimation main makefile.
@@ -38,16 +40,13 @@ TESTDIRS = test
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_GUARDEDALLOC) ] || mkdir $(NAN_GUARDEDALLOC)
        @[ -d $(NAN_GUARDEDALLOC)/include ] || mkdir $(NAN_GUARDEDALLOC)/include
-       @[ -d $(NAN_GUARDEDALLOC)/lib ] || mkdir $(NAN_GUARDEDALLOC)/lib
-       @[ -d $(NAN_GUARDEDALLOC)/lib/debug ] || mkdir $(NAN_GUARDEDALLOC)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/debug/
+       @[ -d $(NAN_GUARDEDALLOC)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_GUARDEDALLOC)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
-       ranlib $(NAN_GUARDEDALLOC)/lib/debug/libguardedalloc.a
+       ranlib $(NAN_GUARDEDALLOC)/lib/$(DEBUG_DIR)libguardedalloc.a
 endif
        @../tools/cpifdiff.sh *.h $(NAN_GUARDEDALLOC)/include/
 
index a6cfa88eb30af00c7037f220ae3f46c242b6eeef..09e6e3a1c2a2bc1ec6975eab829fc91f633c737c 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # iksolver main makefile.
@@ -38,16 +40,13 @@ TESTDIRS = test
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_IKSOLVER) ] || mkdir $(NAN_IKSOLVER)
        @[ -d $(NAN_IKSOLVER)/include ] || mkdir $(NAN_IKSOLVER)/include
-       @[ -d $(NAN_IKSOLVER)/lib ] || mkdir $(NAN_IKSOLVER)/lib
-       @[ -d $(NAN_IKSOLVER)/lib/debug ] || mkdir $(NAN_IKSOLVER)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libiksolver.a $(NAN_IKSOLVER)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libiksolver.a $(NAN_IKSOLVER)/lib/debug/
+       @[ -d $(NAN_IKSOLVER)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_IKSOLVER)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libiksolver.a $(NAN_IKSOLVER)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_IKSOLVER)/lib/libiksolver.a
-       ranlib $(NAN_IKSOLVER)/lib/debug/libiksolver.a
+       ranlib $(NAN_IKSOLVER)/lib/$(DEBUG_DIR)libiksolver.a
 endif
        @../tools/cpifdiff.sh extern/*.h $(NAN_IKSOLVER)/include/
 
index 787ca4fd58f8c63b5cf8894575dd1ed55bcade38..50aa0528f31e171b1e7fd6be2d02ac458261eab8 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # memutil main makefile.
@@ -38,16 +40,13 @@ DIRS = intern
  
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_MEMUTIL) ] || mkdir $(NAN_MEMUTIL)
        @[ -d $(NAN_MEMUTIL)/include ] || mkdir $(NAN_MEMUTIL)/include
-       @[ -d $(NAN_MEMUTIL)/lib ] || mkdir $(NAN_MEMUTIL)/lib
-       @[ -d $(NAN_MEMUTIL)/lib/debug ] || mkdir $(NAN_MEMUTIL)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libmemutil.a $(NAN_MEMUTIL)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libmemutil.a $(NAN_MEMUTIL)/lib/debug
+       @[ -d $(NAN_MEMUTIL)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_MEMUTIL)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libmemutil.a $(NAN_MEMUTIL)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_MEMUTIL)/lib/libmemutil.a
-       ranlib $(NAN_MEMUTIL)/lib/debug/libmemutil.a
+       ranlib $(NAN_MEMUTIL)/lib/$(DEBUG_DIR)libmemutil.a
 endif
        @../tools/cpifdiff.sh *.h $(NAN_MEMUTIL)/include/
 
index 7bd7ea10abcb365a5d9a6b7f2f69aeb091f99ca4..3ad4fde9c4e3abd354923defeac4073f68c332e2 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # moto main makefile.
@@ -38,16 +40,13 @@ DIRS = intern
  
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_MOTO) ] || mkdir $(NAN_MOTO)
        @[ -d $(NAN_MOTO)/include ] || mkdir $(NAN_MOTO)/include
-       @[ -d $(NAN_MOTO)/lib ] || mkdir $(NAN_MOTO)/lib
-       @[ -d $(NAN_MOTO)/lib/debug ] || mkdir $(NAN_MOTO)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libmoto.a $(NAN_MOTO)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libmoto.a $(NAN_MOTO)/lib/debug/
+       @[ -d $(NAN_MOTO)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_MOTO)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libmoto.a $(NAN_MOTO)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_MOTO)/lib/libmoto.a
-       ranlib $(NAN_MOTO)/lib/debug/libmoto.a
+       ranlib $(NAN_MOTO)/lib/$(DEBUG_DIR)libmoto.a
 endif
        @../tools/cpifdiff.sh include/*.h $(NAN_MOTO)/include/
 
index a84fd135d1d53d9ed3aeda6a700eeedae881671b..023491792dbb63caf2a94d2c08bbcc4f3864d4e6 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # opennl main makefile.
@@ -40,25 +42,19 @@ DIRS = intern superlu
 
 include nan_subdirs.mk
 
-install: all debug
+install: $(ALL_OR_DEBUG)
        @[ -d $(NAN_OPENNL) ] || mkdir $(NAN_OPENNL)
        @[ -d $(NAN_OPENNL)/include ] || mkdir $(NAN_OPENNL)/include
-       @[ -d $(NAN_OPENNL)/lib ] || mkdir $(NAN_OPENNL)/lib
-       @[ -d $(NAN_OPENNL)/lib/debug ] || mkdir $(NAN_OPENNL)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libopennl.a $(NAN_OPENNL)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libopennl.a $(NAN_OPENNL)/lib/debug/
+       @[ -d $(NAN_OPENNL)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_OPENNL)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libopennl.a $(NAN_OPENNL)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_OPENNL)/lib/libopennl.a
-       ranlib $(NAN_OPENNL)/lib/debug/libopennl.a
+       ranlib $(NAN_OPENNL)/lib/$(DEBUG_DIR)libopennl.a
 endif
        @../tools/cpifdiff.sh extern/*.h $(NAN_OPENNL)/include/
        @[ -d $(NAN_SUPERLU) ] || mkdir $(NAN_SUPERLU)
-       @[ -d $(NAN_SUPERLU)/lib ] || mkdir $(NAN_SUPERLU)/lib
-       @[ -d $(NAN_SUPERLU)/lib/debug ] || mkdir $(NAN_SUPERLU)/lib/debug
-       @../tools/cpifdiff.sh $(DIR_SLU)/libsuperlu.a $(NAN_SUPERLU)/lib/
-       @../tools/cpifdiff.sh $(DIR_SLU)/debug/libsuperlu.a $(NAN_SUPERLU)/lib/debug/
+       @[ -d $(NAN_SUPERLU)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_SUPERLU)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR_SLU)/$(DEBUG_DIR)libsuperlu.a $(NAN_SUPERLU)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_SUPERLU)/lib/libsuperlu.a
-       ranlib $(NAN_SUPERLU)/lib/debug/libsuperlu.a
+       ranlib $(NAN_SUPERLU)/lib/$(DEBUG_DIR)libsuperlu.a
 endif
 
index e885b87babe2fc7d666ce019d01470d6dc1e4021..7972defd4066288f699412dcdcb573f7f25df19d 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): Hans Lambermont
+# Contributor(s): Hans Lambermont, GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 # string main makefile.
@@ -38,16 +40,13 @@ DIRS = intern
 
 include nan_subdirs.mk
 
-install: all debug
+install:  $(ALL_OR_DEBUG)
        @[ -d $(NAN_STRING) ] || mkdir $(NAN_STRING)
        @[ -d $(NAN_STRING)/include ] || mkdir $(NAN_STRING)/include
-       @[ -d $(NAN_STRING)/lib ] || mkdir $(NAN_STRING)/lib
-       @[ -d $(NAN_STRING)/lib/debug ] || mkdir $(NAN_STRING)/lib/debug
-       @../tools/cpifdiff.sh $(DIR)/libstring.a $(NAN_STRING)/lib/
-       @../tools/cpifdiff.sh $(DIR)/debug/libstring.a $(NAN_STRING)/lib/debug/
+       @[ -d $(NAN_STRING)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_STRING)/lib/$(DEBUG_DIR)
+       @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libstring.a $(NAN_STRING)/lib/$(DEBUG_DIR)
 ifeq ($(OS),darwin)
-       ranlib $(NAN_STRING)/lib/libstring.a
-       ranlib $(NAN_STRING)/lib/debug/libstring.a
+       ranlib $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
 endif
        @../tools/cpifdiff.sh *.h $(NAN_STRING)/include/
 
index e8ec090255c37dcc687d2d28ddb0858eabc11d56..b81f0c4e5edeba896a368404c9223c59bab2dd19 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
@@ -53,7 +55,7 @@ ifdef NAN_BUILDINFO
     BUILDINFO_C = $(SRCHOME)/creator/buildinfo.c
     BUILD_DATE := $(shell date "+%Y-%m-%d")
     BUILD_TIME := $(shell date "+%H:%M:%S")
-       BUILD_REV := $(shell svnversion)
+    BUILD_REV := $(shell svnversion)
 endif
 
 ############# set pyplayerlib ##################
@@ -97,13 +99,13 @@ COMLIB += $(OCGDIR)/blender/nodes_tex/$(DEBUG_DIR)libnodes_tex.a
 COMLIB += $(OCGDIR)/blender/nodes/$(DEBUG_DIR)libnodes.a
 COMLIB += $(OCGDIR)/blender/imbuf/$(DEBUG_DIR)libimbuf.a
 COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
-COMLIB += $(NAN_IKSOLVER)/lib/libiksolver.a
-COMLIB += $(NAN_MOTO)/lib/libmoto.a
-COMLIB += $(NAN_SUPERLU)/lib/$(DEBUG_DIR)libsuperlu.a  
+COMLIB += $(NAN_IKSOLVER)/lib/$(DEBUG_DIR)libiksolver.a
+COMLIB += $(NAN_MOTO)/lib/$(DEBUG_DIR)libmoto.a
+COMLIB += $(NAN_SUPERLU)/lib/$(DEBUG_DIR)libsuperlu.a
 COMLIB += $(OCGDIR)/blender/avi/$(DEBUG_DIR)libavi.a
 COMLIB += $(NAN_JPEG)/lib/libjpeg.a
 COMLIB += $(OCGDIR)/blender/gpu/$(DEBUG_DIR)libgpu.a
-COMLIB += $(NAN_GLEW)/lib/libglew.a
+COMLIB += $(NAN_GLEW)/lib/$(DEBUG_DIR)libglew.a
 COMLIB += $(OCGDIR)/blender/blenfont/$(DEBUG_DIR)libblenfont.a
 
 ifneq ($(NAN_NO_KETSJI),true)
@@ -114,7 +116,7 @@ ifneq ($(NAN_NO_KETSJI),true)
     COMLIB += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
     COMLIB += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
     COMLIB += $(NAN_SOLID)/lib/libsolid.a
-    COMLIB += $(NAN_SOLID)/lib/libsolid_broad.a 
+    COMLIB += $(NAN_SOLID)/lib/libsolid_broad.a
     COMLIB += $(NAN_SOLID)/lib/libsolid_complex.a
     COMLIB += $(NAN_SOLID)/lib/libsolid_convex.a
     COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.a
@@ -193,7 +195,7 @@ ifeq ($(WITH_FREETYPE2), true)
         COMLIB += $(NAN_FREETYPE)/lib/freetype2ST.lib
       endif
     else
-      COMLIB += $(NAN_FTGL)/lib/libftgl.a
+      COMLIB += $(NAN_FTGL)/lib/$(DEBUG_DIR)libftgl.a
       ifeq ($(OS), irix)
         COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
         else
@@ -221,39 +223,39 @@ endif
 
 # note: space_api.a in begin of editors, screen.a in end
 PULIB = $(NAN_MOTO)/lib/libmoto.a
-PULIB += $(NAN_DECIMATION)/lib/libdecimation.a
+PULIB += $(NAN_DECIMATION)/lib/$(DEBUG_DIR)libdecimation.a
 PULIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
-PULIB += $(OCGDIR)/blender/ed_space/libed_space.a
-PULIB += $(OCGDIR)/blender/ed_sound/libed_sound.a
-PULIB += $(OCGDIR)/blender/ed_action/libed_action.a
-PULIB += $(OCGDIR)/blender/ed_nla/libed_nla.a
-PULIB += $(OCGDIR)/blender/ed_script/libed_script.a
-PULIB += $(OCGDIR)/blender/ed_text/libed_text.a
-PULIB += $(OCGDIR)/blender/ed_sequencer/libed_sequencer.a
-PULIB += $(OCGDIR)/blender/ed_file/libed_file.a
-PULIB += $(OCGDIR)/blender/ed_info/libed_info.a
-PULIB += $(OCGDIR)/blender/ed_buttons/libed_buttons.a
-PULIB += $(OCGDIR)/blender/ed_node/libed_node.a
-PULIB += $(OCGDIR)/blender/ed_graph/libed_graph.a
-PULIB += $(OCGDIR)/blender/ed_outliner/libed_outliner.a
-PULIB += $(OCGDIR)/blender/ed_time/libed_time.a
-PULIB += $(OCGDIR)/blender/ed_preview/libed_preview.a
-PULIB += $(OCGDIR)/blender/ed_view3d/libed_view3d.a
-PULIB += $(OCGDIR)/blender/ed_interface/libed_interface.a
-PULIB += $(OCGDIR)/blender/ed_object/libed_object.a
-PULIB += $(OCGDIR)/blender/ed_curve/libed_curve.a
-PULIB += $(OCGDIR)/blender/ed_armature/libed_armature.a
-PULIB += $(OCGDIR)/blender/ed_mesh/libed_mesh.a
-PULIB += $(OCGDIR)/blender/ed_sculpt_paint/libed_sculpt_paint.a
-PULIB += $(OCGDIR)/blender/ed_physics/libed_physics.a
-PULIB += $(OCGDIR)/blender/ed_animation/libed_animation.a
-PULIB += $(OCGDIR)/blender/ed_transform/libed_transform.a
-PULIB += $(OCGDIR)/blender/ed_util/libed_util.a
-PULIB += $(OCGDIR)/blender/ed_datafiles/libed_datafiles.a
-PULIB += $(OCGDIR)/blender/ed_image/libed_image.a
-PULIB += $(OCGDIR)/blender/ed_uvedit/libed_uvedit.a
-PULIB += $(OCGDIR)/blender/ed_screen/libed_screen.a
-PULIB += $(OCGDIR)/blender/windowmanager/libwindowmanager.a
+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
+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_node/$(DEBUG_DIR)libed_node.a
+PULIB += $(OCGDIR)/blender/ed_graph/$(DEBUG_DIR)libed_graph.a
+PULIB += $(OCGDIR)/blender/ed_outliner/$(DEBUG_DIR)libed_outliner.a
+PULIB += $(OCGDIR)/blender/ed_time/$(DEBUG_DIR)libed_time.a
+PULIB += $(OCGDIR)/blender/ed_preview/$(DEBUG_DIR)libed_preview.a
+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
+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
+PULIB += $(OCGDIR)/blender/windowmanager/$(DEBUG_DIR)libwindowmanager.a
 PULIB += $(OCGDIR)/blender/python/$(DEBUG_DIR)libpython.a
 PULIB += $(OCGDIR)/blender/makesrna/$(DEBUG_DIR)librna.a
 # note, no idea but it suddenly doesn't compile :(
@@ -262,7 +264,7 @@ PULIB += $(NAN_OPENNL)/lib/$(DEBUG_DIR)libopennl.a
 PULIB += $(NAN_ELBEEM)/lib/$(DEBUG_DIR)libelbeem.a
 
 ifeq ($(NAN_NO_KETSJI),true)
-    PULIB += $(NAN_MOTO)/lib/libmoto.a
+    PULIB += $(NAN_MOTO)/lib/$(DEBUG_DIR)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)
@@ -317,7 +319,7 @@ 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 
+    PLUGAPPLIB_XPLINK = $(OCGDIR)/gameengine/GamePlayer/netscape/src/$(DEBUG_DIR)_Blender3DPlugin_implementation_.o
   endif
 endif
 
@@ -381,7 +383,7 @@ else
         NAN_SND_LIBS += $(OPENALSOUND)
         NAN_SND_LIBS += $(SDLSOUND)
         NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
-       ALUT = $(wildcard $(NAN_OPENAL)/lib/libalut.a)
+        ALUT = $(wildcard $(NAN_OPENAL)/lib/libalut.a)
         NAN_SND_LIBS += $(ALUT)
         NAN_SND_LIBS += $(SOUNDSYSTEM)
     else
@@ -391,7 +393,7 @@ else
         NAN_SND_LIBS += $(OPENALSOUND)
         NAN_SND_LIBS += $(SDLSOUND)
         NAN_SND_LIBS += $(NAN_OPENAL)/lib/openal_static.lib
-       ALUT = $(wildcard $(NAN_OPENAL)/lib/alut_static.lib)
+        ALUT = $(wildcard $(NAN_OPENAL)/lib/alut_static.lib)
         NAN_SND_LIBS += $(ALUT)
         NAN_SND_LIBS += $(SOUNDSYSTEM)
       else
@@ -550,7 +552,7 @@ ifeq ($(OS), darwin)
        @$(MAKE) -C darwin/ APPLICATION=blenderstatic
 endif
 
-$(DIR)/$(DEBUG_DIR)bin/blender$(EXT): $(OBJS) $(GRPLIB) $(PULIB) $(COMLIB) 
+$(DIR)/$(DEBUG_DIR)bin/blender$(EXT): $(OBJS) $(GRPLIB) $(PULIB) $(COMLIB)
        @echo "****> Link $@"
 ifdef NAN_BUILDINFO
        $(CCC) $(REL_CFLAGS) -DBUILD_DATE='"$(BUILD_DATE)"' -DBUILD_TIME='"$(BUILD_TIME)"' -DBUILD_REV='"$(BUILD_REV)"' -DBUILD_PLATFORM='"$(CONFIG_GUESS)"' -DBUILD_TYPE='"dynamic"' $(BUILDINFO_C) -c -o $(BUILDINFO_O) -DNAN_BUILDINFO
@@ -640,4 +642,3 @@ endif
 ifdef NAN_BUILDINFO
        /bin/rm $(BUILDINFO_O)
 endif
-
index 0ac712b3a18e95a1c8939c77c4b905f9ab7986ed..a2fcfad3a9ef480320c67ffc05af7216f99b6ccf 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
index 9ca458e8371c7b6f54c0009a025e100d48b254cf..60fc56408b2b47e07af3ec97dcd83384ced50c8e 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
 
 sinclude ../user-def.mk
 
+# This warning only takes place once in source/
+ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
+  ifeq (all, $(findstring all, $(MAKECMDGOALS)))
+    export ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
+    export ERRTXT += "Use something like ..make all && make debug.. instead"
+  endif
+endif
+
+ifdef ERRTXT
+$(error $(ERRTXT))
+endif
+
 ifndef CONFIG_GUESS
   ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
-    ifeq (all, $(findstring all, $(MAKECMDGOALS)))
-all debug::
-      ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
-      ERRTXT += "Use something like ..make all && make debug.. instead"
-      $(error $(ERRTXT))
-    endif
+    export DEBUG_DIR = debug/
+    export ALL_OR_DEBUG = debug
+  endif
+  ifeq (all, $(findstring all, $(MAKECMDGOALS)))
+    export ALL_OR_DEBUG ?= all
   endif
 
   # First generic defaults for all platforms which should be constant.
@@ -158,9 +171,9 @@ endif
           endif
         endif
       endif
-                       ifeq ($(WITH_OPENEXR), true)
-                               export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
-                       endif
+      ifeq ($(WITH_OPENEXR), true)
+        export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
+      endif
 
     endif
   # Platform Dependent settings go below:
index e92103f56d93b6fb91a43753986d8458a378bff3..42b17b425b31018cd8f96b1fff47f1cf71acd474 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
index 85360eab7bc19ae39be5a03765cf0f7443872a29..c33e0fa2cccd22ceefb0c649f93ff7013670b893 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #
index 97a8bbf09e4e14f53553bbad4827337ee87cda11..5841cdf590844f2710188a06010b95773626c1f1 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
+# vim: tabstop=8
 #
 # $Id$
 #
@@ -22,7 +24,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): GSR
 #
 # ***** END GPL LICENSE BLOCK *****
 #