From ad9dbfe16495204453b1b7f8593d320751f76ca0 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Tue, 10 Dec 2013 18:30:42 +0000 Subject: [PATCH] CSE546 submission --- Makefile | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 6cd3999..44c930f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,12 @@ CC=gcc -COMMON=-Wall `pkg-config --cflags opencv` -isystem /usr/local/Cellar/opencv/2.4.6.1/include/opencv -isystem /usr/local/Cellar/opencv/2.4.6.1/include +COMMON=-Wall `pkg-config --cflags opencv` CFLAGS= $(COMMON) -O3 -ffast-math -flto +UNAME = $(shell uname) +ifeq ($(UNAME), Darwin) +COMMON += -isystem /usr/local/Cellar/opencv/2.4.6.1/include/opencv -isystem /usr/local/Cellar/opencv/2.4.6.1/include +else +CFLAGS += -march=native +endif #CFLAGS= $(COMMON) -O0 -g LDFLAGS=`pkg-config --libs opencv` -lm VPATH=./src/ -- Gitblit v1.10.0