all: sigproc sigwait sigrace timeout

sigwait: sigwait.o err.o
	cc -Wall -o sigwait sigwait.o err.o

sigproc: sigproc.o err.o
	cc -Wall -o sigproc sigproc.o err.o

sigrace: sigrace.o err.o
	cc -Wall -o sigrace sigrace.o err.o

timeout: timeout.o err.o
	cc -Wall -o timeout timeout.o err.o

sigproc.o: sigproc.c err.h
	cc -Wall -c sigproc.c

sigwait.o: sigwait.c err.h
	cc -Wall -c sigwait.c

sigrace.o: sigrace.c err.h
	cc -Wall -c sigrace.c

timeout.o: timeout.c err.h
	cc -Wall -c timeout.c

err.o: err.c err.h
	cc -Wall -c err.c

clean:
	rm -f *.o sigproc sigwait sigrace timeout
