CC=gcc
Executable=ling_HW12
Header=header.h
ObjectFile=ling_hw12.o CG.o 
Libpath+=-L/usr/local/lib -lgsl -lgslcblas 

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

$(Executable):$(ObjectFile) $(Header)
	$(CC)  -$(Libpath) -Os -o $(Executable) $(ObjectFile)
clean:
	rm -f ling_HW12
	rm -f *.o
	rm -f *~

