syscall_helloworld.o: syscall_helloworld.s
	as -g -o syscall_helloworld.o syscall_helloworld.s

syscall_helloworld: syscall_helloworld.o
	gcc -o syscall_helloworld syscall_helloworld.o
	rm -f syscall_helloworld.o

echo_helloworld.o: echo_helloworld.s
	as -g -o echo_helloworld.o echo_helloworld.s

echo_helloworld: echo_helloworld.o
	gcc -o echo_helloworld echo_helloworld.o
	rm -f echo_helloworld.o

_helloworld.o: _helloworld.s
	as -g -o _helloworld.o _helloworld.s

_helloworld: _helloworld.o
	gcc -o _helloworld _helloworld.o
	rm -f _helloworld.o

all: syscall_helloworld syscall_helloworld.o echo_helloworld echo_helloworld.o _helloworld _helloworld.o

clean:
	rm -f syscall_helloworld
	rm -f syscall_helloworld.o
	rm -f echo_helloworld
	rm -f echo_helloworld.o
	rm -f _helloworld
	rm -f _helloworld.o

