blob: be10e17d2001fb47261291a03c7748ee05fcaf5a [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001vpp_configure_depend = \
2 vppinfra-install \
Ed Warnickecb9cada2015-12-08 15:45:58 -07003 svm-install \
4 vlib-api-install \
5 vlib-install \
6 vnet-install \
7
8#
Damjan Marion28e3db92016-04-01 12:35:17 +02009ifeq ($($(PLATFORM)_dpdk_shared_lib),yes)
10vpp_configure_args = --enable-dpdk-shared
11else
12vpp_configure_args =
13endif
Ed Warnickecb9cada2015-12-08 15:45:58 -070014
15# Platform dependent configure flags
16vpp_configure_args += $(vpp_configure_args_$(PLATFORM))
17
18
19vpp_CPPFLAGS = $(call installed_includes_fn, \
20 vppinfra \
Ed Warnickecb9cada2015-12-08 15:45:58 -070021 svm \
22 vlib \
23 vlib-api \
24 vnet)
25
26vpp_LDFLAGS = $(call installed_libs_fn, \
27 vppinfra \
Ed Warnickecb9cada2015-12-08 15:45:58 -070028 svm \
29 vlib \
30 vlib-api \
31 vnet)
Damjan Marione936bbe2016-02-25 23:17:38 +010032
Christophe Fontainefef15b42016-04-09 12:38:49 +090033# include & link with openssl only if needed
34ifneq ($($(PLATFORM)_uses_openssl),no)
35vpp_CPPFLAGS += $(call installed_includes_fn, openssl)
36vpp_LDFLAGS += $(call installed_libs_fn, openssl)
37endif
38
Damjan Marion802c7fa2016-02-27 00:12:55 +010039ifneq ($($(PLATFORM)_uses_dpdk),no)
Damjan Marion28e3db92016-04-01 12:35:17 +020040ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
41vpp_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
42vpp_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
43else
Damjan Marione936bbe2016-02-25 23:17:38 +010044vpp_configure_depend += dpdk-install
45vpp_CPPFLAGS += $(call installed_includes_fn, dpdk)
46vpp_LDFLAGS += $(call installed_libs_fn, dpdk)
47endif
Damjan Marion28e3db92016-04-01 12:35:17 +020048endif