altoslib: fix computation of TeleGPS battery voltage
[fw/altos] / src / product / Makefile.telelaunch
1 #
2 # TeleLaunch build file
3 #
4 # define TELELAUNCH_VER, TELELAUNCH_DEF
5 # this file
6
7 vpath %.c ..:../kernel:../cc1111:../drivers:../product
8 vpath %.h ..:../kernel:../cc1111:../drivers:../product
9 vpath ao-make-product.5c ../util
10
11 ifndef VERSION
12 include ../Version
13 endif
14
15 INC = \
16         ao.h \
17         ao_pins.h \
18         ao_arch.h \
19         ao_arch_funcs.h \
20         cc1111.h \
21         ao_product.h
22
23 CORE_SRC = \
24         ao_cmd.c \
25         ao_config.c \
26         ao_convert.c \
27         ao_launch.c \
28         ao_mutex.c \
29         ao_panic.c \
30         ao_stdio.c \
31         ao_storage.c \
32         ao_task.c \
33         ao_freq.c
34
35 CC1111_SRC = \
36         ao_adc.c \
37         ao_aes.c \
38         ao_beep.c \
39         ao_dbg.c \
40         ao_dma.c \
41         ao_ignite.c \
42         ao_intflash.c \
43         ao_led.c \
44         ao_radio.c \
45         ao_radio_cmac.c \
46         ao_romconfig.c \
47         ao_serial.c \
48         ao_spi.c \
49         ao_string.c \
50         ao_timer.c \
51         ao_usb.c \
52         _bp.c
53
54 DRIVER_SRC =
55
56 PRODUCT_SRC = \
57         ao_telelaunch.c
58
59 SRC = \
60         $(CORE_SRC) \
61         $(CC1111_SRC) \
62         $(DRIVER_SRC) \
63         $(PRODUCT_SRC)
64
65 PROGNAME = telelaunch-v$(TELELAUNCH_VER)
66 PROG = $(PROGNAME)-$(VERSION).ihx
67 PRODUCT=TeleLaunch-v$(TELELAUNCH_VER)
68 PRODUCT_DEF=-DTELELAUNCH_V_$(TELELAUNCH_DEF)
69 IDPRODUCT=0x000f
70 CODESIZE=0x6700
71
72 include ../cc1111/Makefile.cc1111
73
74 NICKLE=nickle
75 CHECK_STACK=sh ../util/check-stack
76
77 V=0
78 # The user has explicitly enabled quiet compilation.
79 ifeq ($(V),0)
80 quiet = @printf "  $1 $2 $@\n"; $($1)
81 endif
82 # Otherwise, print the full command line.
83 quiet ?= $($1)
84
85 all: $(PROG)
86
87 $(PROG): $(REL) Makefile
88         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
89         $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM)  || rm $@
90
91 ao_product.h: ao-make-product.5c ../Version
92         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
93
94 distclean:      clean
95
96 clean: clean-cc1111
97
98 install:
99
100 uninstall: