CC=gcc
Executable=kaixian_HW16
Header=header.h
OFiles=kaixian_hw16.o f.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 kaixian_HW16
	rm -f *.o
	rm -f *~
