Makefile: tcpd, zig links against libc.
parent
1e3c1b2625
commit
58320cbb46
|
@ -2,7 +2,9 @@ all:
|
||||||
|
|
||||||
ZIGMAKEDOC = -femit-docs -fno-emit-bin
|
ZIGMAKEDOC = -femit-docs -fno-emit-bin
|
||||||
ZIGOPTIM ?= Debug
|
ZIGOPTIM ?= Debug
|
||||||
ZIGBUSEOPTS ?= -O$(ZIGOPTIM) -freference-trace
|
# Linking against libc is almost mandatory, C allocator is used
|
||||||
|
# for switching (default reception and emission functions).
|
||||||
|
ZIGBUSEOPTS ?= -O$(ZIGOPTIM) -freference-trace -lc
|
||||||
ZIGUSROPTS ?=
|
ZIGUSROPTS ?=
|
||||||
ZIGC ?= zig
|
ZIGC ?= zig
|
||||||
ZIGOPTS ?= $(ZIGBUSEOPTS) $(ZIGUSROPTS)
|
ZIGOPTS ?= $(ZIGBUSEOPTS) $(ZIGUSROPTS)
|
||||||
|
@ -10,6 +12,9 @@ ZIGOPTS ?= $(ZIGBUSEOPTS) $(ZIGUSROPTS)
|
||||||
ipcd: src/ipcd.zig
|
ipcd: src/ipcd.zig
|
||||||
$(ZIGC) build-exe $(ZIGOPTS) $^
|
$(ZIGC) build-exe $(ZIGOPTS) $^
|
||||||
|
|
||||||
|
tcpd: src/tcpd.zig
|
||||||
|
$(ZIGC) build-exe $(ZIGOPTS) $^
|
||||||
|
|
||||||
test-libipc: src/main.zig
|
test-libipc: src/main.zig
|
||||||
$(ZIGC) test $(ZIGOPTS) $^
|
$(ZIGC) test $(ZIGOPTS) $^
|
||||||
|
|
||||||
|
|
Reference in New Issue