From 957cf676ff1dbf5973b7ad04d843400a647fab14 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 11 Nov 2023 09:21:21 -0500 Subject: msp430: more dict space; prepare for hal impl --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 442b73c..b1237b6 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,11 @@ msp430: AR := msp430-elf-gcc-ar msp430: CXXFLAGS += -I. -I/usr/msp430-elf/usr/include msp430: CXXFLAGS += -Os -mmcu=msp430fr2476 -ffunction-sections -fdata-sections msp430: CXXFLAGS += -flto -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-stack-protector -msp430: LDFLAGS += -L msp430 -T msp430fr2476.ld -Wl,-gc-sections +msp430: LDFLAGS += -L msp430 -T msp430fr2476.ld -Wl,-gc-sections -Wl,--no-warn-rwx-segments msp430: msp430/alee-msp430 +msp430-prep: CXXFLAGS += -DALEE_MSP430 -Imsp430 +msp430-prep: msp430/msp430fr2476_all.h msp430-prep: STANDALONE += forth/core-ext.fth forth/tools.fth forth/msp430.fth msp430-prep: core.fth.h msp430-prep: clean-lib @@ -28,11 +30,12 @@ small: alee fast: CXXFLAGS += -O3 -march=native -mtune=native -flto fast: alee +standalone: core.fth.h standalone: alee-standalone alee: $(LIBFILE) msp430/alee-msp430: $(LIBFILE) -alee-standalone: core.fth.h $(LIBFILE) +alee-standalone: $(LIBFILE) cppcheck: cppcheck --enable=warning,style,information --disable=missingInclude \ @@ -46,11 +49,14 @@ $(LIBFILE): $(OBJFILES) core.fth.h: alee.dat xxd -i $< > $@ - sed -i "s/unsigned /static &/" $@ + sed -i "s/\[\]/\[ALEE_RODICTSIZE\]/" $@ alee.dat: alee $(STANDALONE) echo "3 sys" | ./alee $(STANDALONE) +msp430/msp430fr2476_all.h: + $(MAKE) -C msp430 + clean: clean-lib rm -f alee alee-standalone msp430/alee-msp430 rm -f alee.dat core.fth.h -- cgit v1.2.3