1 2 3 4 5 6 7 8 9
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 $@