xref: /aosp_15_r20/external/ltp/utils/sctp/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 WorkerLIBSCTPDIR		:= lib
10*49cdfc7eSAndroid Build Coastguard WorkerLIBSCTPUTILDIR		:= testlib
11*49cdfc7eSAndroid Build Coastguard WorkerLIBSCTP			:= $(LIBSCTPDIR)/libsctp.a
12*49cdfc7eSAndroid Build Coastguard WorkerLIBSCTPUTIL		:= $(LIBSCTPUTILDIR)/libsctputil.a
13*49cdfc7eSAndroid Build Coastguard Worker
14*49cdfc7eSAndroid Build Coastguard WorkerFILTER_OUT_DIRS		:= $(LIBSCTPDIR) $(LIBSCTPUTILDIR)
15*49cdfc7eSAndroid Build Coastguard Worker
16*49cdfc7eSAndroid Build Coastguard Worker$(LIBSCTPDIR) $(LIBSCTPUTILDIR):
17*49cdfc7eSAndroid Build Coastguard Worker	mkdir -p "$@"
18*49cdfc7eSAndroid Build Coastguard Worker
19*49cdfc7eSAndroid Build Coastguard Workerlib-clean:: $(LIBSCTPDIR) $(LIBSCTPUTILDIR)
20*49cdfc7eSAndroid Build Coastguard Worker	for i in $^; do \
21*49cdfc7eSAndroid Build Coastguard Worker	    $(MAKE) -C "$$i" -f "$(abs_srcdir)/$$i/Makefile" clean; \
22*49cdfc7eSAndroid Build Coastguard Worker	done
23*49cdfc7eSAndroid Build Coastguard Worker
24*49cdfc7eSAndroid Build Coastguard Worker
25*49cdfc7eSAndroid Build Coastguard Worker$(LIBSCTP): $(LIBSCTPDIR)
26*49cdfc7eSAndroid Build Coastguard Worker	$(MAKE) -C "$^" -f "$(abs_srcdir)/$^/Makefile" all
27*49cdfc7eSAndroid Build Coastguard Worker
28*49cdfc7eSAndroid Build Coastguard Worker$(LIBSCTPUTIL): $(LIBSCTPUTILDIR)
29*49cdfc7eSAndroid Build Coastguard Worker	$(MAKE) -C "$^" -f "$(abs_srcdir)/$^/Makefile" all
30*49cdfc7eSAndroid Build Coastguard Worker
31*49cdfc7eSAndroid Build Coastguard Workertrunk-all: $(LIBSCTP) $(LIBSCTPUTIL)
32*49cdfc7eSAndroid Build Coastguard Worker
33*49cdfc7eSAndroid Build Coastguard Workertrunk-clean:: | lib-clean
34*49cdfc7eSAndroid Build Coastguard Worker
35*49cdfc7eSAndroid Build Coastguard Workerinclude $(top_srcdir)/include/mk/generic_trunk_target.mk
36