From 71f095d8de22c2bc634d9168a06d512dee3b49c1 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 1 Jul 2011 12:52:04 -0300 Subject: [PATCH] tools/Makefile (BEN_DIRS): add dirtpan iff its lowpan tools dependency is met --- tools/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 99918e5..0ebc31b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -12,7 +12,17 @@ BEN_DIRS=atrf-gpio atrf-id atrf-path atrf-proxy atrf-reset \ - atrf-rssi atrf-trim atrf-txrx atrf-xmit atrf-xtal #dirtpan + atrf-rssi atrf-trim atrf-txrx atrf-xmit atrf-xtal + +ifneq ($(wildcard ../install/lowpan-tools-0.2.2/include/ieee802154.h),) +DIRTPAN := dirtpan +endif +ifneq ($(wildcard ../install/linux-zigbee/include/ieee802154.h),) +DIRTPAN := dirtpan +endif + +BEN_DIRS += $(DIRTPAN) + DIRS=$(BEN_DIRS) usbwait TARGET_ONLY_DIRS=lib