a little restructure make file macros for building flags