summaryrefslogtreecommitdiffstats
path: root/makefile
blob: bc75f79f483f9485d8dfd6ed107ca5c17fdec8f3 (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 -g -F dwarf -O0 -w+all -o $@ $<

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