[BACK]Return to patch-Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / cbmbasic / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / cbmbasic / patches / patch-Makefile (download)

Revision 1.1, Mon Jul 8 06:46:22 2019 UTC (4 years, 9 months ago) by sjmulder
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, HEAD

Add lang/cbmbasic, a Commodore BASIC interpreter

Imported from wip.

"Commodore BASIC" (cbmbasic) is a 100% compatible version of Commodore's
version of Microsoft BASIC 6502 as found on the Commodore 64. You can use it
in interactive mode or pass a BASIC file as a command line parameter.

cbmbasic does not emulate 6502 code; all code is completely native. On a
1 GHz CPU you get about 1000x speed compared to a 1 MHz 6502.

$NetBSD: patch-Makefile,v 1.1 2019/07/08 06:46:22 sjmulder Exp $

 - Respect existing CFLAGS by appending, rather than replacing.
 - Respect LDFLAGS
 - Remove -O3 default.

https://github.com/mist64/cbmbasic/pull/5

--- Makefile
+++ Makefile
@@ -1,10 +1,10 @@
 OBJS=cbmbasic.o runtime.o plugin.o console.o
-CFLAGS=-Wall -O3
+CFLAGS+=-Wall
 
 all: cbmbasic
 
 cbmbasic: $(OBJS)
-	$(CC) -o cbmbasic $(OBJS)
+	$(CC) $(LDFLAGS) -o cbmbasic $(OBJS)
 
 clean:
 	rm -f $(OBJS) cbmbasic