test mbuf attach
[dpdk.git] / mk / rte.extshared.mk
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2012-2013 6WIND S.A.
3
4 MAKEFLAGS += --no-print-directory
5
6 # we must create the output dir first and recall the same Makefile
7 # from this directory
8 ifeq ($(NOT_FIRST_CALL),)
9
10 NOT_FIRST_CALL = 1
11 export NOT_FIRST_CALL
12
13 all:
14         $(Q)mkdir -p $(RTE_OUTPUT)
15         $(Q)$(MAKE) -C $(RTE_OUTPUT) -f $(RTE_EXTMK) \
16                 S=$(RTE_SRCDIR) O=$(RTE_OUTPUT) SRCDIR=$(RTE_SRCDIR)
17         @echo $(RTE_OUTPUT)/lib must be added to /etc/ld.so.conf or \
18                 LD_LIBRARY_PATH variable to allow binary to link with dynamic library
19
20 %::
21         $(Q)mkdir -p $(RTE_OUTPUT)
22         $(Q)$(MAKE) -C $(RTE_OUTPUT) -f $(RTE_EXTMK) $@ \
23                 S=$(RTE_SRCDIR) O=$(RTE_OUTPUT) SRCDIR=$(RTE_SRCDIR)
24 else
25 include $(RTE_SDK)/mk/rte.shared.mk
26 endif