From aac723e78c6c4fbda9b073a4546fe090f0c1ec81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Tue, 16 Apr 2024 18:06:04 +0900 Subject: [PATCH] =?utf8?q?NetBSD=E5=90=91=E3=81=91=E3=81=AE=E3=83=AA?= =?utf8?q?=E3=83=AA=E3=83=BC=E3=82=B9=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?utf8?q?=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + Makefile | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f209ada..af494c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * FreeBSD向けのリリースコマンドの追加 * Linux向けのリリースコマンドの追加 * 最新ルールに従い +* NetBSD向けのリリースコマンドの追加 # 1.2.0 * やっとTOTP機能性を修正した diff --git a/Makefile b/Makefile index f2028ca..44c987f 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,7 @@ CC=cc FILES=main.c src/*.c CFLAGS=-Wall -Wextra -O3 -I${PREFIX}/include -L${PREFIX}/lib .if ${UNAME_S} == "NetBSD" -CFLAGS=-Wall -Wextra -O3 -I/usr/pkg/include -L/usr/pkg/lib \ - -I/usr/local/include -L/usr/local/include +CFLAGS+=-I/usr/local/include -L/usr/local/lib -I/usr/include -L/usr/lib .endif LDFLAGS=-lgpgme -lcrypto @@ -52,6 +51,12 @@ release-freebsd: -static -lgpgme -lcrypto -lc -lassuan -lgpg-error -lthr -lintl strip release/${NAME}-${VERSION}-freebsd-amd64 +release-netbsd: + mkdir -p release + ${CC} ${CFLAGS} -o release/${NAME}-${VERSION}-netbsd-amd64 ${FILES} \ + -static -lgpgme -lcrypto -lcrypt -lc -lassuan -lgpg-error -lintl + strip release/${NAME}-${VERSION}-netbsd-amd64 + release-linux: mkdir -p release ${CC} ${CFLAGS} -o release/${NAME}-${VERSION}-linux-amd64 ${FILES} \ -- 2.43.0