-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·55 lines (37 loc) · 779 Bytes
/
makefile
File metadata and controls
executable file
·55 lines (37 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
all: forth
forth: forth.o
ld -o forth forth.o
forth.o: forth.asm
nasm -f elf64 -g -F dwarf forth.asm -o forth.o
clean:
rm -f forth *.o
# debugging: gdb forth -f .gdbinit
rebuild: clean forth
debug: forth
gdb forth -f .gdbinit
run: forth
./forth
test1: clean forth
./forth <tests/test01.frt
test2: clean forth
./forth <tests/test02.frt
test3: clean forth
./forth <tests/test03.frt
test4: clean forth
./forth <tests/test04.frt
test5: clean forth
./forth <tests/test05.frt
test6: clean forth
./forth <tests/test06.frt
test7: clean forth
./forth <tests/test07.frt
test8: clean forth
./forth <tests/test08.frt
stdlib: clean forth
./forth <libs/stdlib.frt
mp: clean forth
./forth <mp.frt
# build and debug
bd: clean debug
# build and run
br: clean run