Fixed Makefile with output dir for each target

Signed-off-by: Raffaele Aquilone <aquiloneraf@gmail.com>