-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
executable file
·32 lines (27 loc) · 964 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CXX = g++ -std=c++17
CXXFLAGS = -O3 -Wall -ftree-vectorize -lpthread
INCLUDE = -I ./index/cpp/include/ -I ./index/cpp/lib/
all:
@echo "Please choose one of the following target: build, install, clean"
@exit 2
build:
mkdir -p ./bin
@echo "Compiling build.cpp"
$(CXX) ./index/cpp/src/build.cpp -o ./bin/oci_moph $(CXXFLAGS) $(INCLUDE) -lzip
@echo "Compiling lookup.cpp"
$(CXX) ./index/cpp/src/lookup.cpp -o ./bin/oci_lookup $(CXXFLAGS) $(INCLUDE) -lzip
build-experimental:
mkdir -p ./bin
@echo "Compiling build.cpp"
$(CXX) ./index/cpp/src/build.cpp -o ./bin/oci_moph $(CXXFLAGS) $(INCLUDE) -lzip -lstdc++fs
@echo "Compiling lookup.cpp"
$(CXX) ./index/cpp/src/lookup.cpp -o ./bin/oci_lookup $(CXXFLAGS) $(INCLUDE) -lzip -lstdc++fs
install:
@echo "Installing oci_moph"
cp ./bin/oci_moph /usr/local/bin/oc.index.moph
cp ./bin/oci_lookup /usr/local/bin/oc.index.lookup
.PHONY: clean
clean:
@echo "Deleting build"
rm -r ./bin
@echo "Build deleted"