CC=gcc
Executable=ling_HW_qr
Header=header.h
OFiles=qr.o check.o qrfunction.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 ling_HW_qr
	rm -f *.o
	rm -f *~
