rework makefile to respect CFLAGS and simplify