1# SPDX-License-Identifier: GPL-2.0-or-later 2# Copyright (c) International Business Machines Corp., 2007 3 4top_srcdir ?= ../../.. 5 6include $(top_srcdir)/include/mk/env_pre.mk 7 8LIBDIR := libclone 9 10FILTER_OUT_DIRS := $(LIBDIR) 11 12LIB := $(LIBDIR)/libclone.a 13 14LDLIBS := -ldl -lltp 15 16INSTALL_TARGETS := *.sh 17 18$(LIBDIR): 19 mkdir -p "$@" 20 21# Make the target the real lib so we don't have to deal with rebuilding this 22# every time the dependency is evaluated, like with PHONY rules. 23$(LIB): $(LIBDIR) 24 $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" all 25 26MAKE_DEPS := $(LIB) 27 28trunk-clean:: | lib-clean 29 30lib-clean:: $(LIBDIR) 31 $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" clean 32 33include $(top_srcdir)/include/mk/generic_trunk_target.mk 34