blob: 5d217c75cd42d84edeccd8b9d13497f88a511eca [file] [log] [blame]
Ole Troan3b3688f2016-06-15 14:29:08 +02001plugins_configure_depend = \
2 vppinfra-install \
3 vlib-api-install \
Shwetha355cf682016-06-21 05:02:32 +01004 vpp-api-test-install \
5 vnet-install \
Ole Troan3b3688f2016-06-15 14:29:08 +02006 vlib-install
7
8plugins_CPPFLAGS = $(call installed_includes_fn, \
9 vppinfra \
10 vlib \
Shwetha355cf682016-06-21 05:02:32 +010011 vnet \
12 svm \
13 vpp-api-test \
Ole Troan3b3688f2016-06-15 14:29:08 +020014 vlib-api)
15
16plugins_LDFLAGS = $(call installed_libs_fn, \
17 vppinfra \
18 vlib \
19 vlib-api)
20
21ifeq ($($(PLATFORM)_enable_tests),yes)
22plugins_configure_args += --enable-tests
23endif
24
25# Platform dependent configure flags
26plugins_configure_args += $(plugins_configure_args_$(PLATFORM))
27
28# include & link with openssl only if needed
29ifneq ($($(PLATFORM)_uses_openssl),no)
30plugins_CPPFLAGS += $(call installed_includes_fn, openssl)
31plugins_LDFLAGS += $(call installed_libs_fn, openssl)
32endif
33
34ifneq ($($(PLATFORM)_uses_dpdk),no)
35ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
36plugins_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
37plugins_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
38else
39plugins_configure_depend += dpdk-install
40plugins_CPPFLAGS += $(call installed_includes_fn, dpdk)
41plugins_LDFLAGS += $(call installed_libs_fn, dpdk)
42endif
43endif