Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixing query-server/client
- Loading branch information
searchivairus
committed
Feb 8, 2018
1 parent
e53183c
commit 6c1a64b
Showing
5 changed files
with
51 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
NON_METRIC_SPACE_LIBRARY=../../similarity_search/ | ||
NON_METRIC_SPACE_LIBRARY_INC=$(NON_METRIC_SPACE_LIBRARY)/include | ||
NON_METRIC_SPACE_LIBRARY_LIB=$(NON_METRIC_SPACE_LIBRARY)/release | ||
|
||
LIBS= -lthrift -lNonMetricSpaceLib -lgsl -lgslcblas -llshkit -lboost_program_options | ||
|
||
CXXFLAGS += -I$(NON_METRIC_SPACE_LIBRARY_INC) -I./gen-thrift/ | ||
# Enable C++11 | ||
CXXFLAGS += -std=c++11 | ||
# OMP flags | ||
CXXFLAGS += -fopenmp | ||
# Debug flags | ||
#CXXFLAGS += -g | ||
#CXXFLAGS += -g -O3 | ||
CXXFLAGS += -O3 | ||
|
||
BIN=query_server query_client | ||
|
||
all: $(BIN) | ||
|
||
clean: | ||
rm -f *.o gen-thrift/*.o $(BIN) | ||
|
||
THRIFT_SRC=$(wildcard gen-thrift/*.cpp) | ||
THRIFT_OBJ=$(patsubst %.cpp,%.o,$(THRIFT_SRC)) | ||
|
||
# Note -pthread: this enables threads!!! | ||
query_server: $(THRIFT_OBJ) QueryService_server.o gen-thrift/*.h makefile $(NON_METRIC_SPACE_LIBRARY_LIB)/libNonMetricSpaceLib.a | ||
$(CXX) -o$@ $(THRIFT_OBJ) QueryService_server.o -L/usr/local/lib -L$(NON_METRIC_SPACE_LIBRARY_LIB) $(LIBS) -pthread -fopenmp | ||
|
||
query_client: $(THRIFT_OBJ) QueryClient.o gen-thrift/*.h makefile $(NON_METRIC_SPACE_LIBRARY_LIB)/libNonMetricSpaceLib.a | ||
$(CXX) -o$@ $(THRIFT_OBJ) QueryClient.o -L/usr/local/lib -L$(NON_METRIC_SPACE_LIBRARY_LIB) $(LIBS) -pthread -fopenmp | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters