6 include ../stm/Makefile.defs
17 # Common AltOS sources
29 PRODUCT=AltosFlash-$(VERSION)
30 PRODUCT_DEF=-DALTOS_FLASH
33 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -Os
35 PROG=altos-flash-$(VERSION).elf
37 SRC=$(ALTOS_SRC) ao_stm_flash.c
42 LDFLAGS=-L../stm -Wl,-Taltos-loader.ld
44 $(PROG): Makefile $(OBJ)
45 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
47 ao_product.h: ao-make-product.5c ../Version
48 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@