Its formed by ameloblasts during development and is made of a hydroxyapatite crystal matrix. Glycoproteins (enamelins) are what initially form the "scaffolding" for for enamel formation.
In people its acellular (lacks cells) but not always the case in other types of animals.
I don't believe its the same as egg shells, but don't quote me on that. I'm not an egg expert.