1 # -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
6 # ***** BEGIN GPL LICENSE BLOCK *****
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software Foundation,
20 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 # The Original Code is Copyright (C) 2002 by Hans Lambermont
23 # All rights reserved.
25 # The Original Code is: all of this file.
29 # ***** END GPL LICENSE BLOCK *****
31 include nan_definitions.mk
32 SOURCEDIR = extern/$(LIBNAME)
33 DIR = $(OCGDIR)/extern/$(LIBNAME)
39 BulletCollision/BroadphaseCollision \
40 BulletCollision/CollisionShapes \
41 BulletCollision/NarrowPhaseCollision \
42 BulletCollision/Gimpact \
43 BulletCollision//CollisionDispatch \
44 BulletDynamics/ConstraintSolver \
45 BulletDynamics/Vehicle \
46 BulletDynamics/Dynamics \
49 include nan_subdirs.mk
51 CP = $(NANBLENDERHOME)/intern/tools/cpifdiff.sh
53 install: $(ALL_OR_DEBUG)
54 @[ -d $(NAN_BULLET2) ] || mkdir -p $(NAN_BULLET2)
55 @[ -d $(NAN_BULLET2)/include ] || mkdir -p $(NAN_BULLET2)/include
56 @for i in $(BULLETDIRS); do \
57 [ -d $(NAN_BULLET2)/include/$$i ] || mkdir -p $(NAN_BULLET2)/include/$$i; \
58 $(CP) $(DISTDIR)/$$i/*.h $(NAN_BULLET2)/include/$$i; \
60 @[ -d $(NAN_BULLET2)/lib ] || mkdir -p $(NAN_BULLET2)/lib
61 @$(CP) $(DISTDIR)/*.h $(NAN_BULLET2)/include
62 @$(CP) $(OCGDIR)/extern/bullet2/libbullet2.a $(NAN_BULLET2)/lib
64 ranlib $(NAN_BULLET2)/lib/libbullet2.a