all: hello_world _hello_world hello_world-intel

hello_world: hello_world.c
	cc -o hello_world hello_world.c

_hello_world: _hello_world.c
	cc -o _hello_world _hello_world.c

hello_world-intel: hello_world-intel.s
	as -o hello_world-intel.o hello_world-intel.s
	ld -o hello_world-intel hello_world-intel.o

traces: hello_world hello_world.py
	strace ./hello_world 2> C-hw.log
	strace python3 hello_world.py 2> Py-hw.log 

C-hw.log: hello_world
	strace ./hello_world 2> C-hw.log

Py-hw.log: hello_world.py
	strace python3 hello_world.py 2> Py-hw.log

cmp-traces: C-hw.log Py-hw.log	
	diff -y C-hw.log Py-hw.log



