2 # TeleDongle build file
4 # The various teledongle versions differ only
5 # in minor pin variations
6 # so the per-board makefiles simply define
7 # TD_VER, TD_DEF and include
10 vpath %.c ..:../kernel:../cc1111:../drivers:../product
11 vpath %.h ..:../kernel:../cc1111:../drivers:../product
12 vpath ao-make-product.5c ../util
64 PROGNAME = teledongle-v$(TD_VER)
65 PROG = $(PROGNAME)-$(VERSION).ihx
66 PRODUCT=TeleDongle-v$(TD_VER)
67 PRODUCT_DEF=-DTELEDONGLE_V_$(TD_DEF)
70 include ../cc1111/Makefile.cc1111
73 CHECK_STACK=sh ../util/check-stack
76 # The user has explicitly enabled quiet compilation.
78 quiet = @printf " $1 $2 $@\n"; $($1)
80 # Otherwise, print the full command line.
85 $(PROG): $(REL) Makefile
86 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
87 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
89 ao_product.h: ao-make-product.5c ../Version
90 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@