This project shows an example of communication between a computer and an Arduino over WiFi using the Arduino WiFi Shield.
You can compile it using Arduino-Makefile by setting the attributes in the Makefile inside arduino/ (board configurations, paths, etc.).
make upload && make monitor
Or you can compile and upload it inside the Arduino IDE.
Use make to compile the code and make run to compile and run.