6 include ../stm/Makefile.defs
35 # Common AltOS sources
39 #PROFILE_DEF=-DAO_PROFILE=1
41 #SAMPLE_PROFILE=ao_sample_profile.c \
42 # ao_sample_profile_timer.c
43 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
45 #STACK_GUARD=ao_mpu_stm.c
46 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
64 ao_gps_report_mega.c \
100 PRODUCT=TeleMega-v4.0
101 PRODUCT_DEF=-DTELEMEGA
104 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
106 PROGNAME=telemega-v4.0
107 PROG=$(PROGNAME)-$(VERSION).elf
108 HEX=$(PROGNAME)-$(VERSION).ihx
110 SRC=$(ALTOS_SRC) ao_telemega.c
115 $(PROG): Makefile $(OBJ) altos.ld
116 $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
123 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx