Makefile: Use variables

Signed-off-by: Constantin MUSCĂ <constantin.musca@gmail.com>
Fix compile warnings

Signed-off-by: Constantin MUSCĂ <constantin.musca@gmail.com>