From 400e277b0c111739ea4ed426328cbcc4472744df Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 11 Mar 2023 10:26:02 -0500 Subject: [PATCH] make forth and msp430 folders --- Makefile | 14 +++++++------- core-ext.fth => forth/core-ext.fth | 0 core.fth => forth/core.fth | 0 {test => forth/test}/core.fr | 0 {test => forth/test}/tester.fr | 0 alee-msp430.cpp => msp430/alee-msp430.cpp | 0 msp430g2553.ld => msp430/msp430g2553.ld | 0 7 files changed, 7 insertions(+), 7 deletions(-) rename core-ext.fth => forth/core-ext.fth (100%) rename core.fth => forth/core.fth (100%) rename {test => forth/test}/core.fr (100%) rename {test => forth/test}/tester.fr (100%) rename alee-msp430.cpp => msp430/alee-msp430.cpp (100%) rename msp430g2553.ld => msp430/msp430g2553.ld (100%) diff --git a/Makefile b/Makefile index 04dbefd..d8c11ba 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,8 @@ msp430: CXX := msp430-elf32-g++ msp430: AR := msp430-elf32-gcc-ar msp430: CXXFLAGS += -Os -mmcu=msp430g2553 -ffunction-sections -fdata-sections msp430: CXXFLAGS += -DMEMDICTSIZE=200 -flto -msp430: LDFLAGS += -L/opt/msp430-elf32/include -Tmsp430g2553.ld -Wl,-gc-sections -msp430: clean-lib alee-msp430 +msp430: LDFLAGS += -L/opt/msp430-elf32/include -Tmsp430/msp430g2553.ld -Wl,-gc-sections +msp430: clean-lib msp430/alee-msp430 small: CXXFLAGS += -Os small: alee @@ -24,7 +24,7 @@ fast: alee standalone: core.fth.h alee-standalone alee: $(LIBFILE) -alee-msp430: $(LIBFILE) +msp430/alee-msp430: $(LIBFILE) alee-standalone: $(LIBFILE) cppcheck: @@ -32,7 +32,7 @@ cppcheck: libalee alee*.cpp *dict.hpp test: standalone - echo "\nbye\n" | ./alee-standalone core-ext.fth test/tester.fr test/core.fr + echo "\nbye\n" | ./alee-standalone forth/core-ext.fth forth/test/tester.fr forth/test/core.fr $(LIBFILE): $(OBJFILES) $(AR) crs $@ $(OBJFILES) @@ -41,11 +41,11 @@ core.fth.h: alee.dat xxd -i $< > $@ sed -i "s/unsigned /static const &/" $@ -alee.dat: alee core.fth - echo "2 sys" | ./alee core.fth +alee.dat: alee forth/core.fth + echo "2 sys" | ./alee forth/core.fth clean: clean-lib - rm -f alee alee-msp430 alee-standalone + rm -f alee alee-standalone msp430/alee-msp430 rm -f alee.dat core.fth.h clean-lib: diff --git a/core-ext.fth b/forth/core-ext.fth similarity index 100% rename from core-ext.fth rename to forth/core-ext.fth diff --git a/core.fth b/forth/core.fth similarity index 100% rename from core.fth rename to forth/core.fth diff --git a/test/core.fr b/forth/test/core.fr similarity index 100% rename from test/core.fr rename to forth/test/core.fr diff --git a/test/tester.fr b/forth/test/tester.fr similarity index 100% rename from test/tester.fr rename to forth/test/tester.fr diff --git a/alee-msp430.cpp b/msp430/alee-msp430.cpp similarity index 100% rename from alee-msp430.cpp rename to msp430/alee-msp430.cpp diff --git a/msp430g2553.ld b/msp430/msp430g2553.ld similarity index 100% rename from msp430g2553.ld rename to msp430/msp430g2553.ld