altos/telemini-v2.0: Add ao_exti.h depend. Init beeper and usb.
[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 ..:../core:../cc1111:../drivers:../product
9 vpath %.h ..:../core:../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
29 CORE_SRC = \
30         ao_cmd.c \
31         ao_config.c \
32         ao_convert.c \
33         ao_flight.c \
34         ao_kalman.c \
35         ao_log.c \
36         ao_log_mini.c \
37         ao_mutex.c \
38         ao_panic.c \
39         ao_report.c \
40         ao_sample.c \
41         ao_stdio.c \
42         ao_storage.c \
43         ao_task.c \
44         ao_telemetry.c \
45         ao_freq.c \
46         ao_int64.c
47
48 CC1111_SRC = \
49         ao_adc.c \
50         ao_dma.c \
51         ao_ignite.c \
52         ao_led.c \
53         ao_packet.c \
54         ao_packet_slave.c \
55         ao_radio.c \
56         ao_romconfig.c \
57         ao_string.c \
58         ao_spi.c \
59         ao_usb.c \
60         ao_convert_pa.c \
61         ao_data.c \
62         ao_beep.c \
63         ao_timer.c \
64         ao_exti.c \
65         _bp.c
66
67 DRIVER_SRC = \
68         ao_ms5607.c \
69         ao_m25.c
70
71 PRODUCT_SRC = \
72         ao_telemini.c
73
74 SRC = \
75         $(CORE_SRC) \
76         $(CC1111_SRC) \
77         $(DRIVER_SRC) \
78         $(PRODUCT_SRC)
79
80 PROGNAME = telemini-v$(TELEMINI_VER)
81 PROG = $(PROGNAME)-$(VERSION).ihx
82 PRODUCT=TeleMini-v$(TELEMINI_VER)
83 PRODUCT_DEF=-DTELEMINI_V_$(TELEMINI_DEF)
84 IDPRODUCT=0x000a
85
86 include ../cc1111/Makefile.cc1111
87
88 NICKLE=nickle
89 CHECK_STACK=sh ../util/check-stack
90
91 V=0
92 # The user has explicitly enabled quiet compilation.
93 ifeq ($(V),0)
94 quiet = @printf "  $1 $2 $@\n"; $($1)
95 endif
96 # Otherwise, print the full command line.
97 quiet ?= $($1)
98
99 all: ../$(PROG)
100
101 ../$(PROG): $(REL) Makefile
102         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
103         $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
104
105 ao_product.h: ao-make-product.5c ../Version
106         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
107
108 distclean:      clean
109
110 clean: clean-cc1111
111
112 install:
113
114 uninstall:
115