CFLAGS = -g LIBS = targets = blergtool blergtool_objects = blergtool.o database.o all: $(targets) clean: rm -f $(targets) $(blergtool_objects) blergtool: $(blergtool_objects) gcc $^ -o $@ %.o: %.c gcc $(CFLAGS) $(LIBS) -c $< -o $@