summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-24 15:21:58 -0700
committerKeith Packard <keithp@keithp.com>2013-03-24 15:21:58 -0700
commita553533b6befa921467555dc139a777d40b8ab08 (patch)
tree35a797e1d2bfe167e2d436f6fcb93cc45e401a35
parent3cdf356e267444d78d37c59359577d53d33c5417 (diff)
altos: Create ihx version of stm-demo
Both ao-stmload and the eventual java loader will support ihx files. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/stm-demo/Makefile10
1 files changed, 6 insertions, 4 deletions
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) > $@