git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 7b437d963ea82170e9f317c52590d9c06d3b2c40
parent 9fd0b9dd8316f00271d355c28bcac92e134dd9da
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Thu, 15 Jun 2023 11:43:54 -0700

Merge pull request #527 from gbdk-2020/build-sdcc-win3264-dll-copy

Build: win32-win64 SDCC DLL copy
Diffstat:
MMakefile20++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -277,19 +277,31 @@ gbdk-dist-examples-clean: $(MAKE) -C $(BUILDDIR)/examples/gb clean -# Copy SDDC executable files +# Copy SDDC executable files and DLLs # win 32 specific: libgcc_s_dw2-1.dll # win 64 specific: libgcc_s_seh-1.dll SDCC_BINS = packihx sdar sdasgb sdcc sdcpp sdldgb sdnm sdobjcopy sdranlib sdasz80 sdldz80 sdas6500 sdld6808 sdld ifeq ($(OS),Windows_NT) + +# Check for 32 bit Windows target a couple different ways and select the matching SDCC DLL +WIN_TARGET = $(firstword $(subst -, ,$(shell $(TARGETCC) -dumpmachine))) +ifeq ($(OS_TARGET),Win_x32) +SDCC_OS_DLL = libgcc_s_dw2-1.dll +else ifeq ($(WIN_TARGET),mingw32) +SDCC_OS_DLL = libgcc_s_dw2-1.dll +else ifeq ($(WIN_TARGET),i686) +SDCC_OS_DLL = libgcc_s_dw2-1.dll +else +# Otherwise default 64 bit Windows SDCC DLL +SDCC_OS_DLL = libgcc_s_seh-1.dll +endif + MINGW64_RUNTIME = \ - libgcc_s_dw2-1.dll \ - libgcc_s_seh-1.dll \ libgcc_s_sjlj-1.dll \ libstdc++-6.dll \ libwinpthread-1.dll \ readline5.dll -SDCC_BINS := $(addsuffix .exe, $(SDCC_BINS)) $(MINGW64_RUNTIME) +SDCC_BINS := $(addsuffix .exe, $(SDCC_BINS)) $(MINGW64_RUNTIME) $(SDCC_OS_DLL) endif sdcc-install: check-SDCCDIR

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.