altos/telemini-v2.0: Enable beep config and radio rate config
[fw/altos] / src / telemini-v2.0 / Makefile
1 #
2 # TeleMini build file
3 #
4
5 TELEMINI_VER=2.0
6 TELEMINI_DEF=2_0
7
8 vpath %.c ..:../kernel:../cc1111:../drivers:../product
9 vpath %.h ..:../kernel:../cc1111:../drivers:../product
10 vpath ao-make-product.5c ../util
11
12 ifndef VERSION
13 include ../Version
14 endif
15
16 INC = \
17         ao.h \
18         ao_pins.h \
19         ao_arch.h \
20         ao_arch_funcs.h \
21         cc1111.h \
22         ao_ms5607.h \
23         ao_ms5607_convert_8051.c \
24         ao_product.h \
25         ao_int64.h \
26         ao_sample.h \
27         ao_exti.h \
28         ao_task.h \
29         altitude-pa-small.h
30
31 CORE_SRC = \
32         ao_cmd.c \
33         ao_config.c \
34         ao_flight.c \
35         ao_kalman.c \
36         ao_log.c \
37         ao_log_mini.c \
38         ao_mutex.c \
39         ao_panic.c \
40         ao_report.c \
41         ao_sample.c \
42         ao_stdio.c \
43         ao_storage.c \
44         ao_task.c \
45         ao_telemetry.c \
46         ao_freq.c \
47         ao_int64.c
48
49 CC1111_SRC = \
50         ao_adc.c \
51         ao_dma.c \
52         ao_ignite.c \
53         ao_led.c \
54         ao_packet.c \
55         ao_packet_slave.c \
56         ao_radio.c \
57         ao_romconfig.c \
58         ao_string.c \
59         ao_spi.c \
60         ao_usb.c \
61         ao_convert_pa.c \
62         ao_convert_volt.c \
63         ao_beep.c \
64         ao_timer.c \
65         ao_exti.c \
66         _bp.c
67
68 DRIVER_SRC = \
69         ao_ms5607.c \
70         ao_m25.c
71
72 PRODUCT_SRC = \
73         ao_telemini.c
74
75 SRC = \
76         $(CORE_SRC) \
77         $(CC1111_SRC) \
78         $(DRIVER_SRC) \
79         $(PRODUCT_SRC)
80
81 PROGNAME = telemini-v$(TELEMINI_VER)
82 PROG = $(PROGNAME)-$(VERSION).ihx
83 PRODUCT=TeleMini-v$(TELEMINI_VER)
84 PRODUCT_DEF=-DTELEMINI_V_$(TELEMINI_DEF)
85 IDPRODUCT=0x0027
86
87 include ../cc1111/Makefile.cc1111
88
89 NICKLE=nickle
90 CHECK_STACK=sh ../util/check-stack
91
92 V=0
93 # The user has explicitly enabled quiet compilation.
94 ifeq ($(V),0)
95 quiet = @printf "  $1 $2 $@\n"; $($1)
96 endif
97 # Otherwise, print the full command line.
98 quiet ?= $($1)
99
100 all: $(PROG)
101
102 $(PROG): $(REL) Makefile
103         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
104         $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
105
106 ao_product.h: ao-make-product.5c ../Version
107         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
108
109 distclean:      clean
110
111 clean: clean-cc1111
112
113 install:
114
115 uninstall:
116