2 # TeleShield build file
4 # The various telemetrum versions differ only
5 # in which flash and GPS drivers are included,
6 # so the per-board makefiles simply define
7 # TM_VER, TM_DEF, TM_INC and TM_SRC and include
20 vpath %.c ..:../kernel:../cc1111:../drivers:../product:.
21 vpath %.h ..:../kernel:../cc1111:../drivers:../product:.
22 vpath ao-make-product.5c ../util
75 PROGNAME = teleshield-v$(TELESHIELD_VER)
76 PROG = $(PROGNAME)-$(VERSION).ihx
77 PRODUCT=TeleShield-v$(TELESHIELD_VER)
78 PRODUCT_DEF=-DTELESHIELD_V_$(TELESHIELD_DEF)
82 include ../cc1111/Makefile.cc1111
85 CHECK_STACK=sh ../util/check-stack
88 # The user has explicitly enabled quiet compilation.
90 quiet = @printf " $1 $2 $@\n"; $($1)
92 # Otherwise, print the full command line.
97 $(PROG): $(REL) Makefile
98 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
99 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
101 ao_product.h: ao-make-product.5c ../Version
102 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@