add makefile

Signed-off-by: Mattias Andrée <maandree@operamail.com>
improve makefile

Signed-off-by: Mattias Andrée <maandree@operamail.com>