modified makefile for multi frame program