4 # Define TELEMINI_VER and TELEMINI_DEF and then
7 vpath %.c ..:../core:../cc1111:../drivers:../product
8 vpath %.h ..:../core:../cc1111:../drivers:../product
9 vpath ao-make-product.5c ../util
64 PROG = telemini-v$(TELEMINI_VER)-$(VERSION).ihx
65 PRODUCT=TeleMini-v$(TELEMINI_VER)
66 PRODUCT_DEF=-DTELEMINI_V_$(TELEMINI_DEF)
70 include ../cc1111/Makefile.cc1111
73 CHECK_STACK=sh ../util/check-stack
76 # The user has explicitly enabled quiet compilation.
78 quiet = @printf " $1 $2 $@\n"; $($1)
80 # Otherwise, print the full command line.
85 ../$(PROG): $(REL) Makefile
86 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
87 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
89 ao_product.h: ao-make-product.5c ../Version
90 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
95 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
96 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
98 rm -f ../$(PROG) ../$(PMAP)