Update Makefile

added flags
add -o for optimizatoin