CC=gcc
Executable=rebecca_fp
Header=header.h
OFiles=rebecca_fp.o func.o table.o
CFLAGS+=-L/usr/local/lib -lgsl -lgslcblas -lm -Os -o

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

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

clean:
	rm -f $(Executable)
	rm -f $(OFiles)
	rm -f *~
