代码拉取完成,页面将自动刷新
#-----------------------------------------------------------------------------
# Basic definitions
# BASEDIR where include, src, lib, ... are
# INCDIR include directory
# LIBDIR library directory
# BINDIR bin directory
# LDFLAGS loader flags
# ANNLIBS libraries
#-----------------------------------------------------------------------------
BASEDIR = .
INCDIR = $(BASEDIR)/include
LIBDIR = $(BASEDIR)/lib
LDFLAGS = -L$(LIBDIR)
ANNLIBS = -lANN -lm
#-----------------------------------------------------------------------------
# Make the program
#-----------------------------------------------------------------------------
PHONY: clean all
all: test_sift traditional_match accelerated_match synthetic_test
test_sift: test_sift.o utils.o
g++ $^ $(ANNLIBS) -o $@ $(LDFLAGS) $(ANNLIBS)
traditional_match: traditional_match.o utils.o
g++ $^ $(ANNLIBS) -o $@ $(LDFLAGS) $(ANNLIBS)
accelerated_match: accelerated_match.o utils.o
g++ $^ $(ANNLIBS) -o $@ $(LDFLAGS) $(ANNLIBS)
synthetic_test:synthetic_test.o auxil.o
g++ $^ $(ANNLIBS) -o $@ $(LDFLAGS) $(ANNLIBS)
#-----------------------------------------------------------------------------
# Objects
#-----------------------------------------------------------------------------
test_sift.o: test_sift.cpp
g++ -c -I$(INCDIR) $(CFLAGS) $^
accelerated_match.o: accelerated_match.cpp
g++ -c -I$(INCDIR) $(CFLAGS) $^
traditional_match.o: traditional_match.cpp
g++ -c -I$(INCDIR) $(CFLAGS) $^
synthetic_test.o: synthetic_test.cpp
g++ -c -I$(INCDIR) $(CFLAGS) $^
auxil.o: auxil.cpp
g++ -c -I$(INCDIR) $(CFLAGS) $^
#-----------------------------------------------------------------------------
# Cleaning
#-----------------------------------------------------------------------------
clean:
-rm -f *.o
realclean: clean
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。