diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-24 15:21:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:16:52 -0700 |
commit | a3f668e71751608ea2e38519003446bc6ceb348f (patch) | |
tree | 67b30915639329c10e9cc7bada5f465b3dca449a | |
parent | 5db4d5e5b1272b161102e889e65b9c7bc7928352 (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/Makefile | 10 |
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) > $@ |