git.y1.nz

gbdk-2020

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

commit 12e4ebe22cf7e07358ddca7c335a922e35f0baa3
parent ab1cd3a8026828d23fa6161ff3d765a706c1c146
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Wed, 26 Nov 2025 23:34:54 -0800

Merge pull request #842 from bbbbbr/examples/missing_compile_bat

Examples: fix some missing compile.bat
Diffstat:
MMakefile10++++++----
Mgbdk-lib/examples/cross-platform/banks/Makefile5+++++
Mgbdk-lib/examples/cross-platform/banks_autobank/Makefile5+++++
Mgbdk-lib/examples/cross-platform/banks_farptr/Makefile5+++++
Mgbdk-lib/examples/cross-platform/banks_nonintrinsic/Makefile5+++++
Mgbdk-lib/examples/cross-platform/bcd/Makefile5+++++
Mgbdk-lib/examples/cross-platform/display_system/Makefile5+++++
Mgbdk-lib/examples/cross-platform/emu_debug/Makefile5+++++
Mgbdk-lib/examples/cross-platform/fonts/Makefile5+++++
Mgbdk-lib/examples/cross-platform/gbdecompress/Makefile5+++++
Mgbdk-lib/examples/cross-platform/gbprinter/Makefile5+++++
Mgbdk-lib/examples/cross-platform/incbin/Makefile5+++++
Mgbdk-lib/examples/cross-platform/irq/Makefile5+++++
Mgbdk-lib/examples/cross-platform/joytest/Makefile5+++++
Mgbdk-lib/examples/cross-platform/large_map/Makefile5+++++
Mgbdk-lib/examples/cross-platform/libc_memcpy/Makefile5+++++
Mgbdk-lib/examples/cross-platform/libc_string/Makefile5+++++
Mgbdk-lib/examples/cross-platform/logo/Makefile5+++++
Mgbdk-lib/examples/cross-platform/metasprites/Makefile5+++++
Mgbdk-lib/examples/cross-platform/multiplayer/Makefile5+++++
Mgbdk-lib/examples/cross-platform/pong/Makefile5+++++
Mgbdk-lib/examples/cross-platform/randtest/Makefile5+++++
Mgbdk-lib/examples/cross-platform/rle_map/Makefile5+++++
Mgbdk-lib/examples/cross-platform/scroller/Makefile5+++++
Mgbdk-lib/examples/cross-platform/simple_physics/Makefile5+++++
Mgbdk-lib/examples/cross-platform/sram_banks/Makefile5+++++
Mgbdk-lib/examples/cross-platform/text_advanced_dialogue/Makefile5+++++
Mgbdk-lib/examples/cross-platform/text_basic/Makefile5+++++
Mgbdk-lib/examples/cross-platform/text_typewriter/Makefile5+++++
Mgbdk-lib/examples/megaduck/laptop_keyboard/Makefile4++++
Mgbdk-lib/examples/megaduck/laptop_printer/Makefile4++++
Mgbdk-lib/examples/megaduck/laptop_rtc/Makefile4++++
Mgbdk-lib/examples/megaduck/laptop_speech/Makefile4++++
33 files changed, 162 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,6 +12,8 @@ VER = 4.4.0 PORTS=sm83 z80 mos6502 PLATFORMS=gb ap duck gg sms msxdos nes +EXAMPLE_DIRS=$(PLATFORMS) +EXAMPLE_DIRS+= cross-platform megaduck # Prefix to add to the standard tools. Usefull for a standard gcc # cross-compile. @@ -279,10 +281,10 @@ gbdk-lib-install-platforms: gbdk-lib-install-examples: @echo Installing Examples @cp -r $(GBDKLIBDIR)/include $(GBDKLIBDIR)/examples $(BUILDDIR) - @for plat in $(PLATFORMS); do \ - if [ -d "$(BUILDDIR)/examples/$$plat" ]; then \ - echo Generating Examples compile.bat for $$plat; \ - $(MAKE) -C $(BUILDDIR)/examples/$$plat compile.bat --no-print-directory; \ + @for example_dir in $(EXAMPLE_DIRS); do \ + if [ -d "$(BUILDDIR)/examples/$$example_dir" ]; then \ + echo Generating Examples compile.bat for $$example_dir; \ + $(MAKE) -C $(BUILDDIR)/examples/$$example_dir compile.bat --no-print-directory; \ echo; \ fi \ done diff --git a/gbdk-lib/examples/cross-platform/banks/Makefile b/gbdk-lib/examples/cross-platform/banks/Makefile @@ -50,6 +50,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(eval BOFLAG = $(shell echo "$<" | sed -n 's/.*\.bo\([0-9]\+\).*/\-Wf-bo\1/p')) diff --git a/gbdk-lib/examples/cross-platform/banks_autobank/Makefile b/gbdk-lib/examples/cross-platform/banks_autobank/Makefile @@ -52,6 +52,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/banks_farptr/Makefile b/gbdk-lib/examples/cross-platform/banks_farptr/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/banks_nonintrinsic/Makefile b/gbdk-lib/examples/cross-platform/banks_nonintrinsic/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/bcd/Makefile b/gbdk-lib/examples/cross-platform/bcd/Makefile @@ -50,6 +50,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(eval BOFLAG = $(shell echo "$<" | sed -n 's/.*\.bo\([0-9]\+\).*/\-Wf-bo\1/p')) diff --git a/gbdk-lib/examples/cross-platform/display_system/Makefile b/gbdk-lib/examples/cross-platform/display_system/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/emu_debug/Makefile b/gbdk-lib/examples/cross-platform/emu_debug/Makefile @@ -47,6 +47,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/fonts/Makefile b/gbdk-lib/examples/cross-platform/fonts/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/gbdecompress/Makefile b/gbdk-lib/examples/cross-platform/gbdecompress/Makefile @@ -58,6 +58,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Use png2asset to convert the png into C formatted metasprite data # -sh 48 : Sets sprite height to 48 (width remains automatic) # -spr8x16 : Use 8x16 hardware sprites diff --git a/gbdk-lib/examples/cross-platform/gbprinter/Makefile b/gbdk-lib/examples/cross-platform/gbprinter/Makefile @@ -61,6 +61,11 @@ CFLAGS += -I$(OBJDIR) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Use png2asset to convert the png into C formatted map data # -c ... : Set C output file # Convert metasprite .pngs in res/ -> .c files in obj/<platform ext>/src/ diff --git a/gbdk-lib/examples/cross-platform/incbin/Makefile b/gbdk-lib/examples/cross-platform/incbin/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/irq/Makefile b/gbdk-lib/examples/cross-platform/irq/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/joytest/Makefile b/gbdk-lib/examples/cross-platform/joytest/Makefile @@ -47,6 +47,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/large_map/Makefile b/gbdk-lib/examples/cross-platform/large_map/Makefile @@ -71,6 +71,11 @@ CFLAGS += -I$(OBJDIR) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Use png2asset to convert the png into C formatted map data # -c ... : Set C output file # Convert metasprite .pngs in res/ -> .c files in obj/<platform ext>/src/ diff --git a/gbdk-lib/examples/cross-platform/libc_memcpy/Makefile b/gbdk-lib/examples/cross-platform/libc_memcpy/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/libc_string/Makefile b/gbdk-lib/examples/cross-platform/libc_string/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/logo/Makefile b/gbdk-lib/examples/cross-platform/logo/Makefile @@ -59,6 +59,11 @@ OBJS = $(IMAGES:%.png=$(OBJDIR)/%.o) $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMS # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + .SECONDEXPANSION: $(OBJDIR)/%.c: $(RESDIR)/%.png $$(wildcard $(RESDIR)/gfx/$(PLAT)/backgrounds/%.png.meta) $(PNG2ASSETS) $< `cat <$<.meta 2>/dev/null` -c $@ diff --git a/gbdk-lib/examples/cross-platform/metasprites/Makefile b/gbdk-lib/examples/cross-platform/metasprites/Makefile @@ -59,6 +59,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Use png2asset to convert the png into C formatted metasprite data # -sh 48 : Sets sprite height to 48 (width remains automatic) # -spr8x16 : Use 8x16 hardware sprites diff --git a/gbdk-lib/examples/cross-platform/multiplayer/Makefile b/gbdk-lib/examples/cross-platform/multiplayer/Makefile @@ -47,6 +47,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/pong/Makefile b/gbdk-lib/examples/cross-platform/pong/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/randtest/Makefile b/gbdk-lib/examples/cross-platform/randtest/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/rle_map/Makefile b/gbdk-lib/examples/cross-platform/rle_map/Makefile @@ -56,6 +56,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/scroller/Makefile b/gbdk-lib/examples/cross-platform/scroller/Makefile @@ -48,6 +48,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/simple_physics/Makefile b/gbdk-lib/examples/cross-platform/simple_physics/Makefile @@ -59,6 +59,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Use png2asset to convert the png into C formatted metasprite data # -sh 48 : Sets sprite height to 48 (width remains automatic) # -spr8x16 : Use 8x16 hardware sprites diff --git a/gbdk-lib/examples/cross-platform/sram_banks/Makefile b/gbdk-lib/examples/cross-platform/sram_banks/Makefile @@ -50,6 +50,11 @@ OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/text_advanced_dialogue/Makefile b/gbdk-lib/examples/cross-platform/text_advanced_dialogue/Makefile @@ -60,6 +60,11 @@ PNG2ASSET_BKG_SETTINGS_pocket= # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -I$(GENDIR) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/text_basic/Makefile b/gbdk-lib/examples/cross-platform/text_basic/Makefile @@ -62,6 +62,11 @@ PNG2ASSET_BKG_SETTINGS_pocket= # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -I$(GENDIR) -c -o $@ $< diff --git a/gbdk-lib/examples/cross-platform/text_typewriter/Makefile b/gbdk-lib/examples/cross-platform/text_typewriter/Makefile @@ -62,6 +62,11 @@ PNG2ASSET_BKG_SETTINGS_pocket= # Builds all targets sequentially all: $(TARGETS) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat + + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c $(LCC) $(LCCFLAGS) $(CFLAGS) -I$(GENDIR) -c -o $@ $< diff --git a/gbdk-lib/examples/megaduck/laptop_keyboard/Makefile b/gbdk-lib/examples/megaduck/laptop_keyboard/Makefile @@ -60,6 +60,10 @@ all: $(TARGETS) test: echo $(CSOURCES) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c diff --git a/gbdk-lib/examples/megaduck/laptop_printer/Makefile b/gbdk-lib/examples/megaduck/laptop_printer/Makefile @@ -60,6 +60,10 @@ all: $(TARGETS) test: echo $(CSOURCES) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c diff --git a/gbdk-lib/examples/megaduck/laptop_rtc/Makefile b/gbdk-lib/examples/megaduck/laptop_rtc/Makefile @@ -60,6 +60,10 @@ all: $(TARGETS) test: echo $(CSOURCES) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c diff --git a/gbdk-lib/examples/megaduck/laptop_speech/Makefile b/gbdk-lib/examples/megaduck/laptop_speech/Makefile @@ -60,6 +60,10 @@ all: $(TARGETS) test: echo $(CSOURCES) +compile.bat: Makefile + @echo "REM Automatically generated from Makefile" > compile.bat + @make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat + # Compile .c files in "src/" to .o object files $(OBJDIR)/%.o: $(SRCDIR)/%.c

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