From: Keith Packard Date: Sun, 24 Mar 2013 22:21:58 +0000 (-0700) Subject: altos: Create ihx version of stm-demo X-Git-Tag: 1.2.1~48 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a3f668e71751608ea2e38519003446bc6ceb348f;p=fw%2Faltos altos: Create ihx version of stm-demo Both ao-stmload and the eventual java loader will support ihx files. Signed-off-by: Keith Packard --- diff --git a/src/stm-demo/Makefile b/src/stm-demo/Makefile index e6cd55e4..e84a7675 100644 --- a/src/stm-demo/Makefile +++ b/src/stm-demo/Makefile @@ -47,17 +47,19 @@ IDPRODUCT=0x000a CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -Os -PROG=stm-demo +PROG=stm-demo-$(VERSION) +ELF=$(PROG).elf +IHX=$(PROG).ihx SRC=$(ALTOS_SRC) ao_demo.c OBJ=$(SRC:.c=.o) -all: $(PROG) +all: $(ELF) $(IHX) LDFLAGS=-L../stm -Wl,-Taltos-application.ld -$(PROG): Makefile $(OBJ) - $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc +$(ELF): Makefile $(OBJ) + $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJ) $(SAT_CLIB) -lgcc ao_product.h: ao-make-product.5c ../Version $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@