OBJMODULES = rb_tree.o CC = gcc CFLAGS = -g -Wall %.o: %.c %.h $(CC) $(CFLAGS) -c $< -o $@ rb_tree: rb_tree_main.c $(OBJMODULES) $(CC) $(CFLAGS) $^ -o $@