1f08c3bdfSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later 2f08c3bdfSopenharmony_ci# Copyright (C) 2009, Cisco Systems Inc. 3f08c3bdfSopenharmony_ci# Ngie Cooper, July 2009 4f08c3bdfSopenharmony_ci 5f08c3bdfSopenharmony_citop_srcdir ?= ../.. 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/env_pre.mk 8f08c3bdfSopenharmony_ci 9f08c3bdfSopenharmony_ciLIBSCTPDIR := lib 10f08c3bdfSopenharmony_ciLIBSCTPUTILDIR := testlib 11f08c3bdfSopenharmony_ciLIBSCTP := $(LIBSCTPDIR)/libsctp.a 12f08c3bdfSopenharmony_ciLIBSCTPUTIL := $(LIBSCTPUTILDIR)/libsctputil.a 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ciFILTER_OUT_DIRS := $(LIBSCTPDIR) $(LIBSCTPUTILDIR) 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_ci$(LIBSCTPDIR) $(LIBSCTPUTILDIR): 17f08c3bdfSopenharmony_ci mkdir -p "$@" 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_cilib-clean:: $(LIBSCTPDIR) $(LIBSCTPUTILDIR) 20f08c3bdfSopenharmony_ci for i in $^; do \ 21f08c3bdfSopenharmony_ci $(MAKE) -C "$$i" -f "$(abs_srcdir)/$$i/Makefile" clean; \ 22f08c3bdfSopenharmony_ci done 23f08c3bdfSopenharmony_ci 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_ci$(LIBSCTP): $(LIBSCTPDIR) 26f08c3bdfSopenharmony_ci $(MAKE) -C "$^" -f "$(abs_srcdir)/$^/Makefile" all 27f08c3bdfSopenharmony_ci 28f08c3bdfSopenharmony_ci$(LIBSCTPUTIL): $(LIBSCTPUTILDIR) 29f08c3bdfSopenharmony_ci $(MAKE) -C "$^" -f "$(abs_srcdir)/$^/Makefile" all 30f08c3bdfSopenharmony_ci 31f08c3bdfSopenharmony_citrunk-all: $(LIBSCTP) $(LIBSCTPUTIL) 32f08c3bdfSopenharmony_ci 33f08c3bdfSopenharmony_citrunk-clean:: | lib-clean 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/generic_trunk_target.mk 36