aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-09-24 22:08:54 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-09-24 22:08:54 +0000
commit05b77eed721931281759bf222e319b05d81458c9 (patch)
tree59cdd6800060871317b88f4d2df3258e8e862e9e /Makefile
parentf3117bf10c367592e30a7b5559e30d7b75b494f3 (diff)
The colorspace in Gem-MACOSX is GRAB instead of RGBA in Linux
so added -DDARWIN -DLINUX definitions in the Makefile and custom code for each system on pix_opencv_contours_convexhull and pix_opencv_colorfilt svn path=/trunk/externals/pix_opencv/; revision=12446
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3f89146..c0ee4bb 100644
--- a/Makefile
+++ b/Makefile
@@ -13,12 +13,14 @@ CPPFLAGS = -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \
UNAME := $(shell uname -s)
ifeq ($(UNAME),Linux)
+ CPPFLAGS += -DLINUX
INCLUDES += `pkg-config --cflags opencv`
LDFLAGS = -export_dynamic -shared
LIBS = `pkg-config --libs opencv`
EXTENSION = pd_linux
endif
ifeq ($(UNAME),Darwin)
+ CPPFLAGS += -DDARWIN
INCLUDES += -I/System/Library/Frameworks/OpenCV.framework/Headers/
LDFLAGS = -bundle -undefined dynamic_lookup
LIBS = -lm -framework OpenCV