6 include ../stm/Makefile.defs
35 # Common AltOS sources
40 #PROFILE_DEF=-DAO_PROFILE=1
42 #SAMPLE_PROFILE=ao_sample_profile.c \
43 # ao_sample_profile_timer.c
44 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
46 #STACK_GUARD=ao_mpu_stm.c
47 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
80 ao_gps_report_mega.c \
120 PRODUCT=TeleMega-v0.1
121 PRODUCT_DEF=-DTELEMEGA
124 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
126 PROGNAME=telemega-v0.1
127 PROG=$(PROGNAME)-$(VERSION).elf
128 HEX=$(PROGNAME)-$(VERSION).ihx
130 SRC=$(ALTOS_SRC) ao_telemega.c
135 $(PROG): Makefile $(OBJ) altos.ld
136 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
138 ../altitude-pa.h: make-altitude-pa
143 ao_product.h: ao-make-product.5c ../Version
144 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
149 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx