From 9f6d7a31314db624cff6f8aa4224abce334c61b0 Mon Sep 17 00:00:00 2001 From: Detlef Groth Date: Thu, 1 Aug 2024 09:25:19 +0200 Subject: [PATCH] adding version number and mac version to mecb and mewb builds --- macos32gcc.gmk | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/macos32gcc.gmk b/macos32gcc.gmk index 9ac6a38..38210ef 100644 --- a/macos32gcc.gmk +++ b/macos32gcc.gmk @@ -8,7 +8,7 @@ # Author : $Author$ # Created By : Detlef Groth # Created : Wed Jul 31 21:47:07 2024 -# Last Modified : <240801.0913> +# Last Modified : <240801.0924> # # Description # @@ -33,15 +33,8 @@ version=091224b VERSION=$(shell grep -e '^version=' macos32gcc.gmk | sed 's/version=//') CC=gcc-11 MAKE=/usr/local/opt/make/libexec/gnubin/make -KERNEL=$(shell uname -r | grep -oE '^[0-9]+') -OS="14" -ifeq($(KERNEL),21) - OS="12" -else ifeq($(KERNEL),22) - OS="13" -else - OS="14" -endif +KERNEL=$(shell uname -r | grep -oE '^[0-9]+' | sed 's/21/12/' | sed 's/22/13/' | sed 's/23/14/') +OS=macos-$(KERNEL) bfs/bin: cd bfs && $(MAKE) CC=$(CC) @@ -53,7 +46,7 @@ mew: cd src && $(MAKE) -f macos32gcc.gmk CC=$(CC) BTYP=cw mecb: mec bfs/bin - ./bfs/bfs -a ./src/.macos32gcc-release-mec/mec -o mecb-macos-$(OS)-$(VERSION).bin ./jasspa + ./bfs/bfs -a ./src/.macos32gcc-release-mec/mec -o mecb-$(OS)-$(VERSION).bin ./jasspa mewb: mew bfs/bin - ./bfs/bfs -a ./src/.macos32gcc-release-mecw/mecw -o mewb-macos-$(OS)-$(VERSION).bin ./jasspa + ./bfs/bfs -a ./src/.macos32gcc-release-mecw/mecw -o mewb-$(OS)-$(VERSION).bin ./jasspa