6 include ../stm/Makefile.defs
33 # Common AltOS sources
38 #PROFILE_DEF=-DAO_PROFILE=1
40 SAMPLE_PROFILE=ao_sample_profile.c \
41 ao_sample_profile_timer.c
42 SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
44 STACK_GUARD=ao_mpu_stm.c
45 STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
61 ao_gps_report_mega.c \
98 PRODUCT=MegaMetrum-v0.1
99 PRODUCT_DEF=-DMEGAMETRUM
102 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
104 PROGNAME=megametrum-v0.1
105 PROG=$(PROGNAME)-$(VERSION).elf
107 SRC=$(ALTOS_SRC) ao_megametrum.c
112 $(PROG): Makefile $(OBJ) altos.ld
113 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
115 ../altitude-pa.h: make-altitude-pa
120 ao_product.h: ao-make-product.5c ../Version
121 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
126 rm -f *.o $(PROGNAME)-*.elf