CC = gcc
CFLAGS  = -g -Wall

executables = nonblockw logger
util_objs   = clrfl.o setfl.o error.o

.PHONY: default
default: $(executables)

nonblockw: nonblockw.o $(util_objs)

logger: logger.o

nonblockw.o $(util_objs): apue.h

.PHONY: clean
clean:
	rm -f *~ *.out *.o $(executables)

.PHONY: all
all: clean default
