Makefile: add new bin to compile in build-all, valgrind opts.
parent
b59ad86e41
commit
273204af6d
|
@ -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 ?=
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue