Ethernet Shield without Arduino

Hi everyone,

I'm looking for help in my project. I would like to use a atxmega128A3U connected in SPI with the Ethernet Shield to make it run the W5100 chip. How could I adapt the Arduino librairies on Atmel Studio 6 ? Especially to run the Ethernet Shield.

Have a nice day, Alex.