altos/fox: Transition to current altos build environment
authorKeith Packard <keithp@keithp.com>
Sat, 1 Feb 2014 01:44:45 +0000 (17:44 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 27 Apr 2018 02:33:48 +0000 (19:33 -0700)
Fix the library usage, use $(LIBS) instead of $(SAT_CLIB) -lgcc

Signed-off-by: Keith Packard <keithp@keithp.com>
src/fox1ihu/Makefile

index d80cb7af398937c2addcf5dd8d0a0481474827f1..e3226a24fade2100cbdeaf297807ece4d0269a53 100644 (file)
@@ -31,6 +31,7 @@ INC = \
 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
 
 ALTOS_SRC = \
+       ao_boot_chain.c \
        ao_interrupt.c \
        ao_product.c \
        ao_romconfig.c \
@@ -62,14 +63,15 @@ CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STA
 
 PROGNAME=fox1ihu-v0.1
 PROG=$(PROGNAME)-$(VERSION).elf
+HEX=$(PROGNAME)-$(VERSION).ihx
 
 SRC=$(ALTOS_SRC) ao_fox1ihu.c
 OBJ=$(SRC:.c=.o)
 
-all: $(PROG)
+all: $(PROG) $(HEX)
 
 $(PROG): Makefile $(OBJ) altos.ld
-       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
+       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
 
 $(OBJ): $(INC)