2 # AltOS build for TeleLCO
6 include ../stm/Makefile.defs
25 # Common AltOS sources
29 #PROFILE_DEF=-DAO_PROFILE=1
65 PRODUCT=TeleLCOTwo-v0.1
66 PRODUCT_DEF=-DTELELCOTWO
69 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
71 PROGNAME=telelcotwo-v0.1
72 PROG=$(PROGNAME)-$(VERSION).elf
73 HEX=$(PROGNAME)-$(VERSION).ihx
75 SRC=$(ALTOS_SRC) ao_telelcotwo.c
80 $(PROG): Makefile $(OBJ) altos.ld
81 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
85 ao_product.h: ao-make-product.5c ../Version
86 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
91 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx