Makefile for Matrix