2 # TeleLaunch build file
4 # define TELELAUNCH_VER, TELELAUNCH_DEF
7 vpath %.c ..:../kernel:../cc1111:../drivers:../product
8 vpath %.h ..:../kernel:../cc1111:../drivers:../product
9 vpath ao-make-product.5c ../util
65 PROGNAME = telelaunch-v$(TELELAUNCH_VER)
66 PROG = $(PROGNAME)-$(VERSION).ihx
67 PRODUCT=TeleLaunch-v$(TELELAUNCH_VER)
68 PRODUCT_DEF=-DTELELAUNCH_V_$(TELELAUNCH_DEF)
72 include ../cc1111/Makefile.cc1111
75 CHECK_STACK=sh ../util/check-stack
78 # The user has explicitly enabled quiet compilation.
80 quiet = @printf " $1 $2 $@\n"; $($1)
82 # Otherwise, print the full command line.
87 $(PROG): $(REL) Makefile
88 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
89 $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
91 ao_product.h: ao-make-product.5c ../Version
92 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@