CFLAGS = -O3
LDFLAGS =

CFLAGS += $(shell pkg-config --cflags gsl)
LDFLAGS += $(shell pkg-config --libs gsl)

all: brent bisection newton
.PHONY: all

brent: brent.o quadratic.o
	gcc $^ $(LDFLAGS) -o $@

bisection: bisection.o quadratic.o
	gcc $^ $(LDFLAGS) -o $@

newton: newton.o quadratic.o
	gcc $^ $(LDFLAGS) -o $@

clean:
	rm -f *.o brent bisection newton

