blob: bcb7224a3257bcba7fe3924d3a46681295fa877a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
ZIG_DOPTIMIZE := -Doptimize=ReleaseSafe
ZIG_DTARGET := -Dtarget=native
ZIG_DCPU := -Dcpu=native
all:
zig build ${ZIG_DOPTIMIZE} ${ZIG_DTARGET} ${ZIG_DCPU}
debug:
zig build -Doptimize=Debug ${ZIG_DTARGET} ${ZIG_DCPU}
fast:
zig build -Doptimize=ReleaseFast ${ZIG_DTARGET} ${ZIG_DCPU}
safe:
zig build -Doptimize=ReleaseSafe ${ZIG_DTARGET} ${ZIG_DCPU}
small:
zig build -Doptimize=ReleaseSmall ${ZIG_DTARGET} ${ZIG_DCPU}
clean:
rm -rf zig-cache/ zig-out/
run:
zig build run
install: zig-out/bin/zhttpd
install -Dm755 zig-out/bin/zhttpd ~/.local/bin/zhttpd
|