6 include ../stm/Makefile.defs
22 #PROFILE_DEF=-DAO_PROFILE=1
24 #SAMPLE_PROFILE=ao_sample_profile.c \
25 # ao_sample_profile_timer.c
26 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
28 #STACK_GUARD=ao_mpu_stm.c
29 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
59 PRODUCT=MegaDongle-v0.1
60 PRODUCT_DEF=-DMEGADONGLE
63 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
65 PROGNAME=megadongle-v0.1
66 PROG=$(PROGNAME)-$(VERSION).elf
67 HEX=$(PROGNAME)-$(VERSION).ihx
69 SRC=$(ALTOS_SRC) ao_megadongle.c
74 $(PROG): Makefile $(OBJ) altos.ld
75 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
79 ao_product.h: ao-make-product.5c ../Version
80 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
85 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx