better compilation on host
[aversive.git] / modules / comm / spi / Makefile
index 8f06ed2..76162ee 100644 (file)
@@ -2,7 +2,11 @@
 TARGET = spi
 
 # List C source files here. (C dependencies are automatically generated.)
+ifeq ($(HOST),avr)
 SRC = spi.c
+else
+SRC = spi_host.c
+endif
 
 ###########################################