1# SPDX-License-Identifier: GPL-2.0-or-later 2# Copyright (C) 2009, Cisco Systems Inc. 3# Ngie Cooper, July 2009 4 5top_srcdir ?= ../../.. 6 7include $(top_srcdir)/include/mk/env_pre.mk 8 9INSTALL_TARGETS := *.sh 10LIBDIR := libcontrollers 11LIB := $(LIBDIR)/libcontrollers.a 12FILTER_OUT_DIRS := $(LIBDIR) 13 14ifneq ($(HAVE_FTS_H),1) 15 FILTER_OUT_DIRS += cpuset 16endif 17 18$(LIBDIR): 19 mkdir -p "$@" 20 21$(LIB): $(LIBDIR) 22 $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all 23 24MAKE_DEPS := $(LIB) 25 26trunk-clean:: | lib-clean 27 28lib-clean:: $(LIBDIR) 29 $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean 30 31include $(top_srcdir)/include/mk/generic_trunk_target.mk 32