Add necessary switches for darwin builds

This commit is contained in:
Tristan
2022-06-23 15:23:25 +02:00
parent 9bbd35ce49
commit 05b9f1eabe
4 changed files with 42 additions and 4 deletions

10
deps/vtest/Makefile vendored
View File

@@ -14,6 +14,16 @@ $(VTEST_BUILDIR): $(VTEST_TARBALL)
tar -C $(VTEST_BUILDIR) --strip-components=1 -xf "$(VTEST_TARBALL)"
build: $(VTEST_BUILDIR)
$(MAKE) build_$(shell uname -s)
.PHONY: build_Darwin
build_Darwin:
$(MAKE) -C "$(VTEST_BUILDIR)" -j "$(shell nproc)" \
INCS="-Isrc -Ilib -I$$(brew --prefix pcre2)/include -pthread" \
LIBS="-L$$(brew --prefix pcre2)/lib -lm -lpcre2-8 -lz"
.PHONY: build_Linux
build_Linux: $(VTEST_BUILDIR)
$(MAKE) -C "$(VTEST_BUILDIR)" -j "$(shell nproc)"
$(VTEST_DESTDIR): build