Permalink
Browse files

..

  • Loading branch information...
aaalgo committed Mar 14, 2014
1 parent 3547d5c commit 6dfc19de2dc22ce66f781e1a01e57e56f9ec593b
View
@@ -6,7 +6,7 @@ ARCH = #-march=corei7-avx
OPT = -O3
OPENMP = -fopenmp
CXXFLAGS += -fPIC -Wall -g -std=c++11 -I. $(OPENMP) $(OPT) $(ARCH)
LDFLAGS += $(OPENMP)
LDFLAGS += $(OPENMP) -static
#CXXFLAGS += -std=c++11 -g -Wall -static -I. -msse2
#LDLIBS += -lopencv_flann -lopencv_core -lboost_timer -lboost_chrono -lboost_system -lboost_program_options -lpthread -lm -lz
LDLIBS += -lboost_timer -lboost_chrono -lboost_system -lboost_program_options -lm -lrt
@@ -15,19 +15,21 @@ LDLIBS += -lboost_timer -lboost_chrono -lboost_system -lboost_program_options -l
COMMON = kgraph.o metric.o
HEADERS = kgraph.h kgraph-data.h
PROGS = index search #prune #stat
PROGS = index search
all: libkgraph.so $(PROGS)
RELEASE=kgraph-1.0-x86_64
release: libkgraph.so
release: libkgraph.so $(PROGS) benchmark
rm -rf $(RELEASE)
mkdir $(RELEASE)
cp kgraph.h kgraph-data.h libkgraph.so index.cpp search.cpp $(RELEASE)
cp Makefile.sdk $(RELEASE)/Makefile
mkdir $(RELEASE)/benchmark
cp benchmark/flann_index.cpp benchmark/flann_search.cpp benchmark/split.cpp benchmark/lshkit2fvec.cpp benchmark/fvec2lshkit.cpp benchmark/Makefile $(RELEASE)/benchmark
mkdir $(RELEASE)/bin
cp index search benchmark/flann_index benchmark/flann_search benchmark/split benchmark/lshkit2fvec benchmark/fvec2lshkit $(RELEASE)/bin
tar zcf $(RELEASE).tar.gz $(RELEASE)
benchmark:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6dfc19d

Please sign in to comment.