Skip to content

Commit 2d1ee10

Browse files
committed
Allows alternate syntax for the cross-compiler.
Use the "EXTENDED" define to include extra syntax into the cross-compiler.
1 parent 133cf97 commit 2d1ee10

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ OPTFLAGS=-O2
2525
CXXFLAGS=-Wall -DVERSION=\"$(VERSION)\" $(OPTFLAGS)
2626
CFLAGS=-Wall $(OPTFLAGS)
2727
CFLAGS_CC65=-Icc65/common -DBUILD_ID="fastbasic-$(VERSION)"
28-
SYNTFLAGS=
28+
SYNTFLAGS_CPP=-DEXTENDED
29+
SYNTFLAGS_ASM=
2930
SYNTFP=-DFASTBASIC_FP
3031
ASMFLAGS=-I cc65/asminc
3132
FPASM=-D FASTBASIC_FP -I build/gen/fp $(ASMFLAGS)
@@ -628,19 +629,19 @@ endif
628629

629630
# Generator for syntax file - 6502 version - FLOAT
630631
build/gen/fp/%.asm: src/%.syn $(ASYNT) | build/gen/fp
631-
$(ASYNT) $(SYNTFLAGS) $(SYNTFP) $< -o $@
632+
$(ASYNT) $(SYNTFLAGS_ASM) $(SYNTFP) $< -o $@
632633

633634
# Generator for syntax file - 6502 version - INTEGER
634635
build/gen/int/%.asm: src/%.syn $(ASYNT) | build/gen/int
635-
$(ASYNT) $(SYNTFLAGS) $< -o $@
636+
$(ASYNT) $(SYNTFLAGS_ASM) $< -o $@
636637

637638
# Generator for syntax file - C++ version - FLOAT
638639
build/gen/fp/%.cc build/gen/fp/%.h: src/%.syn $(CSYNT) | build/gen/fp
639-
$(CSYNT) $(SYNTFLAGS) $(SYNTFP) $< -o build/gen/fp/$*.cc
640+
$(CSYNT) $(SYNTFLAGS_CPP) $(SYNTFP) $< -o build/gen/fp/$*.cc
640641

641642
# Generator for syntax file - C++ version - INTEGER
642643
build/gen/int/%.cc build/gen/int/%.h: src/%.syn $(CSYNT) | build/gen/int
643-
$(CSYNT) $(SYNTFLAGS) $< -o build/gen/int/$*.cc
644+
$(CSYNT) $(SYNTFLAGS_CPP) $< -o build/gen/int/$*.cc
644645

645646
# Sets the version inside command line compiler source
646647
build/gen/cmdline-vers.bas: src/cmdline.bas version.mk

0 commit comments

Comments
 (0)