Skip to content

Commit a853720

Browse files
committed
Replace build.sh with a Makefile
1 parent fed028e commit a853720

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
all: out/cat out/fizzbuzz out/hello-world out/is-even
3+
4+
out/%.o: %.asm out
5+
yasm -f elf64 -o $@ -g dwarf2 $<
6+
7+
out/%: out/%.o
8+
ld -o $@ $<
9+
10+
out:
11+
mkdir -p out
12+
13+
clean:
14+
rm -rf ./out

build.sh

-10
This file was deleted.

hello_world.asm hello-world.asm

File renamed without changes.

is_even.asm is-even.asm

File renamed without changes.

0 commit comments

Comments
 (0)