shithub: aubio

Download patch

ref: 6a6cb48e0dcd647d4f963fedfb9652ddc88d988b
parent: 357d9e8ad19d82da374cb016736ee7035770b40b
author: Paul Brossier <piem@piem.org>
date: Fri Apr 29 23:43:39 EDT 2016

Makefile: use 'HAVE_DOUBLE=1 make' to build in double precision

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
 WAFCMD=python waf
+
+ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double )
+
 all: build
 
 checkwaf:
@@ -16,13 +19,13 @@
 	@chmod +x waf
 
 configure: checkwaf
-	$(WAFCMD) configure $(WAFOPTS) $(HAVE_DOUBLE)
+	$(WAFCMD) configure $(WAFOPTS) $(ENABLE_DOUBLE)
 
 build: configure
 	$(WAFCMD) build $(WAFOPTS)
 
 build_python:
-	cd python && python ./setup.py generate $(HAVE_DOUBLE) build
+	cd python && python ./setup.py generate $(ENABLE_DOUBLE) build
 
 test_python:
 	cd python && pip install -v .
@@ -39,7 +42,7 @@
 	cd python && ./setup.py clean
 
 build_python3:
-	cd python && python3 ./setup.py generate $(HAVE_DOUBLE) build
+	cd python && python3 ./setup.py generate $(ENABLE_DOUBLE) build
 
 clean_python3:
 	cd python && python3 ./setup.py clean