5 vpath %.c ..:../core:../cc1111:../drivers:../product
6 vpath %.h ..:../core:../cc1111:../drivers:../product
7 vpath ao-make-product.5c ../util
69 PROG = teleterra-v$(TELETERRA_VER)-$(VERSION).ihx
70 PRODUCT=TeleTerra-v$(TELETERRA_VER)
71 PRODUCT_DEF=-DTELETERRA_V_$(TELETERRA_DEF)
74 include ../cc1111/Makefile.cc1111
77 CHECK_STACK=sh ../util/check-stack
80 # The user has explicitly enabled quiet compilation.
82 quiet = @printf " $1 $2 $@\n"; $($1)
84 # Otherwise, print the full command line.
89 ../$(PROG): $(REL) Makefile
90 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
91 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
93 ao_product.h: ao-make-product.5c ../Version
94 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
99 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
100 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
102 rm -f ../$(PROG) ../$(PMAP)