2 # AltOS build for TeleLCO
6 include ../stm/Makefile.defs
28 # Common AltOS sources
32 #PROFILE_DEF=-DAO_PROFILE=1
72 PRODUCT_DEF=-DTELEMEGA
75 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
78 PROG=$(PROGNAME)-$(VERSION).elf
79 HEX=$(PROGNAME)-$(VERSION).ihx
81 SRC=$(ALTOS_SRC) ao_telelco.c
86 $(PROG): Makefile $(OBJ) altos.ld
87 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
89 ../altitude.h: make-altitude
94 ao_product.h: ao-make-product.5c ../Version
95 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
100 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx