6 include ../stm/Makefile.defs
23 #PROFILE_DEF=-DAO_PROFILE=1
25 #SAMPLE_PROFILE=ao_sample_profile.c \
26 # ao_sample_profile_timer.c
27 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
29 #STACK_GUARD=ao_mpu_stm.c
30 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
57 PRODUCT=TeleDongle-v1.8
58 PRODUCT_DEF=-DTELEDONGLE
61 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
63 PROGNAME=teledongle-v1.8
64 PROG=$(PROGNAME)-$(VERSION).elf
65 HEX=$(PROGNAME)-$(VERSION).ihx
67 SRC=$(ALTOS_SRC) ao_teledongle.c
72 $(PROG): Makefile $(OBJ) altos.ld
73 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
77 ao_product.h: ao-make-product.5c ../Version
78 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
83 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx