Makefile++.
parent
ca0d6adbc6
commit
8b10612456
|
@ -1,7 +1,9 @@
|
||||||
all:
|
all:
|
||||||
|
|
||||||
ZIGC = zig
|
ZIGBUSEOPTS ?= -OReleaseSmall
|
||||||
ZIGOPTS = -OReleaseSmall $(ZIGUSROPTS)
|
ZIGUSROPTS ?= -freference-trace
|
||||||
|
ZIGC ?= zig
|
||||||
|
ZIGOPTS ?= $(ZIGBUSEOPTS) $(ZIGUSROPTS)
|
||||||
|
|
||||||
c: src/send-msg.zig
|
c: src/send-msg.zig
|
||||||
$(ZIGC) build-exe $(ZIGOPTS) $^
|
$(ZIGC) build-exe $(ZIGOPTS) $^
|
||||||
|
@ -16,7 +18,7 @@ t: src/main.zig
|
||||||
$(ZIGC) test $(ZIGOPTS) $^
|
$(ZIGC) test $(ZIGOPTS) $^
|
||||||
|
|
||||||
d: src/main.zig
|
d: src/main.zig
|
||||||
$(ZIGC) build-exe $(ZIGOPTS) -freference-trace $^
|
$(ZIGC) build-exe $(ZIGOPTS) $^
|
||||||
|
|
||||||
o: $(SRC)
|
o: $(SRC)
|
||||||
$(ZIGC) test $(ZIGOPTS) $^
|
$(ZIGC) test $(ZIGOPTS) $^
|
||||||
|
|
Reference in New Issue