diff options
| author | Mistivia <i@mistivia.com> | 2025-01-16 15:54:22 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-01-16 15:54:22 +0800 |
| commit | 3172921dd5f51a9eec19729f2e9841fd986f4176 (patch) | |
| tree | a08411b44e195a6cd0a3b749248a2f680b1f8683 /Makefile | |
| parent | 8689a7c78c50676ea739f52fbcee9f091709f5c0 (diff) | |
update readme & makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |
