4 # Define TELENANO_VER and TELENANO_DEF and then
7 vpath %.c ..:../core:../cc1111:../drivers:../product
8 vpath %.h ..:../core:../cc1111:../drivers:../product
9 vpath ao-make-product.5c ../util
65 PROG = telenano-v$(TELENANO_VER)-$(VERSION).ihx
66 PRODUCT=TeleNano-v$(TELENANO_VER)
67 PRODUCT_DEF=-DTELENANO_V_$(TELENANO_DEF)
71 include ../cc1111/Makefile.cc1111
74 CHECK_STACK=sh ../util/check-stack
77 # The user has explicitly enabled quiet compilation.
79 quiet = @printf " $1 $2 $@\n"; $($1)
81 # Otherwise, print the full command line.
86 ../$(PROG): $(REL) Makefile
87 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
88 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
90 ao_product.h: ao-make-product.5c ../Version
91 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
96 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
97 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
99 rm -f ../$(PROG) ../$(PMAP)