gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 928ab64ac4729656bdb48ff0a6e3475ecfcf1aae parent 8100f6858f03e469f3c8c2e69e14808505f2199f Author: Toxa <untoxa@mail.ru> Date: Thu, 18 Feb 2021 16:32:16 +0300 fix compiling of templates Diffstat:
| M | gbdk-lib/examples/gb/template_minimal/Makefile | 2 | +- |
| M | gbdk-lib/examples/gb/template_subfolders/Makefile | 7 | +++++-- |
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gbdk-lib/examples/gb/template_minimal/Makefile b/gbdk-lib/examples/gb/template_minimal/Makefile @@ -12,7 +12,7 @@ LCC = $(GBDK_HOME)bin/lcc # LCC = $(LCC) -debug # You can set the name of the .gb ROM file here -PROJECTNAME = "Example" +PROJECTNAME = Example BINS = $(PROJECTNAME).gb CSOURCES := $(wildcard *.c) diff --git a/gbdk-lib/examples/gb/template_subfolders/Makefile b/gbdk-lib/examples/gb/template_subfolders/Makefile @@ -13,7 +13,7 @@ LCC = $(GBDK_HOME)bin/lcc # LCC = $(LCC) -debug # You can set the name of the .gb ROM file here -PROJECTNAME = "Example" +PROJECTNAME = Example SRCDIR = src OBJDIR = obj @@ -23,7 +23,7 @@ CSOURCES = $(foreach dir,$(SRCDIR),$(notdir $(wildcard $(dir)/*.c))) $(foreac ASMSOURCES = $(foreach dir,$(SRCDIR),$(notdir $(wildcard $(dir)/*.s))) OBJS = $(CSOURCES:%.c=$(OBJDIR)/%.o) $(ASMSOURCES:%.s=$(OBJDIR)/%.o) -all: $(BINS) +all: prepare $(BINS) make.bat: Makefile @echo "REM Automatically generated from Makefile" > make.bat @@ -50,6 +50,9 @@ $(OBJDIR)/%.s: $(SRCDIR)/%.c $(BINS): $(OBJS) $(LCC) $(CFLAGS) -o $(BINS) $(OBJS) +prepare: + mkdir -p $(OBJDIR) + clean: # rm -f *.gb *.ihx *.cdb *.adb *.noi *.map rm -f $(OBJDIR)/*.*
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.