gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 742ba6ddcfc2831c240fbb424f70ff205d76cd25 parent ea63fae0c98585312e3799688ea574de3c33627d Author: Toxa <56631470+untoxa@users.noreply.github.com> Date: Sun, 20 Dec 2020 17:15:19 +0300 Merge pull request #110 from bbbbbr/develop_lcc_version_string LCC: Update version reported to 2.0 and use actual build date Diffstat:
| M | gbdk-support/lcc/Makefile | 4 | ++++ |
| M | gbdk-support/lcc/lcc.c | 4 | ++-- |
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gbdk-support/lcc/Makefile b/gbdk-support/lcc/Makefile @@ -4,8 +4,12 @@ ifndef TARGETDIR TARGETDIR = /opt/gbdk endif +BUILDDATE=$(shell date --utc +%Y/%m/%d) +BUILDTIME=$(shell date --utc +%H:%M:%S) + CC = $(TOOLSPREFIX)gcc CFLAGS = -ggdb -O -Wno-incompatible-pointer-types -DGBDKLIBDIR=\"$(TARGETDIR)\" +CFLAGS += -DBUILDDATE=\"$(BUILDDATE)\" -DBUILDTIME=\"$(BUILDTIME)\" OBJ = lcc.o gb.o BIN = lcc diff --git a/gbdk-support/lcc/lcc.c b/gbdk-support/lcc/lcc.c @@ -2,7 +2,7 @@ * lcc [ option ]... [ file | -llib ]... * front end for the ANSI C compiler */ -static char rcsid[] = "$Id: lcc.c,v 1.6 2001/10/28 18:38:13 michaelh Exp $"; +static char rcsid[] = "$Id: lcc.c,v 2.0 " BUILDDATE " " BUILDTIME " gbdk-2020 Exp $"; #include <stdio.h> #include <stdarg.h> @@ -676,7 +676,7 @@ static void help(void) { "-P print ANSI-style declarations for globals\n", "-p -pg emit profiling code; see prof(1) and gprof(1)\n", "-S compile to assembly language\n", -"-autobank auto-assign banks set to 255 (bankpack)" +"-autobank auto-assign banks set to 255 (bankpack)\n" #ifdef linux "-static specify static libraries (default is dynamic)\n", #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.