Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
v420v committed Dec 4, 2023
1 parent 40d871a commit 59124d3
Show file tree
Hide file tree
Showing 5 changed files with 961 additions and 2,575 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ SHELL = /bin/bash

make:
as -o bootstrap/ibu-linux-x86_x64.o bootstrap/ibu-linux-x86_x64.s
ld -o ibuc bootstrap/ibu-linux-x86_x64.o
as -o lib/asm-lib.o lib/lib.s
ld -o ibuc bootstrap/ibu-linux-x86_x64.o lib/asm-lib.o

self:
./ibuc src/main.ibu | as - -o src/ibu.o
ld -o ibuc src/ibu.o
as -o lib/asm-lib.o lib/lib.s
ld -o ibuc src/ibu.o lib/asm-lib.o

update_bootstrap:
./ibuc src/main.ibu | as -
./ibuc src/main.ibu > bootstrap/ibu-linux-x86_x64.s

clean:
rm *.o *.out ibuc bootstrap/*.o src/*.o
rm *.o *.out ibuc bootstrap/*.o src/*.o lib/*.o

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ $ make self
## How to build, compile programs written in Ibu
```sh
$ ./ibuc <filename>.ibu | as - -o <filename>.o
$ ld -o <filename> <filename>.o
$ as -o lib/asm-lib.o lib/lib.s
$ ld -o <filename> <filename>.o lib/asm-lib.o
```

## Ibu Documentation
Expand Down
Loading

0 comments on commit 59124d3

Please sign in to comment.