CC=gcc
Executable=kaixian_HW13
Header=header.h
OFiles=kaixian_hw13.o vec.o mat.o count.o objfun.o


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

$(Executable):$(OFiles) $(Header)
	gcc -lm -Os -o $(Executable) $(OFiles)

clean:
	rm -f kaixian_HW13
	rm -f *.o
	rm -f *~
