default:
	make term_test

all:
	make bool

term_test:
	rm -f term term.o term.asm
	../bin/cc term.c term.asm
	nasm -f elf term.asm
	cc term.o -o term

test0:
	nasm -f elf -o t.o t.asm
	ld t.o -o t
	../bin/cc hello.c -o hello
	nasm -f elf test2.asm
	cc test2.o -o test2
	nasm -f elf test3.asm
	cc test3.o -o test3

hello:
	rm -f hello_world.asm hello_world.o hello_world
	../bin/cc ./hello_world.c ./hello_world.asm
	nasm -f elf ./hello_world.asm 
	./link.sh 
	#ld hello_world.o -o ./hello_world -lc

eq_test:
	../bin/cc ./eq.c ./eq.asm
	nasm -f elf ./eq.asm
	cc ./eq.o -o ./eq

test:
	../bin/cc test2.c test2.asm
	nasm -f elf test2.asm
	cc test2.o -o test2

bool:
	../bin/cc ./boolean.c ./boolean.asm
	nasm -f elf ./boolean.asm
	cc ./boolean.o -o ./boolean
