macOS対応

This commit is contained in:
2026-05-07 21:30:59 +09:00
parent a8eae150d4
commit ffa88142e8
2 changed files with 17 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
## 1.3.0 (????年??月??日)
* macOS対応
## 1.2.0 (2026年05月03日)
* Debianでコンパイル出来る様に
* マウス対応の追加

View File

@@ -35,11 +35,17 @@ PREFIX = /usr
PREFIX = /boot/home/config/non-packaged
.endif
CFLAGS = -I/usr/include -I/usr/local/include -I/usr/pkg/include\
-I/usr/pkg/include/ncurses -I/boot/system/develop/headers\
-L/usr/lib -L/usr/local/lib -L/usr/pkg/lib -L/boot/system/develop/lib
CFLAGS = -I/usr/include -I/usr/local/include -L/usr/lib -L/usr/local/lib
.if ${UNAME_S} == "NetBSD"
.if ${OS} == "netbsd"
CFLAGS += -I/usr/pkg/include -I/usr/pkg/include/ncurses -L/usr/pkg/lib
.elif ${OS} == "macos"
CFLAGS += -I/opt/homebrew/opt/ncurses/include -L/opt/homebrew/opt/ncurses/lib
.elif ${OS} == "haiku"
CFLAGS += -I/boot/system/develop/headers -L/boot/system/develop/lib
.endif
.if ${OS} == "netbsd"
LDFLAGS = -lncurses
.else
LDFLAGS = -lncursesw
@@ -52,6 +58,10 @@ all:
${CC} -O3 ${CFLAGS} -o ${NAME} ${FILES} -std=c++17 -static ${LDFLAGS}
strip ${NAME}
mac:
${CC} -O3 ${CFLAGS} -o ${NAME} ${FILES} -std=c++17 ${LDFLAGS}
strip ${NAME}
debian:
${CC} -O3 ${CFLAGS} -o ${NAME} ${FILES} -std=c++17 -static ${LDFLAGS} -ltinfo
strip ${NAME}