all: hello hello.out hello.error

hello: hello.cpp
	g++ -g -Wall -o hello hello.cpp

hello.error: hello.cpp
	g++ -g -Wall -o hello hello.cpp >hello.error 2>&1

hello.out: hello
	hello >hello.out 2>&1

clean:
	rm core hello.o hello hello.error hello.out

