1*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) International Business Machines Corp., 2001 3*49cdfc7eSAndroid Build Coastguard Worker 4*49cdfc7eSAndroid Build Coastguard Workertop_srcdir ?= ../../../.. 5*49cdfc7eSAndroid Build Coastguard Worker 6*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/env_pre.mk 7*49cdfc7eSAndroid Build Coastguard Worker 8*49cdfc7eSAndroid Build Coastguard WorkerLIBDIR := lib 9*49cdfc7eSAndroid Build Coastguard WorkerLIB := $(LIBDIR)/libhugetlb.a 10*49cdfc7eSAndroid Build Coastguard WorkerFILTER_OUT_DIRS := $(LIBDIR) 11*49cdfc7eSAndroid Build Coastguard Worker 12*49cdfc7eSAndroid Build Coastguard Worker$(LIBDIR): 13*49cdfc7eSAndroid Build Coastguard Worker mkdir -p "$@" 14*49cdfc7eSAndroid Build Coastguard Worker 15*49cdfc7eSAndroid Build Coastguard Worker$(LIB): $(LIBDIR) 16*49cdfc7eSAndroid Build Coastguard Worker $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all 17*49cdfc7eSAndroid Build Coastguard Worker 18*49cdfc7eSAndroid Build Coastguard WorkerMAKE_DEPS := $(LIB) 19*49cdfc7eSAndroid Build Coastguard Worker 20*49cdfc7eSAndroid Build Coastguard Workertrunk-clean:: | lib-clean 21*49cdfc7eSAndroid Build Coastguard Worker 22*49cdfc7eSAndroid Build Coastguard Workerlib-clean:: $(LIBDIR) 23*49cdfc7eSAndroid Build Coastguard Worker $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean 24*49cdfc7eSAndroid Build Coastguard Worker 25*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/generic_trunk_target.mk 26