git.y1.nz

gbdk-2020

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

commit efba0aff9bf8fd61be1c76d364f9a3e65691154b
parent b0b0b46202e04f80588f6bc80da2e222f5d8c091
Author: Toxa <untoxa@mail.ru>
Date:   Sun, 19 Sep 2021 00:31:56 +0300

remove GB definition (we have GAMEBOY definition), remove __LCC__ definition (not used), remove SDCC definition (not used, also defined by SDCC itself and marked as obsolete, must use __SDCC instead)

Diffstat:
Mgbdk-support/lcc/gb.c6++----
Mgbdk-support/lcc/lcc.c2+-
Mgbdk-support/lcc/targets.c8++++----
3 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/gbdk-support/lcc/gb.c b/gbdk-support/lcc/gb.c @@ -32,8 +32,7 @@ static struct { { "plat", "gb" }, { "sdccdir", "%bindir%"}, { "cpp", "%sdccdir%sdcpp" }, - { "cppdefault", "-Wall -DSDCC=1 -DSDCC_PORT=%port% " - "-DSDCC_PLAT=%plat% -D%cppmodel%" + { "cppdefault", "-Wall -DSDCC_PORT=%port% -DSDCC_PLAT=%plat% -D%cppmodel%" }, { "cppmodel", "SDCC_MODEL_SMALL" }, { "includedefault", "-I%includedir%" }, @@ -43,8 +42,7 @@ static struct { { "commodel", "small" }, { "com", "%sdccdir%sdcc" }, { "comflag", "-c"}, - { "comdefault", "-m%port% --no-std-crt0 --fsigned-char --use-stdout " - " -D__PORT_%port% -D__TARGET_%plat% "}, + { "comdefault", "-m%port% --no-std-crt0 --fsigned-char --use-stdout -D__PORT_%port% -D__TARGET_%plat% "}, /* asdsgb assembler defaults: -p: disable pagination -o: create object file diff --git a/gbdk-support/lcc/lcc.c b/gbdk-support/lcc/lcc.c @@ -133,7 +133,7 @@ int main(int argc, char *argv[]) { help(); exit(0); } - clist = append("-D__LCC__", 0); +// clist = append("-D__LCC__", 0); initinputs(); if (getenv("GBDKDIR")) option(stringf("--prefix=%s", getenv("GBDKDIR"))); diff --git a/gbdk-support/lcc/targets.c b/gbdk-support/lcc/targets.c @@ -38,9 +38,9 @@ CLASS classes[] = { "gb", // plat "gb", // default_plat EXT_GB, // ROM file extension - "%cpp% %cppdefault% -DGB=1 -DINT_16_BITS $1 $2 $3", + "%cpp% %cppdefault% -DINT_16_BITS $1 $2 $3", "%includedefault%", - "%com% %comdefault% -Wa%asdefault% -DGB=1 -DINT_16_BITS $1 %comflag% $2 -o $3", + "%com% %comdefault% -Wa%asdefault% -DINT_16_BITS $1 %comflag% $2 -o $3", "%as_gb% %asdefault% $1 $3 $2", "%bankpack% $1 $2", "%ld_gb% -n -i $1 %libs_include% $3 %crt0dir% $2", @@ -53,9 +53,9 @@ CLASS classes[] = { "ap", // plat "ap", // default_plat EXT_AP, // ROM file extension - "%cpp% %cppdefault% -DGB=1 -DINT_16_BITS $1 $2 $3", + "%cpp% %cppdefault% -DINT_16_BITS $1 $2 $3", "%includedefault%", - "%com% %comdefault% -Wa%asdefault% -DGB=1 -DINT_16_BITS $1 %comflag% $2 -o $3", + "%com% %comdefault% -Wa%asdefault% -DINT_16_BITS $1 %comflag% $2 -o $3", "%as_gb% %asdefault% $1 $3 $2", "%bankpack% $1 $2", "%ld_gb% -n -i $1 %libs_include% $3 %crt0dir% $2",

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