altos/stm: Make stm applications depend on ao_boot.h
[fw/altos] / src / telegps-v0.1 / Makefile
index c8ab8a9aafe089bc6a8150af1d5d7f1cb3e84afd..46eb0ac5edc6278e7175d527a40d364eb3916d5f 100644 (file)
@@ -9,16 +9,20 @@ INC = \
        ao.h \
        ao_arch.h \
        ao_arch_funcs.h \
+       ao_boot.h \
        ao_pins.h \
        ao_product.h \
        ao_task.h \
        ao_whiten.h \
        ao_cc115l.h \
-       ao_rf_cc115l.h \
        ao_fec.h \
        stm32l.h \
+       ao_sdcard.h \
+       ao_bufio.h \
+       ao_fat.h \
        Makefile
 
+
 #PROFILE=ao_profile.c
 #PROFILE_DEF=-DAO_PROFILE=1
 
@@ -29,7 +33,11 @@ INC = \
 #STACK_GUARD=ao_mpu_stm.c
 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
 
+MATH_SRC=\
+       ef_log.c
+
 ALTOS_SRC = \
+       ao_boot_chain.c \
        ao_interrupt.c \
        ao_product.c \
        ao_romconfig.c \
@@ -48,32 +56,38 @@ ALTOS_SRC = \
        ao_exti_stm.c \
        ao_serial_stm.c \
        ao_gps_skytraq.c \
+       ao_gps_show.c \
        ao_cc115l.c \
        ao_fec_tx.c \
        ao_rfpa0133.c \
        ao_aprs.c \
-       ao_storage.c \
        ao_eeprom_stm.c \
        ao_sdcard.c \
        ao_bufio.c \
-       ao_fat.c
+       ao_fat.c \
+       ao_log_fat.c \
+       ao_gps_report_mega.c \
+       ao_telemetry.c \
+       $(SAMPLE_PROFILE) \
+       $(MATH_SRC)
 
 PRODUCT=TeleGPS-v0.1
 PRODUCT_DEF=-DTELEGPS
-IDPRODUCT=0x0024
+IDPRODUCT=0x0025
 
 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
 
 PROGNAME=telegps-v0.1
 PROG=$(PROGNAME)-$(VERSION).elf
+HEX=$(PROGNAME)-$(VERSION).ihx
 
 SRC=$(ALTOS_SRC) ao_telegps.c
 OBJ=$(SRC:.c=.o)
 
-all: $(PROG)
+all: $(PROG) $(HEX)
 
 $(PROG): Makefile $(OBJ) altos.ld
-       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
+       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
 
 $(OBJ): $(INC)
 
@@ -83,7 +97,7 @@ ao_product.h: ao-make-product.5c ../Version
 distclean:     clean
 
 clean:
-       rm -f *.o $(PROGNAME)-*.elf
+       rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
        rm -f ao_product.h
 
 install: