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 ..:../core:../cc1111:../drivers:../product
11 vpath %.h ..:../core:../cc1111:../drivers:../product
12 vpath ao-make-product.5c ../util
63 PROG = teledongle-v$(TD_VER)-$(VERSION).ihx
64 PRODUCT=TeleDongle-v$(TD_VER)
65 PRODUCT_DEF=-DTELEDONGLE_V_$(TD_DEF)
68 include ../cc1111/Makefile.cc1111
71 CHECK_STACK=sh ../util/check-stack
74 # The user has explicitly enabled quiet compilation.
76 quiet = @printf " $1 $2 $@\n"; $($1)
78 # Otherwise, print the full command line.
83 ../$(PROG): $(REL) Makefile
84 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
85 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
87 ao_product.h: ao-make-product.5c ../Version
88 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
93 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
94 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
96 rm -f ../$(PROG) ../$(PMAP)