From 8b10612456799ba79263ec10205db1844eb652ef Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Fri, 23 Dec 2022 02:36:10 +0100 Subject: [PATCH] Makefile++. --- zig-impl/makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zig-impl/makefile b/zig-impl/makefile index e3e1181..6f8bba1 100644 --- a/zig-impl/makefile +++ b/zig-impl/makefile @@ -1,7 +1,9 @@ all: -ZIGC = zig -ZIGOPTS = -OReleaseSmall $(ZIGUSROPTS) +ZIGBUSEOPTS ?= -OReleaseSmall +ZIGUSROPTS ?= -freference-trace +ZIGC ?= zig +ZIGOPTS ?= $(ZIGBUSEOPTS) $(ZIGUSROPTS) c: src/send-msg.zig $(ZIGC) build-exe $(ZIGOPTS) $^ @@ -16,7 +18,7 @@ t: src/main.zig $(ZIGC) test $(ZIGOPTS) $^ d: src/main.zig - $(ZIGC) build-exe $(ZIGOPTS) -freference-trace $^ + $(ZIGC) build-exe $(ZIGOPTS) $^ o: $(SRC) $(ZIGC) test $(ZIGOPTS) $^