compile c files in bare_metal and linux directories.