File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 2
2
SHELL = /bin/bash
3
3
.SHELLFLAGS = -o pipefail -c
4
4
5
- make :
5
+ .DEFAULT_GOAL := help
6
+
7
+ .PHONY : help
8
+ help :
9
+
10
+ .PHONY : up
11
+ up :
12
+ docker compose up -d
13
+
14
+ .PHONY : down
15
+ down :
16
+ docker compose down
17
+
18
+ .PHONY : ibulang
19
+ ibulang :
20
+ docker compose exec ibulang bash
21
+
22
+ .PHONY : bootstrap
23
+ bootstrap :
6
24
as -o bootstrap/ibu.o bootstrap/ibu.s
7
25
as -o bootstrap/tokenizer.o bootstrap/tokenizer.s
8
26
as -o bootstrap/parser.o bootstrap/parser.s
13
31
as -o lib/runtime.o lib/runtime.s
14
32
ld -o ibuc bootstrap/ibu.o bootstrap/tokenizer.o bootstrap/parser.o bootstrap/codegen.o bootstrap/preprocessor.o bootstrap/linux-syscall.o bootstrap/std.o lib/runtime.o
15
33
34
+ .PHONY : self
16
35
self :
17
36
./ibuc src/ibu.ibu | as - -o src/ibu.o
18
37
./ibuc src/tokenizer/tokenizer.ibu | as - -o src/tokenizer.o
24
43
as -o lib/runtime.o lib/runtime.s
25
44
ld -o ibuc src/tokenizer.o src/parser.o src/codegen.o src/preprocessor.o src/ibu.o lib/std.o lib/runtime.o lib/linux-syscall.o
26
45
46
+ .PHONY : update_bootstrap
27
47
update_bootstrap :
28
48
./ibuc src/ibu.ibu > bootstrap/ibu.s
29
49
./ibuc src/tokenizer/tokenizer.ibu > bootstrap/tokenizer.s
@@ -33,6 +53,7 @@ update_bootstrap:
33
53
./ibuc lib/linux-syscall/linux-syscall.ibu > bootstrap/linux-syscall.s
34
54
./ibuc lib/std/std.ibu > bootstrap/std.s
35
55
56
+ .PHONY : clean
36
57
clean :
37
58
rm * .o * .out ibuc bootstrap/* .o src/* .o lib/* .o
38
59
Original file line number Diff line number Diff line change
1
+ services :
2
+ ibulang :
3
+ build :
4
+ context : .
5
+ dockerfile : Dockerfile
6
+ volumes :
7
+ - .:/root/env
8
+ working_dir : /root/env
9
+ stdin_open : true # docker run -i
10
+ tty : true # docker run -t
You can’t perform that action at this time.
0 commit comments