Skip to content

Commit 22aa2e1

Browse files
author
oco
committed
Modify file structure
1 parent 1b5ba9c commit 22aa2e1

12 files changed

Lines changed: 13 additions & 13 deletions

File tree

examples/led/makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
compiler = ../../spf4
2+
compiler = ../../spf4 src/options.spf
33
# project name
44
project = led
55
# device used
@@ -10,7 +10,7 @@ st_path = ~/src/stlink
1010
.PHONY: proteus
1111
# make project
1212
$(project).spf.elf: *.spf
13-
$(compiler) options.spf -h -i -O -D S\" $(device)\" S\" $(project).spf\" m3forth.spf
13+
$(compiler) -h -i -O -D S\" $(device)\" S\" $(project).spf\" m3forth.spf
1414
arm-none-eabi-objdump -S -w $(project).spf.elf > $(project).spf.lst
1515
readelf -Ww $(project).spf.elf > $(project).spf.debug
1616
readelf -aW $(project).spf.elf > $(project).spf.info
@@ -24,7 +24,7 @@ debug: $(project).spf.elf
2424

2525
# make for proteus
2626
proteus: *.spf
27-
$(compiler) options.spf -b -h -i -O -D S\" devices/proteus_device.spf\" S\" $(project).spf\" m3forth.spf
27+
$(compiler) -b -h -i -O -D S\" devices/proteus_device.spf\" S\" $(project).spf\" m3forth.spf
2828
arm-none-eabi-objdump -S -w $(project).spf.elf > $(project).spf.lst
2929
# readelf -Ww $(project).spf.elf > $(project).spf.debug
3030
# readelf -aW $(project).spf.elf > $(project).spf.info

examples/tester/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
compiler = ../../spf4
2+
compiler = ../../spf4 src/options.spf
33
# project name
44
project = tester
55
# device used
@@ -9,7 +9,7 @@ st_path = ~/src/stlink
99

1010
# make project
1111
$(project).spf.elf: *.spf
12-
$(compiler) options.spf -H -I -O -d -M S\" $(device)\" S\" $(project).spf\" m3forth.spf
12+
$(compiler) -H -I -O -d -M S\" $(device)\" S\" $(project).spf\" m3forth.spf
1313
arm-none-eabi-objdump -S -w $(project).spf.elf > $(project).spf.lst
1414
readelf -Ww $(project).spf.elf > $(project).spf.debug
1515
readelf -aW $(project).spf.elf > $(project).spf.info

m3forth.spf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ FNAME 2!
1212
2VARIABLE FDEVICE \ device file name
1313
FDEVICE 2!
1414

15-
S" cross.spf" INCLUDED
15+
S" src/cross.spf" INCLUDED
1616
S" lib/include/place.f" INCLUDED
17-
S" hex.spf" INCLUDED
17+
S" src/hex.spf" INCLUDED
1818
CREATE FILENAME 255 ALLOT \ temp buffer
1919

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

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

3737
O_INTERPRETER [IF]
3838
\ execute and build words on target
39-
S" interpreter.spf" INCLUDED
39+
S" src/interpreter.spf" INCLUDED
4040

4141
[THEN]
4242

cross.spf renamed to src/cross.spf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ INTERPRETER
555555
HOST
556556
VECT LITERAL,
557557

558-
S" macros.spf" INCLUDED
559-
S" optimizer.spf" INCLUDED
558+
S" src/macros.spf" INCLUDED
559+
S" src/optimizer.spf" INCLUDED
560560

561561
\ basic subroutine threaded code
562562
HOST HEX
File renamed without changes.
File renamed without changes.

kernel.spf renamed to src/kernel.spf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ COMPILER
343343
[END-ASM]
344344
;
345345

346-
S" opt_rules.spf" INCLUDED
346+
S" src/opt_rules.spf" INCLUDED
347347

348348
COMPILER
349349

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)