Fix bug on cflags and improve rules

Fix bug on defualt cflags value (it must -c but cliargs was set to
null string, fixed thanks to jacobwilliams) and improve rules in
order to execute many commands by means of a single rule.