-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (70 loc) · 2.26 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
78
79
80
81
82
83
84
85
86
include defs.mk
# Default target: make program!
all: begin gccversion nrf24l01 bdcstWirelessPixelReceiver \
bdcstWirelessPixelTransmitter ATTinyWirelessPixelReceiver \
ATMegaWirelessPixel RpiWirelessPixel RpiWirelessPixelReceiver end
begin:
@echo
@echo $(MSG_BEGIN)
finished:
@echo $(MSG_ERRORS_NONE)
end:
@echo $(MSG_END)
@echo
nrf24l01:
$(MAKE) -w -C nrf24l01 all
bdcstWirelessPixelReceiver:
$(MAKE) -w -C bdcstWirelessPixelReceiver all
bdcstWirelessPixelTransmitter:
$(MAKE) -w -C bdcstWirelessPixelTransmitter all
ATTinyWirelessPixelReceiver:
$(MAKE) -w -C ATTinyWirelessPixelReceiver all
ATMegaWirelessPixel:
$(MAKE) -w -C ATMegaWirelessPixel all
RpiWirelessPixel:
$(MAKE) -w -C RpiWirelessPixel all
RpiWirelessPixelReceiver:
$(MAKE) -w -C RpiWirelessPixelReceiver all
# Display compiler version information.
gccversion :
@$(CC) --version
@$(CXX) --version
install: nrf24l01 bdcstWirelessPixelReceiver bdcstWirelessPixelTransmitter ATTinyWirelessPixelReceiver ATMegaWirelessPixel RpiWirelessPixel RpiWirelessPixelReceiver
@echo $(MSG_INSTALLING)
$(MAKE) -w -C ATTinyWirelessPixelReceiver install
$(MAKE) -w -C ATMegaWirelessPixel install
$(MAKE) -w -C RpiWirelessPixel install
$(MAKE) -w -C RpiWirelessPixelReceiver install
# Target: clean project.
clean: begin clean_list finished end
clean_list :
@echo
@echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).hex
$(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET).obj
$(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map
$(REMOVE) $(TARGET).obj
$(REMOVE) $(TARGET).a90
$(REMOVE) $(TARGET).sym
$(REMOVE) $(TARGET).lnk
$(REMOVE) $(TARGET).lss
$(REMOVE) $(OBJ)
$(REMOVE) $(LST)
$(REMOVE) $(SRC:.c=.s)
$(REMOVE) $(SRC:.c=.d)
$(REMOVE) *~
$(MAKE) -w -C nrf24l01 clean
$(MAKE) -w -C bdcstWirelessPixelReceiver clean
$(MAKE) -w -C bdcstWirelessPixelTransmitter clean
$(MAKE) -w -C ATTinyWirelessPixelReceiver clean
$(MAKE) -w -C ATMegaWirelessPixel clean
$(MAKE) -w -C RpiWirelessPixel clean
$(MAKE) -w -C RpiWirelessPixelReceiver clean
# Listing of phony targets.
.PHONY : all gccversion clean clean_list nrf24l01 bdcstWirelessPixelReceiver \
bdcstWirelessPixelTransmitter ATTinyWirelessPixelReceiver \
ATMegaWirelessPixel RpiWirelessPixel RpiWirelessPixelReceiver \
install begin finished end