diff options
| -rw-r--r-- | .gitignore | 9 | ||||
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | Readme.md | 8 |
3 files changed, 23 insertions, 4 deletions
@@ -1,4 +1,13 @@ *.o +*.o.d +lib/mstch/CMakeFiles/* +lib/mstch/src/CMakeFiles/* +lib/mstch/Makefile +lib/mstch/src/Makefile +lib/mstch/.* +*.cmake +*.a +lib/mstch/CMakeCache.txt hivemind hivemind-release.tar.gz mtg.json @@ -3,13 +3,18 @@ CFLAGS= -g -std=c++17 -Wall RM= rm -f LIBS = -lm -lpthread -lmstch -static -INCS = -I./src/ -I./lib/crow/include/ +INCS = -I./src/ -I./lib/crow/include/ -Ilib/mstch/include/ OBJ = $(patsubst %.cc,%.o,$(shell find src/ -name *.cc)) all: hivemind -hivemind: $(OBJ) +lib/mstch/src/libmstch.a: + cd lib/mstch && \ + cmake . && \ + make + +hivemind: $(OBJ) lib/mstch/src/libmstch.a $(CC) -o $@ $^ $(CFLAGS) $(LIBS) package: hivemind @@ -21,3 +26,4 @@ package: hivemind .PHONY: clean clean: -$(RM) $(shell find . -name *.o) hivemind + -cd lib/mstch && make clean @@ -5,8 +5,6 @@ ## 依赖 - Boost -- [Crow](https://github.com/ipkn/crow) -- [mstch](https://github.com/no1msd/mstch) ## 构建和运行 @@ -20,3 +18,9 @@ make && ./hivemind  +## 鸣谢 + +HiveMind使用了来自下面两个库的代码 + +- [Crow](https://github.com/ipkn/crow) +- [mstch](https://github.com/no1msd/mstch) |
