fixed makefile arithmetic