Obsolete
/
libipc-old
Archived
3
0
Fork 0

Makefile: add new bin to compile in build-all, valgrind opts.

master
Philippe Pittoli 2023-01-19 01:04:29 +01:00
parent b59ad86e41
commit 273204af6d
2 changed files with 7 additions and 2 deletions

View File

@ -16,8 +16,11 @@ endif
ifdef VG_GENERATE_SUPPRESSION
VALGRIND_GEN_SUPPRESSION ?= --gen-suppressions=all
endif
VALGRIND_OPTS=-v --leak-check=full --track-origins=yes
ifdef USE_VALGRIND
VALGRIND ?= valgrind $(VALGRIND_SUPPRESS_WARNINGS) $(VALGRIND_GEN_SUPPRESSION) -v --leak-check=full
VALGRIND ?= valgrind $(VALGRIND_SUPPRESS_WARNINGS) \
$(VALGRIND_GEN_SUPPRESSION) \
$(VALGRIND_OPTS)
endif
# Optional parameters (copied here to help with autocompletion).
VG_SUPPRESS_WARNINGS ?=

View File

@ -121,8 +121,10 @@ init-websocket-client:
build-all:
$(ZIGC) build-exe src/write-tcpd-pong-messages.zig -lc
$(ZIGC) build-exe $(ZIGOPTS) src/ipcd.zig
$(ZIGC) build-exe $(ZIGOPTS) src/tcpd.zig
$(ZIGC) build-exe $(ZIGOPTS) src/pong.zig
$(ZIGC) build-exe $(ZIGOPTS) src/pongd.zig
serve:
find . | entr make build-all
find src/ | entr make build-all