6 include ../stm/Makefile.defs
34 # 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 \
103 PRODUCT=TeleMega-v0.1
104 PRODUCT_DEF=-DTELEMEGA
107 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
109 PROGNAME=telemega-v0.1
110 PROG=$(PROGNAME)-$(VERSION).elf
111 HEX=$(PROGNAME)-$(VERSION).ihx
113 SRC=$(ALTOS_SRC) ao_telemega.c
118 $(PROG): Makefile $(OBJ) altos.ld
119 $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
126 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map