From 69f6497f87ce203cf0c3adb5562528b0ad596965 Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Fri, 5 Apr 2024 17:11:35 +0200 Subject: Add README, print arch to dist pkg, optimize for size --- Makefile | 3 ++- README.txt | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 README.txt diff --git a/Makefile b/Makefile index e2e86e6..0a85b90 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ MD5SUM=md5sum -b TAR=tar INSTALL_ROOT=/usr/local -CFLAGS=-Wall -Werror -pedantic -std=c89 -fPIC -fmax-errors=1 -DPROJECT_VERSION=$(PROJECT_VERSION) -D_POSIX_C_SOURCE=200112L +CFLAGS=-Wall -Werror -pedantic -std=c89 -fPIC -Os -fmax-errors=1 -DPROJECT_VERSION=$(PROJECT_VERSION) -D_POSIX_C_SOURCE=200112L LDFLAGS=-Wl,-s,--as-needed,--gc-sections,-pie @@ -47,6 +47,7 @@ dist/getaddrinfo-$(PROJECT_VERSION)+$(ARCH).tgz: build/bin/getaddrinfo $(MKDIR_P) "$(shell dirname "$@")" build/tar build/tar/bin $(COPYTO) build/tar/bin/. build/bin/getaddrinfo echo "version=$(PROJECT_VERSION)" > build/tar/METADATA.INI + echo "arch=$(ARCH)" >> build/tar/METADATA.INI echo "builtAt=$(shell date -u +%Y-%m-%dT%H:%M:%SZ)" >> build/tar/METADATA.INI $(TAR) --owner=0 --group=0 -czf "$@" -C build/tar METADATA.INI bin/getaddrinfo diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..9375737 --- /dev/null +++ b/README.txt @@ -0,0 +1,7 @@ + +getaddrinfo-cli +=============== + +Simple commandline frontend to getaddrinfo +(https://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html). + -- cgit v1.1