makefile: new flag DP_ODE_DYNAMIC
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Oct 2009 09:02:17 +0000 (09:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Oct 2009 09:02:17 +0000 (09:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9383 d7cf8633-e32d-0410-b094-e92efae38249

makefile.inc

index 1269e1d..250f2e3 100644 (file)
@@ -25,7 +25,7 @@ CPUOPTIMIZATIONS?=
 
 # Additional stuff for libode
 LIB_ODE=`[ -n "$(DP_ODE_STATIC_LIBDIR)" ] && echo \ $(DP_ODE_STATIC_LIBDIR)/libode.a\ -lstdc++`
-CFLAGS_ODE=`[ -n "$(DP_ODE_STATIC_LIBDIR)" ] && echo \ -I$(DP_ODE_STATIC_LIBDIR)/../include\ -DODE_STATIC`
+CFLAGS_ODE=`[ -n "$(DP_ODE_STATIC_LIBDIR)" ] && echo \ -I$(DP_ODE_STATIC_LIBDIR)/../include\ -DODE_STATIC || [ -n "$(DP_ODE_DYNAMIC)" ] && echo \ -DODE_DYNAMIC`
 
 
 SDL_CONFIG?=sdl-config