8 vpath %.c ..:../core:../cc1111:../drivers:../product
9 vpath %.h ..:../core:../cc1111:../drivers:../product
10 vpath ao-make-product.5c ../util
63 PROGNAME = telebt-v$(TELEBT_VER)
64 PROG = $(PROGNAME)-$(VERSION).ihx
65 PRODUCT=TeleBT-v$(TELEBT_VER)
66 PRODUCT_DEF=-DTELEBT_V_$(TELEBT_DEF)
69 include ../cc1111/Makefile.cc1111
72 CHECK_STACK=sh ../util/check-stack
75 # The user has explicitly enabled quiet compilation.
77 quiet = @printf " $1 $2 $@\n"; $($1)
79 # Otherwise, print the full command line.
84 $(PROG): $(REL) Makefile
85 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
86 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
88 ao_product.h: ao-make-product.5c ../Version
89 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@