altos: Finish ms5607 support
[fw/altos] / src / megametrum-v0.1 / Makefile
index fbcb4a57f8985176c43f6cf39f39eaa2c4ba83d5..6524d8b8442d63c9ddb53398d7e4549de4bb22ad 100644 (file)
@@ -8,10 +8,15 @@ 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 \
+       ao_hmc5883.h \
+       ao_mpu6000.h \
+       stm32l.h
 
 #
 # Common AltOS sources
@@ -34,13 +39,25 @@ ALTOS_SRC = \
        ao_freq.c \
        ao_dma_stm.c \
        ao_spi_stm.c \
-       ao_ms5607.c
+       ao_ms5607.c \
+       ao_adc_stm.c \
+       ao_beep_stm.c \
+       ao_storage.c \
+       ao_m25.c \
+       ao_usb_stm.c \
+       ao_exti_stm.c \
+       ao_packet.c \
+       ao_packet_slave.c \
+       ao_i2c_stm.c \
+       ao_hmc5883.c \
+       ao_mpu6000.c \
+       ao_convert_pa.c
 
 PRODUCT=MegaMetrum-v0.1
 PRODUCT_DEF=-DMEGAMETRUM
 IDPRODUCT=0x000a
 
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -O0 -g
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
 
 PROG=megametrum-v0.1-$(VERSION).elf
 
@@ -60,9 +77,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: