From e0b98e02b005e498ce468224e0e74f5f0d205679 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Thu, 21 Mar 2024 12:47:16 +0100 Subject: [PATCH] makefile: add info. Tell how to compile stuff. --- makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 2da1898..eb4de10 100644 --- a/makefile +++ b/makefile @@ -2,6 +2,14 @@ VERSION ?= 7.3 ARCH ?= amd64 DOMAIN ?= https://cdn.openbsd.org -all: +all: create-libc info + +create-libc: -mkdir -p $${PWD}/$(VERSION)/$(ARCH)/ ./build-ziglibc.sh $(DOMAIN)/pub/OpenBSD/$(VERSION)/$(ARCH)/ $${PWD}/$(VERSION)/$(ARCH)/ + +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