summaryrefslogtreecommitdiffstats
path: root/makefile
blob: ee7a305023a4c6074485f09fd1934a769e5425d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: b32e
	# test b32e hello
	echo -n "hello" | ./b32e
	@printf '\n'
	echo -n "hello" | base32 -i

b32e: b32e.o
	ld -o $@ $<

b32e.o: b32e.asm
	nasm -f elf64 -O0 -w+all -o $@ $<

.PHONY: clean
clean:
	rm -f *.o b32e b32d