was apparent even when building for only ethernet, the makefile
expected the wifi libraries to exist. Now the makefile only expects
the wifi libraries to exist if you're building for wifi shield.
Patch 2: Rebase
Patch 3: Moved implementation in to just arduinomega.properties
as per Sachin's suggestion.
Change-Id: Id06387e0d10244d71ae83a00068a0ef2f615ee84
WIFI_COBJ = WiFi.o WiFiClient.o WiFiServer.o WiFiUdp.o server_drv.o spi_drv.o wifi_drv.o
OCDEPENDENT_CPPOBJ = wiring_analog.o
-PLATFORM_OBJS = $(CORE_COBJ) $(CORE_CPPOBJ) $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) $(OCDEPENDENT_CPPOBJ) $(WIFI_COBJ)
+PLATFORM_OBJS = $(CORE_COBJ) $(CORE_CPPOBJ) $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) $(OCDEPENDENT_CPPOBJ)
+ifeq ($(ARDUINOWIFI),1)
+ PLATFORM_OBJS += $(WIFI_COBJ)
+endif