forked from whitefield-framework/whitefield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (41 loc) · 1.1 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
include config.inc
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
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 make -f src/stackline/wf_openthread/Makefile.openthread; fi
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