Root/tools/Makefile

Source at commit b51d442c317c76425cac446818ade6ccc43952c4 created 9 years 5 months ago.
By Werner Almesberger, atusb/fw/usb/dfu.c (config_descriptor): correct alt settings off-by-one error
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
14BEN_DIRS=atrf-gpio atrf-id atrf-path atrf-proxy atrf-reset \
15     atrf-rssi atrf-trim atrf-txrx atrf-xmit atrf-xtal
16
17ifneq ($(wildcard ../install/lowpan-tools-0.2.2/include/ieee802154.h),)
18DIRTPAN := dirtpan
19endif
20ifneq ($(wildcard ../install/linux-zigbee/include/ieee802154.h),)
21DIRTPAN := dirtpan
22endif
23
24BEN_DIRS += $(DIRTPAN)
25
26DIRS=$(BEN_DIRS) usbwait
27TARGET_ONLY_DIRS=lib
28
29ifeq ($(TARGET),ben_jlime)
30HOST = jlime
31else
32HOST = ben
33endif
34
35
36include ../makefiles/Makefile.recurse
37
38.PHONY: upload
39
40upload:
41        scp `for n in $(BEN_DIRS); do \
42            echo $$n/$$n; done` $(HOST):/usr/bin/
43

Archive Download this file



interactive