CC=sdcc
ifndef VERSION
-VERSION=$(shell git describe)
+include ../Version
endif
CFLAGS=--model-small --debug --opt-code-speed
ao_convert.c \
ao_serial.c
+#
+# Spi bus driver
+#
+SPI_DRIVER_SRC = \
+ ao_spi.c
+
#
# Debug dongle driver (only on TI)
#
#
# 25LC1024 driver source
EE_DRIVER_SRC = \
+ ao_storage.c \
ao_ee.c
#
# AT45DB161D driver source
FLASH_DRIVER_SRC = \
+ ao_storage.c \
ao_flash.c
+#
+# Numonyx M25P80 driver source
+#
+
+M25_DRIVER_SRC = \
+ ao_storage.c \
+ ao_m25.c
+
#
# SiRF driver source
#
../altitude.h: make-altitude
nickle $< > $@
-ao_product.h: ao-make-product.5c always
+ao_product.h: ao-make-product.5c ../Version
$(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
-always:
-
ao_product.rel: ao_product.c ao_product.h
$(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<