IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
1 | # |
2 | # tools/Makefile - Build the ATRF-specific tools |
3 | # |
4 | # Written 2010-2011 by Werner Almesberger |
5 | # Copyright 2010-2011 Werner Almesberger |
6 | # |
7 | # This program is free software; you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 2 of the License, or |
10 | # (at your option) any later version. |
11 | # |
12 | |
13 | |
14 | BEN_DIRS=atrf-gpio atrf-id atrf-path atrf-proxy atrf-reset \ |
15 | atrf-rssi atrf-trim atrf-txrx atrf-xmit atrf-xtal |
16 | |
17 | ifneq ($(wildcard ../install/lowpan-tools-0.2.2/include/ieee802154.h),) |
18 | DIRTPAN := dirtpan |
19 | endif |
20 | ifneq ($(wildcard ../install/linux-zigbee/include/ieee802154.h),) |
21 | DIRTPAN := dirtpan |
22 | endif |
23 | |
24 | BEN_DIRS += $(DIRTPAN) |
25 | |
26 | DIRS=$(BEN_DIRS) usbwait |
27 | TARGET_ONLY_DIRS=lib |
28 | |
29 | ifeq ($(TARGET),ben_jlime) |
30 | HOST = jlime |
31 | else |
32 | HOST = ben |
33 | endif |
34 | |
35 | |
36 | include ../makefiles/Makefile.recurse |
37 | |
38 | .PHONY: upload |
39 | |
40 | upload: |
41 | scp `for n in $(BEN_DIRS); do \ |
42 | echo $$n/$$n; done` $(HOST):/usr/bin/ |
43 |