diff options
| author | Keith Packard <keithp@keithp.com> | 2011-08-27 12:42:10 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-08-27 12:45:36 -0700 | 
| commit | 6b2db651a1dbc7ea97fce802b5f10b88be1ab42b (patch) | |
| tree | b155b4009bd5a7bdd1e1f53123fcf1bd37a92ec2 /src | |
| parent | 02df2141e5a67afc16acd01a6c60f3cc61052b93 (diff) | |
altos: Add makefile for telelaunch
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/product/Makefile.telelaunch | 97 | ||||
| -rw-r--r-- | src/telelaunch-v0.1/Makefile | 5 | 
2 files changed, 101 insertions, 1 deletions
| diff --git a/src/product/Makefile.telelaunch b/src/product/Makefile.telelaunch new file mode 100644 index 00000000..71781bb1 --- /dev/null +++ b/src/product/Makefile.telelaunch @@ -0,0 +1,97 @@ +# +# TeleLaunch build file +# +# define TELELAUNCH_VER, TELELAUNCH_DEF +# this file + +vpath %.c ..:../core:../cc1111:../drivers:../product +vpath %.h ..:../core:../cc1111:../drivers:../product +vpath ao-make-product.5c ../util + +ifndef VERSION +include ../Version +endif + +INC = \ +	ao.h \ +	ao_pins.h \ +	cc1111.h \ +	ao_product.h + +CORE_SRC = \ +	ao_cmd.c \ +	ao_config.c \ +	ao_convert.c \ +	ao_mutex.c \ +	ao_panic.c \ +	ao_stdio.c \ +	ao_storage.c \ +	ao_task.c \ +	ao_sample.c + +CC1111_SRC = \ +	ao_adc.c \ +	ao_beep.c \ +	ao_dbg.c \ +	ao_dma.c \ +	ao_ignite.c \ +	ao_led.c \ +	ao_packet.c \ +	ao_packet_slave.c \ +	ao_radio.c \ +	ao_romconfig.c \ +	ao_serial.c \ +	ao_spi.c \ +	ao_timer.c \ +	ao_usb.c \ +	_bp.c + +DRIVER_SRC = + +PRODUCT_SRC = \ +	ao_telelaunch.c + +SRC = \ +	$(CORE_SRC) \ +	$(CC1111_SRC) \ +	$(DRIVER_SRC) \ +	$(PRODUCT_SRC) + +PROG = telelaunch-v$(TELELAUNCH_VER)-$(VERSION).ihx +PRODUCT=TeleLaunch-v$(TELELAUNCH_VER) +PRODUCT_DEF=-DTELELAUNCH_V_$(TELELAUNCH_DEF) +IDPRODUCT=0x000f + +include ../cc1111/Makefile.cc1111 + +NICKLE=nickle +CHECK_STACK=sh ../util/check-stack + +V=0 +# The user has explicitly enabled quiet compilation. +ifeq ($(V),0) +quiet = @printf "  $1 $2 $@\n"; $($1) +endif +# Otherwise, print the full command line. +quiet ?= $($1) + +all: ../$(PROG) + +../$(PROG): $(REL) Makefile +	$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) .. +	$(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) + +ao_product.h: ao-make-product.5c ../Version +	$(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ + +distclean:	clean + +clean: +	rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM) +	rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM) +	rm -f ao_product.h +	rm -f ../$(PROG) ../$(PMAP) + +install: + +uninstall: diff --git a/src/telelaunch-v0.1/Makefile b/src/telelaunch-v0.1/Makefile index d8867b19..b0d9d165 100644 --- a/src/telelaunch-v0.1/Makefile +++ b/src/telelaunch-v0.1/Makefile @@ -1 +1,4 @@ -include ../Makefile.proto +TELELAUNCH_VER=0.1 +TELELAUNCH_DEF=0_1 + +include ../product/Makefile.telelaunch | 
