6 include ../stm/Makefile.defs
32 # Common AltOS sources
37 #PROFILE_DEF=-DAO_PROFILE=1
39 SAMPLE_PROFILE=ao_sample_profile.c \
40 ao_sample_profile_timer.c
41 SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
43 STACK_GUARD=ao_mpu_stm.c
44 STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
60 ao_gps_report_mega.c \
96 PRODUCT=MegaMetrum-v0.1
97 PRODUCT_DEF=-DMEGAMETRUM
100 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
102 PROGNAME=megametrum-v0.1
103 PROG=$(PROGNAME)-$(VERSION).elf
105 SRC=$(ALTOS_SRC) ao_megametrum.c
110 $(PROG): Makefile $(OBJ) altos.ld
111 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
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