From 05b77eed721931281759bf222e319b05d81458c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Thu, 24 Sep 2009 22:08:54 +0000 Subject: 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 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.1