altos: Use new USB driver in megametrum-v0.1 product
[fw/altos] / src / megametrum-v0.1 / Makefile
index 6347f8c3ad96f0ed1bdf50d0e9a1a486a84e79ff..3c3d7173f27959768e63a15b8a49ece0b5ecc868 100644 (file)
@@ -8,10 +8,12 @@ include ../stm/Makefile.defs
 INC = \
        ao.h \
        ao_arch.h \
+       ao_arch_funcs.h \
        ao_pins.h \
        altitude.h \
        ao_kalman.h \
-       ao_product.h
+       ao_product.h \
+       ao_ms5607.h
 
 #
 # Common AltOS sources
@@ -31,7 +33,15 @@ ALTOS_SRC = \
        ao_serial_stm.c \
        ao_gps_skytraq.c \
        ao_cc1120.c \
-       ao_freq.c
+       ao_freq.c \
+       ao_dma_stm.c \
+       ao_spi_stm.c \
+       ao_ms5607.c \
+       ao_adc_stm.c \
+       ao_beep_stm.c \
+       ao_storage.c \
+       ao_m25.c \
+       ao_usb_stm.c
 
 PRODUCT=MegaMetrum-v0.1
 PRODUCT_DEF=-DMEGAMETRUM
@@ -39,7 +49,7 @@ IDPRODUCT=0x000a
 
 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
 
-PROG=megametrum-v0.1-$(VERSION).ihx
+PROG=megametrum-v0.1-$(VERSION).elf
 
 SRC=$(ALTOS_SRC) ao_megametrum.c
 OBJ=$(SRC:.c=.o)
@@ -57,9 +67,6 @@ $(OBJ): $(INC)
 ao_product.h: ao-make-product.5c ../Version
        $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
 
-ao_product.rel: ao_product.c ao_product.h
-       $(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<
-
 distclean:     clean
 
 clean: