6 include ../stm/Makefile.defs
31 #PROFILE_DEF=-DAO_PROFILE=1
33 #SAMPLE_PROFILE=ao_sample_profile.c \
34 # ao_sample_profile_timer.c
35 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
37 #STACK_GUARD=ao_mpu_stm.c
38 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
56 ao_gps_report_metrum.c \
89 PRODUCT=TeleMetrum-v2.0
90 PRODUCT_DEF=-DTELEMETRUM_V_2_0
93 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
95 PROGNAME=telemetrum-v2.0
96 PROG=$(PROGNAME)-$(VERSION).elf
98 SRC=$(ALTOS_SRC) ao_telemetrum.c
103 $(PROG): Makefile $(OBJ) altos.ld
104 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
106 ../altitude-pa.h: make-altitude-pa
111 ao_product.h: ao-make-product.5c ../Version
112 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
117 rm -f *.o $(PROGNAME)-*.elf