SOURCE=wireless_tools.29
#SOURCE=wireless_tools.26

PREFIX = $(PJ_PREFIX)
CROSS_COMPILE = $(PJ_TARGET)-

.PHONY: all clean distclean openSource install
all: openSource
clean:
	make -C $(SOURCE) clean

distclean:
	rm -f $(SOURCE)/.configured

openSource: $(SOURCE)/.configured
	make CC=$(CROSS_COMPILE)gcc -C $(SOURCE)

$(SOURCE)/.configured:
	[ "$$PJ_PREFIX" != "" ]
	[ "$$PJ_TARGET" != "" ]
	[ "$$PJ_HOST" != "" ]
	touch $(SOURCE)/.configured

PREFIX_BINDIR := $(PREFIX)/bin
install: openSource
	# test PREFIX
	make -C $(SOURCE) install
