Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorHans Lambermont <hans@lambermont.dyndns.org>2004-05-03 21:58:36 +0400
committerHans Lambermont <hans@lambermont.dyndns.org>2004-05-03 21:58:36 +0400
commitfb72b8d937149fcdabe6e69c236facb2e3981551 (patch)
treea93cf82687584784a0bf21a3dd62f8d1c6e76574 /extern
parent0c64d26db39870443a35891580c5c53dd958c163 (diff)
- build qhull and solid (next to ode)
Diffstat (limited to 'extern')
-rw-r--r--extern/Makefile26
1 files changed, 25 insertions, 1 deletions
diff --git a/extern/Makefile b/extern/Makefile
index b39ddf09683..13e174f64d4 100644
--- a/extern/Makefile
+++ b/extern/Makefile
@@ -38,10 +38,34 @@ DIRS = ode
include nan_subdirs.mk
+.PHONY: qhull solid solid_with_qhull
+
# we're not quite ready with the 'all' target just yet:
-install all::
+install all:: solid
@for i in $(DIRS); do \
echo "====> $(MAKE) install in $(SOURCEDIR)/$$i" ;\
$(MAKE) -C $$i install || exit 1; \
done
+# challenge: fix the example linking problems with this (until then
+# we must use solid without qhull, which is the next target).
+solid_with_qhull:
+ cd solid \
+ && ./configure --with-pic --prefix=$(NAN_SOLID) \
+ CPPFLAGS="-I$(NAN_QHULL)/include" \
+ LDFLAGS="-Wl,--rpath -Wl,$(NAN_QHULL)/lib" \
+ && $(MAKE) all install
+
+solid: qhull
+ cd solid \
+ && ./configure --with-pic --prefix=$(NAN_SOLID) \
+ && $(MAKE) all install
+qhull:
+ cd qhull/src && $(MAKE) -f Makefile.txt all
+ @[ -d $(NAN_QHULL) ] || mkdir $(NAN_QHULL)
+ @[ -d $(NAN_QHULL)/include ] || mkdir $(NAN_QHULL)/include
+ @[ -d $(NAN_QHULL)/lib ] || mkdir $(NAN_QHULL)/lib
+ @[ -L $(NAN_QHULL)/include/qhull ] || ln -s . $(NAN_QHULL)/include/qhull
+ @../intern/tools/cpifdiff.sh qhull/src/*.h $(NAN_QHULL)/include/
+ @../intern/tools/cpifdiff.sh qhull/src/libqhull.a $(NAN_QHULL)/lib/
+