gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit ca9d8a911f480b2649fc7ac0d6380c13704f4569 parent 84d000a4347ac52b3ffa3797aa9265c5aa7edc71 Author: Toxa <56631470+untoxa@users.noreply.github.com> Date: Sat, 14 Nov 2020 00:04:26 +0300 Merge pull request #83 from jserv/remove-unused-scripts Remove out-of-date build scripts and ChangeLog Diffstat:
| D | gbdk-lib/ChangeLog | 6 | ------ |
| D | gbdk-support/build.mak | 194 | ------------------------------------------------------------------------------- |
| D | gbdk-support/mega.mak | 93 | ------------------------------------------------------------------------------- |
| D | gbdk-support/update.mak | 98 | ------------------------------------------------------------------------------- |
4 files changed, 0 insertions(+), 391 deletions(-)
diff --git a/gbdk-lib/ChangeLog b/gbdk-lib/ChangeLog @@ -1,6 +0,0 @@ -2001-11-03 Michael Hope <michaelh@juju.net.nz> - - * examples/gb/gb-dtmf/gb-dtmf.c (main): Changed printf to %u as the arg was a int. - - * examples/gb/ram_fn.c (print_counter): Made ANSI compliant. - diff --git a/gbdk-support/build.mak b/gbdk-support/build.mak @@ -1,194 +0,0 @@ -# Makefile to get and build all the parts of GBDK - -CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ - else if [ -x /bin/bash ]; then echo /bin/bash; \ - else echo sh; fi ; fi) - -TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) - -BUILD = $(TOPDIR)/build/gbdk -SDCCLIB = $(BUILD) -CVSFLAGS = -z5 -CVS = cvs -DIR = . -VER = 2.95-3 -# Used as a branch name. -SHORTVER = 295-3 - -# Options: -# linux-linux Building on Linux, targeting Linux -# linux-ming32 Building on Linux, targeting mingw32 based win32 -# cygwin-mingw32 Building via cygwin on win32, targeting mingw32 - -COMPILE_MODE = linux-linux -SDCC_OR_GBDK = gbdk - -ROOT_GBDK = :pserver:anonymous@cvs.gbdk.sourceforge.net:/cvsroot/gbdk -ROOT_SDCC = :pserver:anonymous@cvs.sdcc.sourceforge.net:/cvsroot/sdcc - -ifeq ($(COMPILE_MODE),linux-linux) -# For Linux -SE = -E = -SDCC_ROOT = /usr/lib/$(SDCC_OR_GBDK) -endif - -ifeq ($(COMPILE_MODE),linux-mingw32) -# For mingw32 hosted on Linux -# Tools name prefix -TNP = i386-mingw32- -# Source extension - what the gcc generated files have appended -SE = -# Dest extenstion - what extension we want them to have. -E = .exe -SDCC_ROOT = /$(SDCC_OR_GBDK) -# Set to cross to bypass the detection -CROSS_LIBGC = 1 -endif - -ifeq ($(COMPILE_MODE),cygwin-mingw32) -# For mingw32 on win32 -# Source extension - what the gcc generated files have appended -SE = .exe -# Dest extenstion - what extension we want them to have. -SDCC_ROOT = /$(SDCC_OR_GBDK) -endif - -MODELS = small medium - -ifeq ($(SDCC_OR_GBDK),gbdk) -CONFIGURE_FLAGS = --disable-mcs51-port --disable-avr-port -LIBS = gbdk-lib-gbz80 gbdk-lib-include gbdk-libc-copy -MISC = gbdk-lib-examples -DOC = gbdk-doc -DOC_MISC = gbdk-support/README gbdk-support/ChangeLog build.mak \ - gbdk-support/mega.mak -else -LIBS = gbdk-lib sdcc-lib -MISC = sdcc-misc -DOC = sdcc-doc -endif - -all: logged_in dist - -clean: - for i in sdcc gbdk-lib gbdk-support/lcc; do make -C $$i clean; done - rm -f *~ - rm -rf $(BUILD) gbdk-lib gbdk-support sdcc logged_in - -update: logged_in - cd $(DIR); cvs $(CVSFLAGS) -d$(ROOT_SDCC) co -r $(SDCC_OR_GBDK)-$(SHORTVER) sdcc - cd $(DIR); cvs $(CVSFLAGS) -d$(ROOT_GBDK) co -r $(SDCC_OR_GBDK)-$(SHORTVER) gbdk-lib - cd $(DIR); cvs $(CVSFLAGS) -d$(ROOT_GBDK) co -r $(SDCC_OR_GBDK)-$(SHORTVER) gbdk-support - -_sdcc: sdcc-bin $(LIBS) $(MISC) $(DOC) - -tidy: - rm -rf `find $(BUILD) -name "CVS"` - rm -rf `find $(BUILD)/lib -name "*.asm"` - -$(TNP)strip $(BUILD)/bin/* - -sdcc-bin: sdcc/sdccconf.h - make -C sdcc sdcc-cc sdcc-aslink CROSS_LIBGC=$(CROSS_LIBGC) \ - PASS_ON=SDCC_SUB_VERSION=$(SDCC_OR_GBDK)-$(VER) - mkdir -p $(BUILD)/bin - for i in \ - sdcc sdcpp link-gbz80 as-gbz80; \ - do cp sdcc/bin/$$i$(SE) $(BUILD)/bin/$$i$(E); done - -sdcc-misc: sdcc/sdccconf.h - make -C sdcc sdcc-misc CROSS_LIBGC=$(CROSS_LIBGC) - mkdir -p $(BUILD)/bin - for i in \ - sdcdb; \ - do cp sdcc/bin/$$i$(SE) $(BUILD)/bin/$$i$(E); done - cp sdcc/sim/ucsim/s51.src/s51$(E) $(BUILD)/bin - cp sdcc/sim/ucsim/z80.src/sz80$(E) $(BUILD)/bin - cp sdcc/sim/ucsim/avr.src/savr$(E) $(BUILD)/bin - cp sdcc/debugger/mcs51/*.el $(BUILD)/bin - -sdcc-doc: - (cd sdcc; tar cf - doc) | (cd $(BUILD); tar xf -) - cp sdcc/README sdcc/COPYING $(BUILD) - mkdir -p $(BUILD)/sim - for i in COPYING INSTALL README TODO; \ - do cp sdcc/sim/ucsim/$$i $(BUILD)/sim; done - (cd sdcc/sim/ucsim; tar cf - doc) | (cd $(BUILD)/sim; tar xf -) - -gbdk-doc: gbdk-lib-doc - -sdcc-lib: sdcc-lib-z80 - -gbdk-lib: gbdk-lib-z80 gbdk-lib-gbz80 gbdk-lib-include - -gbdk-libc-copy: - make -C gbdk-lib clean - (cd gbdk-lib; tar cf - libc) | (cd $(BUILD); tar xf -) - -gbdk-lib-gbz80: gbdk-lib-gbz80-rgbds gbdk-lib-gbz80-asxxxx - -gbdk-lib-examples: - make -C gbdk-lib/examples/gb make.bat - (cd gbdk-lib; tar cf - examples) | (cd $(BUILD); tar xf -) - -gbdk-lib-tools: - (cd gbdk-lib; tar cf - tools) | (cd $(BUILD); tar xf -) - -gbdk-lib-doc: - mkdir -p $(BUILD)/doc/sdcc - (cd sdcc/doc; tar cf - .) | (cd $(BUILD)/doc/sdcc; tar xf - ) - mkdir -p $(BUILD)/doc/asxxxx - (cd sdcc/as/doc; tar cf - .) | (cd $(BUILD)/doc/asxxxx; tar xf - ) - for i in $(DOC_MISC); do \ - cp $(DOC_MISC) $(BUILD); done - mkdir -p gbdk-lib/doc/libc - cd gbdk-lib/include; doxygen libc.dox - (cd gbdk-lib/doc; tar cf - libc) | (cd $(BUILD)/doc; tar xf -) - -gbdk-lib-include: - (cd gbdk-lib; tar cf - include) | (cd $(BUILD); tar xf -) - -gbdk-lib-gbz80-asxxxx: - mkdir -p $(BUILD)/lib - for i in $(MODELS); do \ - make -C gbdk-lib/libc clean; \ - make -C gbdk-lib/libc SDCCLIB=$(BUILD) PORTS=gbz80 PLATFORMS=gb ASM=asxxxx MODEL=$$i; \ - (cd gbdk-lib/build; tar cf - $$i/asxxxx/gb $$i/asxxxx/gbz80) | (cd $(BUILD)/lib; tar xf -); \ - done - -gbdk-lib-gbz80-rgbds: - mkdir -p $(BUILD)/lib - for i in $(MODELS); do \ - make -C gbdk-lib/libc clean; \ - make -C gbdk-lib/libc SDCCLIB=$(BUILD) PORTS=gbz80 PLATFORMS=gb ASM=rgbds MODEL=$$i; \ - (cd gbdk-lib/build; tar cf - $$i/rgbds/gb $$i/rgbds/gbz80) | (cd $(BUILD)/lib; tar xf -); \ - done - -sdcc-lib-gen: - make -C sdcc sdcc-device - -lcc: - make -C gbdk-support/lcc SDCCLIB=$(SDCC_ROOT)/ TNP=$(TNP) - cp gbdk-support/lcc/lcc$(SE) $(BUILD)/bin/lcc$(E) - -sdcc/sdccconf.h: sdcc/configure -ifdef TNP - cd sdcc; \ - export CCC=$(TNP)c++; \ - export RANLIB=$(TNP)ranlib; \ - export CC=$(TNP)gcc; \ - ./configure --datadir=$(SDCC_ROOT) $(CONFIGURE_FLAGS) -else - cd sdcc; ./configure --datadir=$(SDCC_ROOT) $(CONFIGURE_FLAGS) -endif - -dist: _sdcc lcc tidy - -zdist: dist - cd build; tar czf ../gbdk-$(VER).tar.gz $(SDCC_OR_GBDK) - -logged_in: - cvs -d$(ROOT_GBDK) login - cvs -d$(ROOT_SDCC) login - touch logged_in - make -f build.mak update diff --git a/gbdk-support/mega.mak b/gbdk-support/mega.mak @@ -1,93 +0,0 @@ -# A simple Makefile that attempts to weave everything together -# for a build. Basically: -# * Makes a temporary build directory -# * Copies itself and build.mak off, hands over to the new Makefile -# * Downloads the source -# * Compiles the native, then win32 versions -# * Takes the libs from native and hooks them into win32 -# * tars it all up and calls it done - -DIST = gbdk - -BUILD_DIR = /home/michaelh/tmp/$(DIST)-build -NATIVE = linux-linux -CROSS = linux-mingw32 -NATIVE_DIST = linux-glibc2 -CROSS_DIST = win32 - -# Files that need CR/LF converted -FIX_DIRS = doc include libc -FIX_SPECIAL = ChangeLog README build.mak mega.mak -FIX_PAT = *.c *.h Makefile* *.s *.bat - -VER = 2.95-3 - -all: spawn - -spawn: - mkdir -p $(BUILD_DIR) - cp build.mak mega.mak $(BUILD_DIR) - make -C $(BUILD_DIR) -f mega.mak build - -build: orig native cross dist - -dist: - cd $(NATIVE)/build; tar czf ../../$(DIST)-$(VER)-$(NATIVE_DIST).tar.gz $(DIST) -ifeq ($(CROSS_DIST), win32) - rm -f $(DIST)-$(VER)-$(CROSS_DIST).zip - cd $(CROSS)/build; zip -rq9 ../../$(DIST)-$(VER)-$(CROSS_DIST).zip $(DIST) -else - cd $(CROSS)/build; tar czf ../../$(DIST)-$(VER)-$(CROSS_DIST).tar.gz $(DIST) -endif - -clean: - rm -rf $(BUILD_DIR) - -orig: - mkdir -p orig - cp build.mak orig - touch orig/logged_in # Assume already logged in - make -C orig -f build.mak update - -linux-linux: orig - mkdir -p linux-linux - (cd orig; tar cf - .) | (cd linux-linux; tar xf -) - -linux-mingw32: orig - mkdir -p linux-mingw32 - (cd orig; tar cf - .) | (cd linux-mingw32; tar xf -) - -native: $(NATIVE) dummy - cp build.mak $(NATIVE) - make -C $(NATIVE) -f build.mak COMPILE_MODE=$(NATIVE) - -dummy: - -# We do a first pass, ignored build on sdccconf.h as at the moment -# it fails while configuring the sim. -cross-bin: $(CROSS) dummy - cp build.mak $(CROSS) - -make -C $(CROSS) -f build.mak COMPILE_MODE=$(CROSS) sdcc/sdccconf.h - make -C $(CROSS) -f build.mak COMPILE_MODE=$(CROSS) sdcc-bin lcc tidy - -# Binary files are compiled; now copy the built libs from the native -# version across -cross-mix: - mv $(CROSS)/build/$(DIST)/bin $(CROSS)/build/$(DIST)/bin.1 - (cd $(NATIVE); tar cf - build/$(DIST)) | (cd $(CROSS); tar xf - ) - rm -rf $(CROSS)/build/$(DIST)/bin - mv $(CROSS)/build/$(DIST)/bin.1 $(CROSS)/build/$(DIST)/bin - -# Fix up CR/LF on all interesting files -cross-fix: - for i in $(FIX_DIRS); do \ - for j in `find $(CROSS)/build/$(DIST)/$$i -type f -name "*"`; do \ - unix2dos $$j; done; done - for i in $(FIX_SPECIAL); do \ - unix2dos $(CROSS)/build/$(DIST)/$$i; done - for i in $(FIX_PAT); do \ - for j in `find $(CROSS)/build/$(DIST) -type f -name "$$i"`; do \ - echo $$j; unix2dos $$j; done; done - -cross: cross-bin cross-mix cross-fix - diff --git a/gbdk-support/update.mak b/gbdk-support/update.mak @@ -1,98 +0,0 @@ -# Makefile to get and build all the parts of GBDK - -CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ - else if [ -x /bin/bash ]; then echo /bin/bash; \ - else echo sh; fi ; fi) - -TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) - -BUILD = $(TOPDIR)/gbdk -SDCCLIB = $(BUILD) -CVSFLAGS = -z5 -CVS = cvs -DIR = . -VER = 2.94 -# Used as a branch name. -SHORTVER = 294 - -ROOT_GBDK = :pserver:anonymous@cvs.gbdk.sourceforge.net:/cvsroot/gbdk -ROOT_SDCC = :pserver:anonymous@cvs.sdcc.sourceforge.net:/cvsroot/sdcc - -# For mingw32 hosted on Linux -# Source extension - what the gcc generated files have appended -SE = -# Dest extenstion - what extension we want them to have. -E = .exe -GBDK_ROOT = \\\\gbdk - -# For mingw32 on win32 -# Source extension - what the gcc generated files have appended -SE = .exe -# Dest extenstion - what extension we want them to have. -E = .exe -GBDK_ROOT = \\\\gbdk - -# For Linux -#SE = -#E = -#GBDK_ROOT = /usr/lib/gbdk - -all: logged_in dist - -clean: - for i in sdcc gbdk-lib gbdk-support/lcc; do make -C $$i clean; done - rm -f *~ - rm -rf $(BUILD) gbdk-lib gbdk-support sdcc logged_in - -update: logged_in - cd $(DIR); cvs $(CVSFLAGS) -d$(ROOT_SDCC) co -r gbdk-$(SHORTVER) sdcc - cd $(DIR); cvs $(CVSFLAGS) -d$(ROOT_GBDK) co -r gbdk-$(SHORTVER) gbdk-lib - cd $(DIR); cvs $(CVSFLAGS) -d$(ROOT_GBDK) co -r gbdk-$(SHORTVER) gbdk-support - -_sdcc: sdcc/sdccconf.h - cd sdcc; \ - for i in support/gc support/cpp src as link; \ - do make -C $$i; done - mkdir -p $(BUILD)/bin - for i in sdcc sdcpp link-gbz80 as-gbz80; \ - do cp sdcc/bin/$$i$(SE) $(BUILD)/bin/$$i$(E); done - -sdcc/sdccconf.h: sdcc/configure - cd sdcc; \ - ./configure --datadir=$(GBDK_ROOT) \ - --disable-mcs51-port \ - --disable-avr-port \ - ; - -_gbdk-lib: _sdcc _gbdk-support - cp -r gbdk-lib/include $(BUILD) - make -C gbdk-lib SDCCLIB=$(SDCCLIB) PORTS=gbz80 PLATFORMS=gb - -_gbdk-support: - make -C gbdk-support/lcc clean - make -C gbdk-support/lcc SDCCLIB=$(GBDK_ROOT)/ - mkdir -p $(BUILD)/bin - cp gbdk-support/lcc/lcc$(SE) $(BUILD)/bin/lcc$(E) - -dist: _sdcc _gbdk-lib _gbdk-support - mkdir -p $(BUILD)/bin - mkdir -p $(BUILD)/lib - cp -r gbdk-lib/build/gbz80 $(BUILD)/lib - cp -r gbdk-lib/build/gb $(BUILD)/lib - make -C gbdk-lib/libc clean - make -C gbdk-lib/examples/gb make.bat - cp -r gbdk-lib/examples $(BUILD) - cp -r gbdk-lib/libc $(BUILD) - cp -r sdcc/doc $(BUILD) - cp gbdk-support/README $(BUILD) - strip $(BUILD)/bin/* - rm -rf `find gbdk -name "CVS"` - -zdist: dist - tar czf gbdk-$(VER).tar.gz gbdk - -logged_in: - cvs -d$(ROOT_GBDK) login - cvs -d$(ROOT_SDCC) login - touch logged_in - make -f update.mak update
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.