1 include $(TOPDIR)/stmf0/Makefile-stmf0.defs
15 # Common AltOS sources
33 PRODUCT_DEF=-DALTOS_FLASH
36 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS)
38 LDFLAGS=-nostartfiles $(CFLAGS) -L$(TOPDIR)/stmf0 -Taltos-loader.ld
40 PROGNAME=$(HARDWARE)-altos-flash
41 PROG=$(PROGNAME)-$(VERSION).elf
42 BIN=$(PROGNAME)-$(VERSION).bin
44 MAKEBIN=$(TOPDIR)/../ao-tools/ao-makebin/ao-makebin
49 $(PROG): Makefile $(OBJ) altos-loader.ld
50 $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
53 $(MAKEBIN) --output=$@ --base=$(FLASH_ADDR) $(PROG)
60 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.bin $(PROGNAME)-*.map