[ODE] makefile patch for opcode+double

Adam D. Moss aspirin at ntlworld.com
Wed Jul 30 00:22:02 2003


This is a multi-part message in MIME format.
--------------020700020406070905090306
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi.

This patch makes 'make' issue an error when compiling with opcode
and double-precision (instead of yielding nonworking trimesh code).

(The non-cygwin/mingw mswindows build mechanism might want to do
something similar.)

--Adam
-- 
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
"...I generally use sea salt but you can get fancy with Celtic or
ghetto with table white..."

--------------020700020406070905090306
Content-Type: text/plain;
 name="odeopsp.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="odeopsp.diff"

Index: Makefile
===================================================================
RCS file: /cvsroot/opende/ode/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	11 Jul 2003 06:39:23 -0000	1.15
+++ Makefile	30 Jul 2003 07:10:17 -0000
@@ -72,6 +72,9 @@
 			ode/src/collision_transform.cpp \
 			ode/src/collision_quadtreespace.cpp
 ifdef OPCODE_DIRECTORY
+ifneq ($(PRECISION),SINGLE)
+$(error OpCode-enabled builds require PRECISION=SINGLE for correct operation.)
+endif
 ODE_NEW_COLLISION_SRC +=ode/src/collision_trimesh.cpp \
 			ode/src/collision_trimesh_sphere.cpp \
 			ode/src/collision_trimesh_box.cpp \

--------------020700020406070905090306--