/
Makefile
83 lines (62 loc) · 1.59 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
#Makefile for example
CONTIKI = ../
#CONTIKI = ../..
ifndef TARGET
TARGET=sky
endif
DEFUSB="USB0"
OUTDEV="/dev/tty"
OUTDEV_USB="$OUTDEV$DEFUSB"
## WARNING .... This Makefile is used by multiple applications
# setting the defines VARIABLE can only be done by a remote process..
###DEFINES=NODE_IS_RECEIVER NODE_IS_SENDER
compile:
gcc -g linux-serialdump.c -o download
@echo "==>download application created"
gcc -g node_transmit.c -o transmit
@echo "==> command tx application created..."
gcc -g serialconnect.c -o sconnect
echo "==> node-id retrieval app created"
gcc -g node_id.c -o node_id
runclient:
nohup python pyro_client.py > clientlog.out 2> clientlog.err < /dev/null &
stopcient:
@echo "killing client process"
kill -9 $(pidof python)
runserver:
nohup python testbedserver.py > serverlog.out 2> serverlog.err < /dev/null &
run-ns:
nohup pyro-ns > nameserver.out 2> nameserver.err < /dev/null &
convert2xml:
python convert_hex2bin.py
clear:
rm -rf *.sky symbols.* obj_* *~ *.class *.pyc sconnect transmit
make clean
make compile
cls:
rm -rf *.class
recvbin:
rm -rf *.sky symbols.* obj_* *~
make clean
#make isa_receiver.upload
make isa_receiver.ihex
cp -rf isa_receiver.ihex binaries/
recv:
rm -rf *.sky symbols.* obj_* *~
make clean
make isa_receiver.upload
cp tmpimage.ihex isa_receiver.ihex
sender:
rm -rf *.sky symbols.* obj_*
make clean
#make isa_sender.upload
make isa_sender.ihex
cp -rf isa_sender.ihex binaries/
serial:
make login > $(ARG)
reload:
make sky-reset
delete:
make clean
rm -rf obj_* *~ symbols.* *.sky
include $(CONTIKI)/Makefile.include