use function to detect *.o files.