Do radio settings solely by frequency
[fw/altos] / src / product / Makefile.telemini
1 #
2 # TeleMini build file
3 #
4 # Define TELEMINI_VER and TELEMINI_DEF and then
5 # include this file
6
7 vpath %.c ..:../core:../cc1111:../drivers:../product
8 vpath %.h ..:../core:../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         cc1111.h \
19         ao_product.h
20
21 CORE_SRC = \
22         ao_cmd.c \
23         ao_config.c \
24         ao_convert.c \
25         ao_flight.c \
26         ao_kalman.c \
27         ao_log.c \
28         ao_log_tiny.c \
29         ao_mutex.c \
30         ao_panic.c \
31         ao_report.c \
32         ao_sample.c \
33         ao_stdio.c \
34         ao_storage.c \
35         ao_task.c \
36         ao_telemetry.c \
37         ao_freq.c
38
39 CC1111_SRC = \
40         ao_adc.c \
41         ao_dma.c \
42         ao_ignite.c \
43         ao_intflash.c \
44         ao_led.c \
45         ao_packet.c \
46         ao_packet_slave.c \
47         ao_radio.c \
48         ao_romconfig.c \
49         ao_string.c \
50         ao_timer.c \
51         _bp.c
52
53 DRIVER_SRC =
54
55 PRODUCT_SRC = \
56         ao_telemini.c
57
58 SRC = \
59         $(CORE_SRC) \
60         $(CC1111_SRC) \
61         $(DRIVER_SRC) \
62         $(PRODUCT_SRC)
63
64 PROG = telemini-v$(TELEMINI_VER)-$(VERSION).ihx
65 PRODUCT=TeleMini-v$(TELEMINI_VER)
66 PRODUCT_DEF=-DTELEMINI_V_$(TELEMINI_DEF)
67 IDPRODUCT=0x000a
68 CODESIZE=0x6700
69
70 include ../cc1111/Makefile.cc1111
71
72 NICKLE=nickle
73 CHECK_STACK=sh ../util/check-stack
74
75 V=0
76 # The user has explicitly enabled quiet compilation.
77 ifeq ($(V),0)
78 quiet = @printf "  $1 $2 $@\n"; $($1)
79 endif
80 # Otherwise, print the full command line.
81 quiet ?= $($1)
82
83 all: ../$(PROG)
84
85 ../$(PROG): $(REL) Makefile
86         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
87         $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
88
89 ao_product.h: ao-make-product.5c ../Version
90         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
91
92 distclean:      clean
93
94 clean:
95         rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
96         rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
97         rm -f ao_product.h
98         rm -f ../$(PROG) ../$(PMAP)
99
100 install:
101
102 uninstall: