git.y1.nz

gbdk-2020

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

commit ff166808560a3c2c3aedd1d45db26d4c646c5784
parent b3b9dd6f54f57d05ed1224ff8cbf0e92d49c1b3c
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Fri, 18 Jul 2025 12:04:59 -0700

Merge pull request #796 from bbbbbr/examples/missing_gbdk_debug

Examples: MBC3 and 7: Add missing GBDK_DEBUG check to Makefiles
Diffstat:
Mgbdk-lib/examples/gb/mbc3_rtc/Makefile16++++++++++------
Mgbdk-lib/examples/gb/mbc7_accelerometer/Makefile10+++++++---
Mgbdk-lib/examples/megaduck/laptop_keyboard/Makefile11++++++++---
Mgbdk-lib/examples/megaduck/laptop_rtc/Makefile11++++++++---
Mgbdk-lib/examples/megaduck/laptop_speech/Makefile11++++++++---
5 files changed, 41 insertions(+), 18 deletions(-)

diff --git a/gbdk-lib/examples/gb/mbc3_rtc/Makefile b/gbdk-lib/examples/gb/mbc3_rtc/Makefile @@ -12,10 +12,10 @@ LCC = $(GBDK_HOME)bin/lcc TARGETS= gb # gb pocket megaduck sms gg nes # Configure platform specific LCC flags here: -LCCFLAGS_gb = -Wl-yt0x10 -Wm-ya4 # Set an MBC for banking (0x10: ROM+MBC3+RTC+RAM+BAT) with 4 cart SRAM banks -LCCFLAGS_pocket = -Wl-yt0x10 -Wm-ya4 # Usually the same as required for .gb -LCCFLAGS_duck = # -Wl-yt0x10 -Wm-ya4 # Usually the same as required for .gb -LCCFLAGS_gbc = -Wl-yt0x10 -Wm-ya4 -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive) +LCCFLAGS_gb = -Wl-yt0x10 -Wm-ya4 # Set an MBC for banking (0x10: ROM+MBC3+RTC+RAM+BAT) with 4 cart SRAM banks +LCCFLAGS_pocket = -Wl-yt0x10 -Wm-ya4 # Usually the same as required for .gb +LCCFLAGS_duck = +LCCFLAGS_gbc = -Wl-yt0x10 -Wm-ya4 -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive) LCCFLAGS_sms = LCCFLAGS_gg = LCCFLAGS_nes = @@ -23,14 +23,18 @@ LCCFLAGS_nes = LCCFLAGS += $(LCCFLAGS_$(EXT)) # This adds the current platform specific LCC Flags LCCFLAGS += -Wl-j # -Wm-yS -Wm-yoA -Wm-ya4 -autobank -Wb-ext=.rel -Wb-v # MBC + Autobanking related flags -# LCCFLAGS += -debug # Uncomment to enable debug output -# LCCFLAGS += -v # Uncomment for lcc verbose output LCCFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) CFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) +# GBDK_DEBUG = ON +ifdef GBDK_DEBUG + LCCFLAGS += -debug -v +endif + # You can set the name of the ROM file here PROJECTNAME = mbc3_rtc + # EXT?=gb # Only sets extension to default (game boy .gb) if not populated SRCDIR = src OBJDIR = obj/$(EXT) diff --git a/gbdk-lib/examples/gb/mbc7_accelerometer/Makefile b/gbdk-lib/examples/gb/mbc7_accelerometer/Makefile @@ -14,7 +14,7 @@ TARGETS= gb # gb pocket megaduck sms gg nes # Configure platform specific LCC flags here: LCCFLAGS_gb = -Wl-yt0x22 # Set an MBC for banking (1B-ROM+MBC5+RAM+BATT) LCCFLAGS_pocket = -Wl-yt0x22 # Usually the same as required for .gb -LCCFLAGS_duck = # -Wl-yt0x1B # Usually the same as required for .gb +LCCFLAGS_duck = LCCFLAGS_gbc = -Wl-yt0x22 -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive) LCCFLAGS_sms = LCCFLAGS_gg = @@ -23,14 +23,18 @@ LCCFLAGS_nes = LCCFLAGS += $(LCCFLAGS_$(EXT)) # This adds the current platform specific LCC Flags LCCFLAGS += -Wl-j # -Wm-yS -Wm-yoA -Wm-ya4 -autobank -Wb-ext=.rel -Wb-v # MBC + Autobanking related flags -# LCCFLAGS += -debug # Uncomment to enable debug output -# LCCFLAGS += -v # Uncomment for lcc verbose output LCCFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) CFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) +# GBDK_DEBUG = ON +ifdef GBDK_DEBUG + LCCFLAGS += -debug -v +endif + # You can set the name of the ROM file here PROJECTNAME = mbc7_accelerometer + # EXT?=gb # Only sets extension to default (game boy .gb) if not populated SRCDIR = src OBJDIR = obj/$(EXT) diff --git a/gbdk-lib/examples/megaduck/laptop_keyboard/Makefile b/gbdk-lib/examples/megaduck/laptop_keyboard/Makefile @@ -14,7 +14,7 @@ TARGETS= megaduck # gb pocket megaduck sms gg nes # Configure platform specific LCC flags here: LCCFLAGS_gb = # -Wl-yt0x1B # Set an MBC for banking (1B-ROM+MBC5+RAM+BATT) LCCFLAGS_pocket = # -Wl-yt0x1B # Usually the same as required for .gb -LCCFLAGS_duck = # -Wl-yt0x1B # Usually the same as required for .gb +LCCFLAGS_duck = LCCFLAGS_gbc = # -Wl-yt0x1B -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive) LCCFLAGS_sms = LCCFLAGS_gg = @@ -23,11 +23,16 @@ LCCFLAGS_nes = LCCFLAGS += $(LCCFLAGS_$(EXT)) # This adds the current platform specific LCC Flags LCCFLAGS += -Wl-j # -Wm-yS -Wm-yoA -Wm-ya4 -autobank -Wb-ext=.rel -Wb-v # MBC + Autobanking related flags -# LCCFLAGS += -debug # Uncomment to enable debug output -# LCCFLAGS += -v # Uncomment for lcc verbose output + LCCFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) CFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) +# GBDK_DEBUG = ON +ifdef GBDK_DEBUG + LCCFLAGS += -debug -v +endif + + # You can set the name of the ROM file here PROJECTNAME = megaduck_keyboard diff --git a/gbdk-lib/examples/megaduck/laptop_rtc/Makefile b/gbdk-lib/examples/megaduck/laptop_rtc/Makefile @@ -14,7 +14,7 @@ TARGETS= megaduck # gb pocket megaduck sms gg nes # Configure platform specific LCC flags here: LCCFLAGS_gb = # -Wl-yt0x1B # Set an MBC for banking (1B-ROM+MBC5+RAM+BATT) LCCFLAGS_pocket = # -Wl-yt0x1B # Usually the same as required for .gb -LCCFLAGS_duck = # -Wl-yt0x1B # Usually the same as required for .gb +LCCFLAGS_duck = LCCFLAGS_gbc = # -Wl-yt0x1B -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive) LCCFLAGS_sms = LCCFLAGS_gg = @@ -23,11 +23,16 @@ LCCFLAGS_nes = LCCFLAGS += $(LCCFLAGS_$(EXT)) # This adds the current platform specific LCC Flags LCCFLAGS += -Wl-j # -Wm-yS -Wm-yoA -Wm-ya4 -autobank -Wb-ext=.rel -Wb-v # MBC + Autobanking related flags -# LCCFLAGS += -debug # Uncomment to enable debug output -# LCCFLAGS += -v # Uncomment for lcc verbose output + LCCFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) CFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) +# GBDK_DEBUG = ON +ifdef GBDK_DEBUG + LCCFLAGS += -debug -v +endif + + # You can set the name of the ROM file here PROJECTNAME = megaduck_rtc diff --git a/gbdk-lib/examples/megaduck/laptop_speech/Makefile b/gbdk-lib/examples/megaduck/laptop_speech/Makefile @@ -14,7 +14,7 @@ TARGETS= megaduck # gb pocket megaduck sms gg nes # Configure platform specific LCC flags here: LCCFLAGS_gb = # -Wl-yt0x1B # Set an MBC for banking (1B-ROM+MBC5+RAM+BATT) LCCFLAGS_pocket = # -Wl-yt0x1B # Usually the same as required for .gb -LCCFLAGS_duck = # -Wl-yt0x1B # Usually the same as required for .gb +LCCFLAGS_duck = LCCFLAGS_gbc = # -Wl-yt0x1B -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive) LCCFLAGS_sms = LCCFLAGS_gg = @@ -23,11 +23,16 @@ LCCFLAGS_nes = LCCFLAGS += $(LCCFLAGS_$(EXT)) # This adds the current platform specific LCC Flags LCCFLAGS += -Wl-j # -Wm-yS -Wm-yoA -Wm-ya4 -autobank -Wb-ext=.rel -Wb-v # MBC + Autobanking related flags -# LCCFLAGS += -debug # Uncomment to enable debug output -# LCCFLAGS += -v # Uncomment for lcc verbose output + LCCFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) CFLAGS += -Wf-MMD -Wf-Wp-MP # Header file dependency output (-MMD) for Makefile use + per-header Phony rules (-MP) +# GBDK_DEBUG = ON +ifdef GBDK_DEBUG + LCCFLAGS += -debug -v +endif + + # You can set the name of the ROM file here PROJECTNAME = megaduck_speech

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