Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
automata committed Apr 28, 2015
1 parent e404647 commit ce43667
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ CXX = g++

SOURCES = saliency.cpp Saliency/GMRsaliency.cpp SLIC/SLIC.cpp

# We're not using this now, deprecated in favor of pkg-config --libs
#LDFLAGS = -L/usr/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab -lm -ljpeg

CXXFLAGS = $(shell pkg-config --cflags opencv) -std=c++11 -g3 -Wall -O0
LDFLAGS = $(shell pkg-config --libs opencv) --as-needed
LDFLAGS = $(shell pkg-config --libs opencv)

all:
$(CXX) $(CXXFLAGS) -o bin/saliency $(SOURCES) $(LDFLAGS)
$(CXX) $(CXXFLAGS) -o gmr-saliency $(SOURCES) $(LDFLAGS)

clean:
rm -rf *.o */*.o bin/*
rm -rf *.o */*.o

0 comments on commit ce43667

Please sign in to comment.