Completed Makefile and solved Tablescan