2024-03-21 12:05:07 +01:00
|
|
|
VERSION ?= 7.3
|
|
|
|
ARCH ?= amd64
|
|
|
|
DOMAIN ?= https://cdn.openbsd.org
|
|
|
|
|
2024-03-21 12:47:16 +01:00
|
|
|
all: create-libc info
|
|
|
|
|
|
|
|
create-libc:
|
2024-03-21 12:05:07 +01:00
|
|
|
-mkdir -p $${PWD}/$(VERSION)/$(ARCH)/
|
|
|
|
./build-ziglibc.sh $(DOMAIN)/pub/OpenBSD/$(VERSION)/$(ARCH)/ $${PWD}/$(VERSION)/$(ARCH)/
|
2024-03-21 12:47:16 +01:00
|
|
|
|
|
|
|
info:
|
|
|
|
@echo environment variable to use:
|
|
|
|
@echo ZIG_LIBC=$${PWD}/$(VERSION)/$(ARCH)/libc.conf
|
|
|
|
@echo how to compile:
|
|
|
|
@echo zig build -Dtarget=x86_64-openbsd -Doptimize=ReleaseSmall
|