2 # TeleBalloon 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 ..:../core:../cc1111:../drivers:../product:.
21 vpath %.h ..:../core:../cc1111:../drivers:../product:.
22 vpath ao-make-product.5c ../util
84 PROG = teleballoon-v$(TELEBALLOON_VER)-$(VERSION).ihx
85 PRODUCT=TeleBalloon-v$(TELEBALLOON_VER)
86 PRODUCT_DEF=-DTELEBALLOON_V_$(TELEBALLOON_DEF)
89 include ../cc1111/Makefile.cc1111
92 CHECK_STACK=sh ../util/check-stack
95 # The user has explicitly enabled quiet compilation.
97 quiet = @printf " $1 $2 $@\n"; $($1)
99 # Otherwise, print the full command line.
104 ../$(PROG): $(REL) Makefile
105 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
106 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
108 ao_product.h: ao-make-product.5c ../Version
109 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
114 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
115 rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
117 rm -f ../$(PROG) ../$(PMAP)