1# SPDX-License-Identifier: GPL-2.0-or-later 2# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. 3# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz> 4 5top_srcdir ?= ../../../../.. 6 7include $(top_srcdir)/include/mk/env_pre.mk 8 9LIBDIR := lib 10FILTER_OUT_DIRS := $(LIBDIR) 11LIB := $(LIBDIR)/librpc-tirpc.a 12 13# keep only rpc_* 14ifeq ($(LIBTIRPC_LIBS),) 15FILTER_OUT_MAKE_TARGETS += tirpc_cleaner 16FILTER_OUT_DIRS += tirpc_svc_1 tirpc_svc_2 tirpc_svc_3 tirpc_svc_4 tirpc_svc_5 tirpc_svc_6 tirpc_svc_7 tirpc_svc_8 tirpc_svc_9 tirpc_svc_11 17endif 18 19 20$(LIBDIR): 21 mkdir -p "$@" 22 23$(LIB): $(LIBDIR) 24 $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all 25 26trunk-clean:: | lib-clean 27 28lib-clean:: $(LIBDIR) 29 $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean 30 31include $(abs_srcdir)/Makefile.inc 32include $(top_srcdir)/include/mk/generic_trunk_target.mk 33