xref: /aosp_15_r20/external/ltp/testcases/kernel/controllers/Makefile (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Worker# Copyright (C) 2009, Cisco Systems Inc.
3*49cdfc7eSAndroid Build Coastguard Worker# Ngie Cooper, July 2009
4*49cdfc7eSAndroid Build Coastguard Worker
5*49cdfc7eSAndroid Build Coastguard Workertop_srcdir		?= ../../..
6*49cdfc7eSAndroid Build Coastguard Worker
7*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/env_pre.mk
8*49cdfc7eSAndroid Build Coastguard Worker
9*49cdfc7eSAndroid Build Coastguard WorkerINSTALL_TARGETS		:= *.sh
10*49cdfc7eSAndroid Build Coastguard WorkerLIBDIR			:= libcontrollers
11*49cdfc7eSAndroid Build Coastguard WorkerLIB			:= $(LIBDIR)/libcontrollers.a
12*49cdfc7eSAndroid Build Coastguard WorkerFILTER_OUT_DIRS		:= $(LIBDIR)
13*49cdfc7eSAndroid Build Coastguard Worker
14*49cdfc7eSAndroid Build Coastguard Workerifneq ($(HAVE_FTS_H),1)
15*49cdfc7eSAndroid Build Coastguard Worker	FILTER_OUT_DIRS += cpuset
16*49cdfc7eSAndroid Build Coastguard Workerendif
17*49cdfc7eSAndroid Build Coastguard Worker
18*49cdfc7eSAndroid Build Coastguard Worker$(LIBDIR):
19*49cdfc7eSAndroid Build Coastguard Worker	mkdir -p "$@"
20*49cdfc7eSAndroid Build Coastguard Worker
21*49cdfc7eSAndroid Build Coastguard Worker$(LIB): $(LIBDIR)
22*49cdfc7eSAndroid Build Coastguard Worker	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
23*49cdfc7eSAndroid Build Coastguard Worker
24*49cdfc7eSAndroid Build Coastguard WorkerMAKE_DEPS		:= $(LIB)
25*49cdfc7eSAndroid Build Coastguard Worker
26*49cdfc7eSAndroid Build Coastguard Workertrunk-clean:: | lib-clean
27*49cdfc7eSAndroid Build Coastguard Worker
28*49cdfc7eSAndroid Build Coastguard Workerlib-clean:: $(LIBDIR)
29*49cdfc7eSAndroid Build Coastguard Worker	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
30*49cdfc7eSAndroid Build Coastguard Worker
31*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/generic_trunk_target.mk
32