5 vpath %.c ..:../core:../cc1111:../drivers:../product
6 vpath %.h ..:../core:../cc1111:../drivers:../product
7 vpath ao-make-product.5c ../util
56 PROG = tidongle-$(VERSION).ihx
58 PRODUCT_DEF=-DTIDONGLE
61 include ../cc1111/Makefile.cc1111
64 CHECK_STACK=sh ../util/check-stack
67 # The user has explicitly enabled quiet compilation.
69 quiet = @printf " $1 $2 $@\n"; $($1)
71 # Otherwise, print the full command line.
76 ../$(PROG): $(REL) Makefile
77 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
78 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM)
80 ao_product.h: ao-make-product.5c ../Version
81 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
86 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
87 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
89 rm -f ../$(PROG) ../$(PMAP)