OBJ=binarytree.o bst.o rbtree.o SRC=$(OBJ:.o=.c) HDR=$(SRC:.c=.h) CFLAGS+=-Wall CFLAGS+=-Wextra all: $(OBJ) clean: $(RM) $(OBJ) %.o: %.c %.h $(CC) -o $@ -c $< $(CFLAGS)