2 # Copyright 2008-2014 Cisco Systems, Inc. All rights reserved.
3 # Copyright 2007 Nuova Systems, Inc. All rights reserved.
5 # Copyright (c) 2014, Cisco Systems, Inc.
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
12 # 1. Redistributions of source code must retain the above copyright
13 # notice, this list of conditions and the following disclaimer.
15 # 2. Redistributions in binary form must reproduce the above copyright
16 # notice, this list of conditions and the following disclaimer in
17 # the documentation and/or other materials provided with the
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 # POSSIBILITY OF SUCH DAMAGE.
33 include $(RTE_SDK
)/mk
/rte.vars.mk
38 LIB
= librte_pmd_enic.a
40 EXPORT_MAP
:= rte_pmd_enic_version.map
44 CFLAGS
+= -I
$(SRCDIR
)/base
/
47 CFLAGS
+= $(WERROR_FLAGS
) -Wno-strict-aliasing
49 VPATH
+= $(SRCDIR
)/src
52 # all source are stored in SRCS-y
54 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += enic_ethdev.c
55 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += enic_main.c
56 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += enic_rxtx.c
57 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += enic_clsf.c
58 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += enic_res.c
59 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += base
/vnic_cq.c
60 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += base
/vnic_wq.c
61 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += base
/vnic_dev.c
62 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += base
/vnic_intr.c
63 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += base
/vnic_rq.c
64 SRCS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += base
/vnic_rss.c
66 # this lib depends upon:
67 DEPDIRS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += lib
/librte_eal lib
/librte_ether
68 DEPDIRS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += lib
/librte_mempool lib
/librte_mbuf
69 DEPDIRS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += lib
/librte_net
70 DEPDIRS-
$(CONFIG_RTE_LIBRTE_ENIC_PMD
) += lib
/librte_hash
72 include $(RTE_SDK
)/mk
/rte.lib.mk