2022-12-21 23:53:54 +01:00
|
|
|
all:
|
|
|
|
|
2022-12-27 22:39:23 +01:00
|
|
|
ZIGMAKEDOC = -femit-docs -fno-emit-bin
|
|
|
|
ZIGOPTIM ?= Debug
|
|
|
|
ZIGBUSEOPTS ?= -O$(ZIGOPTIM) -freference-trace
|
|
|
|
ZIGUSROPTS ?=
|
2022-12-23 02:36:10 +01:00
|
|
|
ZIGC ?= zig
|
|
|
|
ZIGOPTS ?= $(ZIGBUSEOPTS) $(ZIGUSROPTS)
|
2022-12-21 23:53:54 +01:00
|
|
|
|
2022-12-27 22:39:23 +01:00
|
|
|
ipcd: src/ipcd.zig
|
2022-12-21 23:53:54 +01:00
|
|
|
$(ZIGC) build-exe $(ZIGOPTS) $^
|
|
|
|
|
2022-12-27 22:39:23 +01:00
|
|
|
test-libipc: src/main.zig
|
|
|
|
$(ZIGC) test $(ZIGOPTS) $^
|
2022-12-21 23:53:54 +01:00
|
|
|
|
2022-12-27 22:39:23 +01:00
|
|
|
test-ipcd: src/ipcd.zig
|
2022-12-23 00:53:47 +01:00
|
|
|
$(ZIGC) test $(ZIGOPTS) $^
|
2022-12-22 08:30:15 +01:00
|
|
|
|
2022-12-27 22:39:23 +01:00
|
|
|
doc: src/ipcd.zig
|
|
|
|
$(ZIGC) build-exe $(ZIGOPTS) $(ZIGMAKEDOC) $^
|
2022-12-23 00:53:47 +01:00
|
|
|
|
2022-12-29 10:33:02 +01:00
|
|
|
TO_CLEAN != ls misc/*.zig | sed 's/.zig$\//' | sed 's_misc/__'
|
|
|
|
TO_CLEAN += ipcd
|
|
|
|
clean:
|
|
|
|
@-rm $(TO_CLEAN) 2>/dev/null
|
|
|
|
|
|
|
|
mrproper: clean
|
|
|
|
@-rm -r docs zig-cache zig-out 2>/dev/null
|
2022-12-27 22:39:23 +01:00
|
|
|
|
2022-12-29 12:15:20 +01:00
|
|
|
servedoc:
|
|
|
|
darkhttpd docs/ --addr 127.0.0.1 --port 35000
|
|
|
|
|
2022-12-27 22:39:23 +01:00
|
|
|
# You can add your specific instructions there.
|
|
|
|
-include makefile.user
|