CC=gcc
CFLAGS=-g -Wall

executables = io std-io open-then-fork fork-then-open
objects = io.o std-io.o open-then-fork.o fork-then-open.o

.PHONY: default
default: $(executables)
	dd bs=1024 count=10 if=/dev/zero of=bytes.out

$(executables):

$(objects):

.PHONY: clean
clean:
	rm -f *~ *.out $(objects) $(executables)
	rm -rf *.dSYM

.PHONY: all
all: clean default
