Skip to content

Commit

Permalink
Modify file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
oco committed May 31, 2018
1 parent 1b5ba9c commit 22aa2e1
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions examples/led/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

compiler = ../../spf4
compiler = ../../spf4 src/options.spf
# project name
project = led
# device used
Expand All @@ -10,7 +10,7 @@ st_path = ~/src/stlink
.PHONY: proteus
# make project
$(project).spf.elf: *.spf
$(compiler) options.spf -h -i -O -D S\" $(device)\" S\" $(project).spf\" m3forth.spf
$(compiler) -h -i -O -D S\" $(device)\" S\" $(project).spf\" m3forth.spf
arm-none-eabi-objdump -S -w $(project).spf.elf > $(project).spf.lst
readelf -Ww $(project).spf.elf > $(project).spf.debug
readelf -aW $(project).spf.elf > $(project).spf.info
Expand All @@ -24,7 +24,7 @@ debug: $(project).spf.elf

# make for proteus
proteus: *.spf
$(compiler) options.spf -b -h -i -O -D S\" devices/proteus_device.spf\" S\" $(project).spf\" m3forth.spf
$(compiler) -b -h -i -O -D S\" devices/proteus_device.spf\" S\" $(project).spf\" m3forth.spf
arm-none-eabi-objdump -S -w $(project).spf.elf > $(project).spf.lst
# readelf -Ww $(project).spf.elf > $(project).spf.debug
# readelf -aW $(project).spf.elf > $(project).spf.info
Expand Down
4 changes: 2 additions & 2 deletions examples/tester/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

compiler = ../../spf4
compiler = ../../spf4 src/options.spf
# project name
project = tester
# device used
Expand All @@ -9,7 +9,7 @@ st_path = ~/src/stlink

# make project
$(project).spf.elf: *.spf
$(compiler) options.spf -H -I -O -d -M S\" $(device)\" S\" $(project).spf\" m3forth.spf
$(compiler) -H -I -O -d -M S\" $(device)\" S\" $(project).spf\" m3forth.spf
arm-none-eabi-objdump -S -w $(project).spf.elf > $(project).spf.lst
readelf -Ww $(project).spf.elf > $(project).spf.debug
readelf -aW $(project).spf.elf > $(project).spf.info
Expand Down
10 changes: 5 additions & 5 deletions m3forth.spf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ FNAME 2!
2VARIABLE FDEVICE \ device file name
FDEVICE 2!

S" cross.spf" INCLUDED
S" src/cross.spf" INCLUDED
S" lib/include/place.f" INCLUDED
S" hex.spf" INCLUDED
S" src/hex.spf" INCLUDED
CREATE FILENAME 255 ALLOT \ temp buffer

\ ================= контроллер
Expand All @@ -30,13 +30,13 @@ FDEVICE 2@ INCLUDED \ include device file, start generating debug info
HOST 'RAMBASE INTERPRETER EQU 'RAMBASE HOST

\ compile asm primitives into cdata space
S" prims.spf" INCLUDED
S" src/prims.spf" INCLUDED
\ now compile the higher-level code written as forth definitions
S" kernel.spf" INCLUDED
S" src/kernel.spf" INCLUDED

O_INTERPRETER [IF]
\ execute and build words on target
S" interpreter.spf" INCLUDED
S" src/interpreter.spf" INCLUDED

[THEN]

Expand Down
4 changes: 2 additions & 2 deletions cross.spf → src/cross.spf
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ INTERPRETER
HOST
VECT LITERAL,

S" macros.spf" INCLUDED
S" optimizer.spf" INCLUDED
S" src/macros.spf" INCLUDED
S" src/optimizer.spf" INCLUDED

\ basic subroutine threaded code
HOST HEX
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion kernel.spf → src/kernel.spf
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ COMPILER
[END-ASM]
;

S" opt_rules.spf" INCLUDED
S" src/opt_rules.spf" INCLUDED

COMPILER

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 22aa2e1

Please sign in to comment.