Adding Makefile for building and simulating coretest.