fixup build system

use CPPFLAGS inplace of INC
use $(AR)  for the packing libaries
use $(MAKE) -C $$i to call the Makefile in other folders
use $(RM) for removing