Switch from GPLv2 to GPLv2+
[fw/altos] / src / telelco-v0.1 / Makefile
index a4a83d0224ec09b3acb221d14e36626131ac8025..f7628c30e7c1ee88c93337abf3fc5a78790452f2 100644 (file)
@@ -9,6 +9,7 @@ INC = \
        ao.h \
        ao_arch.h \
        ao_arch_funcs.h \
+       ao_boot.h \
        ao_companion.h \
        ao_data.h \
        ao_sample.h \
@@ -30,6 +31,7 @@ INC = \
 #PROFILE_DEF=-DAO_PROFILE=1
 
 ALTOS_SRC = \
+       ao_boot_chain.c \
        ao_interrupt.c \
        ao_product.c \
        ao_romconfig.c \
@@ -68,14 +70,15 @@ CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
 
 PROGNAME=telelco-v0.1
 PROG=$(PROGNAME)-$(VERSION).elf
+HEX=$(PROGNAME)-$(VERSION).ihx
 
 SRC=$(ALTOS_SRC) ao_telelco.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)
 
 ../altitude.h: make-altitude
        nickle $< > $@
@@ -88,7 +91,7 @@ ao_product.h: ao-make-product.5c ../Version
 distclean:     clean
 
 clean:
-       rm -f *.o $(PROGNAME)-*.elf
+       rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
        rm -f ao_product.h
 
 install: