summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f57703fe232caf1cce0c4b87458dd9c72695e89d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fizzbuzz: fizzbuzz.o
	ld -m elf_x86_64 -o fizzbuzz fizzbuzz.o
fizzbuzz.o: fizzbuzz.asm
	nasm -f elf64 fizzbuzz.asm
strip: strip.o
	ld -m elf_x86_64 -o strip strip.o
strip.o: fizzbuzz.asm
	nasm -f elf64 fizzbuzz.asm -o strip.o
clean:
	rm *.o
	rm fizzbuzz
	rm strip
run: fizzbuzz
	./fizzbuzz