forked from UncleRus/MultiOSD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (61 loc) · 2.84 KB
/
Makefile
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
BUILDDIR = build
TARGET = MultiOSD
FWDIR = firmware
all: firmware
clean:
@rm -rf $(BUILDDIR)/*
.PHONY: all clean firmware
clear = @rm -rf $(BUILDDIR)/*[!h][!e][!x]
# TODO: templates
firmware: $(BUILDDIR)/$(TARGET)_uavtalk.hex \
$(BUILDDIR)/$(TARGET)_uavtalk_adcrssi.hex \
$(BUILDDIR)/$(TARGET)_uavtalk_adcbattery.hex \
$(BUILDDIR)/$(TARGET)_uavtalk_adcbattery_adcrssi.hex \
$(BUILDDIR)/$(TARGET)_mavlink.hex \
$(BUILDDIR)/$(TARGET)_mavlink_adcrssi.hex \
$(BUILDDIR)/$(TARGET)_mavlink_adcbattery_adcrssi.hex \
$(BUILDDIR)/$(TARGET)_ubx_adcbattery_adcrssi.hex
# $(BUILDDIR)/$(TARGET)_msp.hex \
# $(BUILDDIR)/$(TARGET)_msp_adcrssi.hex \
# $(BUILDDIR)/$(TARGET)_msp_adcbattery_adcrssi.hex \
$(BUILDDIR):
mkdir -p $(BUILDDIR)
$(BUILDDIR)/$(TARGET)_uavtalk.hex: $(BUILDDIR)
$(MAKE) TAG=uavtalk DEFS=-DTELEMETRY_MODULES_UAVTALK -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_uavtalk_adcrssi.hex: $(BUILDDIR)
$(MAKE) TAG=uavtalk_adcrssi "DEFS=-DTELEMETRY_MODULES_UAVTALK -DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_uavtalk_adcbattery.hex: $(BUILDDIR)
$(MAKE) TAG=uavtalk_adcbattery "DEFS=-DTELEMETRY_MODULES_UAVTALK -DTELEMETRY_MODULES_ADC_BATTERY" -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_uavtalk_adcbattery_adcrssi.hex: $(BUILDDIR)
$(MAKE) TAG=uavtalk_adcbattery_adcrssi "DEFS=-DTELEMETRY_MODULES_UAVTALK -DTELEMETRY_MODULES_ADC_BATTERY -DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_mavlink.hex: $(BUILDDIR)
$(MAKE) TAG=mavlink DEFS=-DTELEMETRY_MODULES_MAVLINK -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_mavlink_adcrssi.hex: $(BUILDDIR)
$(MAKE) TAG=mavlink_adcrssi "DEFS=-DTELEMETRY_MODULES_MAVLINK -DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_mavlink_adcbattery_adcrssi.hex: $(BUILDDIR)
$(MAKE) TAG=mavlink_adcbattery_adcrssi "DEFS=-DTELEMETRY_MODULES_MAVLINK -DTELEMETRY_MODULES_ADC_BATTERY -DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
$(clear)
$(BUILDDIR)/$(TARGET)_ubx_adcbattery_adcrssi.hex: $(BUILDDIR)
$(MAKE) TAG=ubx_adcbattery_adcrssi "DEFS=-DTELEMETRY_MODULES_UBX -DTELEMETRY_MODULES_ADC_BATTERY -DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
$(clear)
#$(BUILDDIR)/$(TARGET)_msp.hex: $(BUILDDIR)
# $(MAKE) TAG=mavlink "DEFS=-DTELEMETRY_MODULES_MSP" -C $(FWDIR)
# $(clear)
#
#$(BUILDDIR)/$(TARGET)_msp_adcrssi.hex: $(BUILDDIR)
# $(MAKE) TAG=mavlink "DEFS=-DTELEMETRY_MODULES_MSP-DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
# $(clear)
#
#$(BUILDDIR)/$(TARGET)_msp_adcbattery.hex: $(BUILDDIR)
# $(MAKE) TAG=mavlink "DEFS=-DTELEMETRY_MODULES_MSP -DTELEMETRY_MODULES_ADC_BATTERY" -C $(FWDIR)
# $(clear)
#
#$(BUILDDIR)/$(TARGET)_msp_adcbattery_adcrssi.hex: $(BUILDDIR)
# $(MAKE) TAG=mavlink "DEFS=-DTELEMETRY_MODULES_MSP -DTELEMETRY_MODULES_ADC_BATTERY -DTELEMETRY_MODULES_ADC_RSSI" -C $(FWDIR)
# $(clear)