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
61 PROG = telenano-v$(TELENANO_VER)-$(VERSION).ihx
62 PRODUCT=TeleNano-v$(TELENANO_VER)
63 PRODUCT_DEF=-DTELENANO_V_$(TELENANO_DEF)
67 include ../cc1111/Makefile.cc1111
70 CHECK_STACK=sh ../util/check-stack
73 # The user has explicitly enabled quiet compilation.
75 quiet = @printf " $1 $2 $@\n"; $($1)
77 # Otherwise, print the full command line.
82 ../$(PROG): $(REL) Makefile
83 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
84 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM)
86 ao_product.h: ao-make-product.5c ../Version
87 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
92 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
93 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
95 rm -f ../$(PROG) ../$(PMAP)