From e16c2a2204d215a29897f3ce626664186fa81b9e Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Thu, 24 Aug 2023 09:43:57 +0000 Subject: [PATCH] release.sh: release helper script --- Makefile | 2 +- release.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 release.sh diff --git a/Makefile b/Makefile index a4bda9b..824bebf 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ SRC += stmt_string.cpp OBJ = $(patsubst %.cpp,%.o,$(SRC)) DEP = $(patsubst %.cpp,%.d,$(SRC)) -MAIN = scu-dsp-asm +MAIN ?= scu-dsp-asm all: $(MAIN) diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..c91dcca --- /dev/null +++ b/release.sh @@ -0,0 +1,6 @@ +V=2 +M=scu-dsp-asm.$V + +make TARGET=x86_64-pc-linux-gnu- MAIN=$M.Linux.x86_64 clean all +make TARGET=x86_64-w64-mingw32- MAIN=$M.Windows.x86_64 clean all +make TARGET=i686-w64-mingw32- MAIN=$M.Windows.i686 clean all