Commits

Lazar Sumar  committed b94ad8a

Modified makefile for Mac OS X.

  • Participants
  • Parent commits 5127919

Comments (0)

Files changed (1)

 OPENCV_PATH=/Users/shadowlight/Documents/Library/OpenCV-2.3.1/
 OPENCV_INCLUDE=-I $(OPENCV_PATH)include -I $(OPENCV_PATH)include/opencv -I $(OPENCV_PATH)/modules/calib3d/include -I $(OPENCV_PATH)modules/contrib/include -I $(OPENCV_PATH)modules/core/include -I $(OPENCV_PATH)modules/features2d/include -I $(OPENCV_PATH)modules/flann/include -I $(OPENCV_PATH)modules/gpu/include -I $(OPENCV_PATH)modules/highgui/include -I $(OPENCV_PATH)modules/imgproc/include -I $(OPENCV_PATH)modules/legacy/include -I $(OPENCV_PATH)modules/ml/include -I $(OPENCV_PATH)modules/objdetect/include -I $(OPENCV_PATH)modules/ts/include -I $(OPENCV_PATH)modules/video/include
 OPENCV_LIB_PATH=$(OPENCV_PATH)build/lib/
-
+OPENCV_LIBS=-lopencv_imgproc -lopencv_core -lopencv_calib3d -lopencv_contrib -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_video
 CC=g++
 CFLAGS=-Wall
 OBJFLAG=-c
-CLIBS=-L$(OPENCV_LIB_PATH) -lopencv_imgproc -lopencv_core -lopencv_calib3d -lopencv_contrib -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_video
+CLIBS=$(OPENCV_LIBS)
+CLIBPATH=-L$(OPENCV_LIB_PATH)
 CINCLUDES=-I $(SRCDIR) $(OPENCV_INCLUDE)
 PROG=npr
 SRCDIR=Cosc428_NPR/
 OBJDIR=obj/
 
 $(BINDIR)$(PROG): $(SRCDIR)start.cpp $(OBJDIR)contours.o $(OBJDIR)hierarchy.o $(OBJDIR)image.o $(OBJDIR)segmentation.o $(OBJDIR)util.o $(OBJDIR)perspective.o
-	$(CC) $(CFLAGS) $(CINCLUDES) $(CLIBS) $(SRCDIR)start.cpp $(OBJDIR)contours.o $(OBJDIR)hierarchy.o $(OBJDIR)image.o $(OBJDIR)segmentation.o $(OBJDIR)util.o $(OBJDIR)perspective.o -o $(BINDIR)$(PROG)
+	$(CC) $(CFLAGS) $(CINCLUDES) $(CLIBPATH) $(CLIBS) $(SRCDIR)start.cpp $(OBJDIR)contours.o $(OBJDIR)hierarchy.o $(OBJDIR)image.o $(OBJDIR)segmentation.o $(OBJDIR)util.o $(OBJDIR)perspective.o -o $(BINDIR)$(PROG)
 
 $(OBJDIR)start.o: $(SRCDIR)start.cpp
 	$(CC) $(CINCLUDES) $(OBJFLAG) $(SRCDIR)start.cpp -o $(OBJDIR)start.o