CC=gcc
Executable=rebecca_hw12
Header=header.h
OFILES=rebecca_hw12.o fcg.o io.o
CFLAGS+=-L/usr/local/lib -lgsl -lgslcblas -Os -o

%.o: %.c $(Header)
	$(CC) -c -o $@ $<

$(Executable):$(OFILES) $(Header)
	gcc -$(CFLAGS) $(Executable) $(OFILES)

clean:
	rm -f rebecca_hw12
	rm -f out
	rm -f *.o
	rm -f *~
