代码拉取完成,页面将自动刷新
VPATH = src:headers
ifeq ($(DEBUG),1)
CXXFLAGS=-Iheaders -std=c++0x -O3 -ggdb -D_GLIBCXX_DEBUG -Wall -Wextra -Wshadow -Wcast-qual -Wwrite-strings -Wpointer-arith -Winit-self -fsanitize=undefined -ftrapv
else
CXXFLAGS=-Iheaders -std=c++0x -O3 -Wall -Wextra -Wshadow -Wcast-qual -Wwrite-strings -Wpointer-arith -Winit-self
endif
HEADERS=ewah.h ewahutil.h boolarray.h runninglengthword.h
all: unit example example2 benchmark
unit32bits: $(HEADERS) unit.cpp
$(CXX) $(CXXFLAGS) -m32 -o unit32bits src/unit.cpp
unit: $(HEADERS) unit.cpp
$(CXX) $(CXXFLAGS) -o unit src/unit.cpp
example: $(HEADERS) example.cpp
$(CXX) $(CXXFLAGS) -o example example.cpp
example2: $(HEADERS) example2.cpp
$(CXX) $(CXXFLAGS) -o example2 example2.cpp
example3: $(HEADERS) example3.cpp
$(CXX) $(CXXFLAGS) -o example3 example3.cpp
cppcheck:
cppcheck --enable=all headers/*.h src/*.cpp *.cpp
benchmark: $(HEADERS) ./src/benchmark.cpp
$(CXX) $(CXXFLAGS) -o benchmark ./src/benchmark.cpp
doxygen:
doxygen doxyconfig.txt
package:
zip -9 EWAHBoolArray_`date +%Y-%m-%d`.zip README CHANGELOG makefile example.cpp example2.cpp headers/*.h src/*.cpp
cd ..;zip -9 ./EWAHBoolArray/EWAHBoolArray.0.4.0-src.zip ./EWAHBoolArray/README ./EWAHBoolArray/CHANGELOG ./EWAHBoolArray/makefile ./EWAHBoolArray/example.cpp ./EWAHBoolArray/example2.cpp ./EWAHBoolArray/headers/*.h ./EWAHBoolArray/src/*.cpp
echo "don't forget to run git tag 0.4.0 and do git push --tags"
clean:
rm -f *.o unit example example2 unit32bits benchmark
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。