blob: 7f2518978651246e6b5fa6421d2ea63d0b62d750 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#
# TeleMini build file
#
# Define TELEMINI_VER and TELEMINI_DEF and then
# include 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_flight.c \
ao_kalman.c \
ao_log.c \
ao_log_tiny.c \
ao_mutex.c \
ao_panic.c \
ao_report.c \
ao_sample.c \
ao_stdio.c \
ao_storage.c \
ao_task.c \
ao_telemetry.c
CC1111_SRC = \
ao_adc.c \
ao_dma.c \
ao_ignite.c \
ao_intflash.c \
ao_led.c \
ao_packet.c \
ao_packet_slave.c \
ao_radio.c \
ao_romconfig.c \
ao_timer.c \
_bp.c
DRIVER_SRC =
PRODUCT_SRC = \
ao_telemini.c
SRC = \
$(CORE_SRC) \
$(CC1111_SRC) \
$(DRIVER_SRC) \
$(PRODUCT_SRC)
PROG = telemini-v$(TELEMINI_VER)-$(VERSION).ihx
PRODUCT=TeleMini-v$(TELEMINI_VER)
PRODUCT_DEF=-DTELEMINI_V_$(TELEMINI_DEF)
IDPRODUCT=0x000a
CODESIZE=0x6700
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:
|