makfile for libmygem not libmygem/libmygem - if using rake / gem install it will compile libmygem.so into lib/libmygem/ -> throws error