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
59 ao_gps_report_metrum.c \
95 PRODUCT=TeleMetrum-v2.0
96 PRODUCT_DEF=-DTELEMETRUM_V_2_0
99 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
101 PROGNAME=telemetrum-v2.0
102 PROG=$(PROGNAME)-$(VERSION).elf
103 HEX=$(PROGNAME)-$(VERSION).ihx
105 SRC=$(ALTOS_SRC) ao_telemetrum.c
110 $(PROG): Makefile $(OBJ) altos.ld
111 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
113 ../altitude-pa.h: make-altitude-pa
118 ao_product.h: ao-make-product.5c ../Version
119 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
124 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx