forked from whitefield-framework/whitefield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (52 loc) · 1.4 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
include config.inc
MAKE=make
ifneq ($(STACKLINE_RIOT),)
STACKLINE_DEP+=riot
STACKLINE_DEPCLEAN+=riot_clean
endif
ifneq ($(STACKLINE_CONTIKI),)
STACKLINE_DEP+=contiki
STACKLINE_DEPCLEAN+=contiki_clean
endif
ifneq ($(STACKLINE_OPENTHREAD),)
STACKLINE_DEP+=openthread
STACKLINE_DEPCLEAN+=openthread_clean
endif
ifneq ($(AIRLINE_NS3),)
AIRLINE_DEP+=ns3
AIRLINE_DEPCLEAN+=ns3_clean
endif
all: $(AIRLINE_DEP) whitefield $(STACKLINE_DEP)
whitefield:
$(MAKE) -f src/commline/Makefile.commline all
$(MAKE) -f src/utils/Makefile.utils all
$(MAKE) -f src/airline/Makefile.airline all
riot:
$(MAKE) -C $(STACKLINE_RIOT)/tests/whitefield
riot_clean:
$(MAKE) -C $(STACKLINE_RIOT)/tests/whitefield clean
contiki:
$(MAKE) -C $(STACKLINE_CONTIKI)/examples/ipv6/rpl-udp TARGET=whitefield
contiki_clean:
$(MAKE) -C $(STACKLINE_CONTIKI)/examples/ipv6/rpl-udp TARGET=whitefield clean
openthread:
@if [ -d $(STACKLINE_OPENTHREAD) ]; then \
cd $(STACKLINE_OPENTHREAD); \
if [ ! -d output ]; then \
echo "Bootstrapping OpenThread...";\
./bootstrap; \
fi; \
$(MAKE) -f examples/Makefile-whitefield ALL_LOGS=1; \
fi
openthread_clean:
cd $(STACKLINE_OPENTHREAD); $(MAKE) -f examples/Makefile-whitefield clean
ns3:
$(MAKE) -C $(AIRLINE_NS3)
ns3_clean:
$(MAKE) -C $(AIRLINE_NS3) clean
clean:
@rm -rf bin log pcap
allclean: $(STACKLINE_DEPCLEAN)
$(MAKE) clean
tests:
regression/regress.sh regression/full.set