4 # Define TELEBT_VER, TELEBT_DEF, TELEBT_INC and TELEBT_SRC
5 # and include this file
7 vpath %.c ..:../core:../cc1111:../drivers:../product
8 vpath %.h ..:../core:../cc1111:../drivers:../product
9 vpath ao-make-product.5c ../util
60 PROG = telebt-v$(TELEBT_VER)-$(VERSION).ihx
61 PRODUCT=TeleBT-v$(TELEBT_VER)
62 PRODUCT_DEF=-DTELEBT_V_$(TELEBT_DEF)
65 include ../cc1111/Makefile.cc1111
68 CHECK_STACK=sh ../util/check-stack
71 # The user has explicitly enabled quiet compilation.
73 quiet = @printf " $1 $2 $@\n"; $($1)
75 # Otherwise, print the full command line.
80 ../$(PROG): $(REL) Makefile
81 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
82 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM)
84 ao_product.h: ao-make-product.5c ../Version
85 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
90 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
91 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
93 rm -f ../$(PROG) ../$(PMAP)