modified makefile for subdirectory sources and add required keys