# This program was created by AXELL CORPORATION.
# Copyright (C) 2015 AXELL CORPORATION, all rights reserved.

# Exclude Library
#-------------------------------------------------------------------------------
FILTER				=	mf usbh

# To build and follow the hierarchy
#-------------------------------------------------------------------------------
MAKE_DIRS			=	$(filter-out $(addprefix ./,$(FILTER)), $(shell find . -mindepth 1 -maxdepth 1 -type d))

.PHONY: all clean depend

all:
	@for subdir in $(MAKE_DIRS) ; do \
		$(MAKE) -C $$subdir ; \
	done

clean:
	@for subdir in $(MAKE_DIRS) ; do \
		$(MAKE) -C $$subdir clean ; \
	done

depend:
	@for subdir in $(MAKE_DIRS) ; do \
		$(MAKE) -C $$subdir depend ; \
	done
