5 vpath %.c ..:../core:../cc1111:../drivers:../product
6 vpath %.h ..:../core:../cc1111:../drivers:../product
7 vpath ao-make-product.5c ../util
69 PROGNAME = teleterra-v$(TELETERRA_VER)
70 PROG = $(PROGNAME)-$(VERSION).ihx
71 PRODUCT=TeleTerra-v$(TELETERRA_VER)
72 PRODUCT_DEF=-DTELETERRA_V_$(TELETERRA_DEF)
75 include ../cc1111/Makefile.cc1111
78 CHECK_STACK=sh ../util/check-stack
81 # The user has explicitly enabled quiet compilation.
83 quiet = @printf " $1 $2 $@\n"; $($1)
85 # Otherwise, print the full command line.
90 ../$(PROG): $(REL) Makefile
91 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
92 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
94 ao_product.h: ao-make-product.5c ../Version
95 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@