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
59 PROG = teledongle-v$(TD_VER)-$(VERSION).ihx
60 PRODUCT=TeleDongle-v$(TD_VER)
61 PRODUCT_DEF=-DTELEDONGLE_V_$(TD_DEF)
64 include ../cc1111/Makefile.cc1111
67 CHECK_STACK=sh ../util/check-stack
70 # The user has explicitly enabled quiet compilation.
72 quiet = @printf " $1 $2 $@\n"; $($1)
74 # Otherwise, print the full command line.
79 ../$(PROG): $(REL) Makefile
80 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
81 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM)
83 ao_product.h: ao-make-product.5c ../Version
84 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
89 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
90 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
92 rm -f ../$(PROG) ../$(PMAP)