clean up & add automake for rtems