make forth and msp430 folders

llvm
Clyne 2 years ago
parent e41b124320
commit 400e277b0c
Signed by: clyne
GPG Key ID: 3267C8EBF3F9AFC7

@ -12,8 +12,8 @@ msp430: CXX := msp430-elf32-g++
msp430: AR := msp430-elf32-gcc-ar msp430: AR := msp430-elf32-gcc-ar
msp430: CXXFLAGS += -Os -mmcu=msp430g2553 -ffunction-sections -fdata-sections msp430: CXXFLAGS += -Os -mmcu=msp430g2553 -ffunction-sections -fdata-sections
msp430: CXXFLAGS += -DMEMDICTSIZE=200 -flto msp430: CXXFLAGS += -DMEMDICTSIZE=200 -flto
msp430: LDFLAGS += -L/opt/msp430-elf32/include -Tmsp430g2553.ld -Wl,-gc-sections msp430: LDFLAGS += -L/opt/msp430-elf32/include -Tmsp430/msp430g2553.ld -Wl,-gc-sections
msp430: clean-lib alee-msp430 msp430: clean-lib msp430/alee-msp430
small: CXXFLAGS += -Os small: CXXFLAGS += -Os
small: alee small: alee
@ -24,7 +24,7 @@ fast: alee
standalone: core.fth.h alee-standalone standalone: core.fth.h alee-standalone
alee: $(LIBFILE) alee: $(LIBFILE)
alee-msp430: $(LIBFILE) msp430/alee-msp430: $(LIBFILE)
alee-standalone: $(LIBFILE) alee-standalone: $(LIBFILE)
cppcheck: cppcheck:
@ -32,7 +32,7 @@ cppcheck:
libalee alee*.cpp *dict.hpp libalee alee*.cpp *dict.hpp
test: standalone 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) $(LIBFILE): $(OBJFILES)
$(AR) crs $@ $(OBJFILES) $(AR) crs $@ $(OBJFILES)
@ -41,11 +41,11 @@ core.fth.h: alee.dat
xxd -i $< > $@ xxd -i $< > $@
sed -i "s/unsigned /static const &/" $@ sed -i "s/unsigned /static const &/" $@
alee.dat: alee core.fth alee.dat: alee forth/core.fth
echo "2 sys" | ./alee core.fth echo "2 sys" | ./alee forth/core.fth
clean: clean-lib 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 rm -f alee.dat core.fth.h
clean-lib: clean-lib:

Loading…
Cancel
Save