changeset 11172:80228014f2ed octave-forge

image: use mkoctfile defined by pkg in the environment
author carandraug
date Fri, 26 Oct 2012 03:16:30 +0000
parents 054bd2e703f4
children a3293cbb266c
files main/image/src/Makefile
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/image/src/Makefile	Thu Oct 25 22:42:07 2012 +0000
+++ b/main/image/src/Makefile	Fri Oct 26 03:16:30 2012 +0000
@@ -1,12 +1,14 @@
+MKOCTFILE ?= mkoctfile -Wall
+
 all: __spatial_filtering__.oct __bilateral__.oct __custom_gaussian_smoothing__.oct \
 	__boundary__.oct bwlabel.oct bwfill.oct rotate_scale.oct hough_line.oct \
 	graycomatrix.oct deriche.oct __bwdist__.oct nonmax_supress.oct bwlabeln.oct
 
 %.oct: %.cc
-	mkoctfile -Wall $<
+	$(MKOCTFILE) $<
 
 bwlabeln.oct: bwlabeln.cc union-find.h++
-	CXXFLAGS='-g -O2 -std=c++0x -Wall' mkoctfile $<
+	CXXFLAGS='-g -O2 -std=c++0x -Wall' $(MKOCTFILE) $<
 
 clean:
 	rm -f *.o octave-core core *.oct *~