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