Adding prima makefile for module and fixed makefiles