|
|
|
@ -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:
|
|
|
|
|