blob: cafb93933bd85b41c3e49dca61c7a9d40221717f [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001vnet_configure_depend = \
2 vppinfra-install \
Ed Warnickecb9cada2015-12-08 15:45:58 -07003 svm-install \
4 vlib-api-install \
5 vlib-install
6
7vnet_CPPFLAGS = $(call installed_includes_fn, \
8 vppinfra \
Ed Warnickecb9cada2015-12-08 15:45:58 -07009 svm \
10 vlib \
11 vlib-api)
12
13vnet_LDFLAGS = $(call installed_libs_fn, \
14 vppinfra \
Ed Warnickecb9cada2015-12-08 15:45:58 -070015 svm \
16 vlib \
17 vlib-api)
18
Filip Tehlar254b0362016-04-07 10:04:34 +020019ifeq ($($(PLATFORM)_enable_tests),yes)
20vnet_configure_args += --enable-tests
21endif
22
Ed Warnickecb9cada2015-12-08 15:45:58 -070023# Platform dependent configure flags
24vnet_configure_args += $(vnet_configure_args_$(PLATFORM))
25
Christophe Fontainefef15b42016-04-09 12:38:49 +090026# include & link with openssl only if needed
27ifneq ($($(PLATFORM)_uses_openssl),no)
28vnet_CPPFLAGS += $(call installed_includes_fn, openssl)
29vnet_LDFLAGS += $(call installed_libs_fn, openssl)
30endif
31
Damjan Marion802c7fa2016-02-27 00:12:55 +010032ifneq ($($(PLATFORM)_uses_dpdk),no)
Damjan Marion28e3db92016-04-01 12:35:17 +020033ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
34vnet_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
35vnet_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
36else
Damjan Marione936bbe2016-02-25 23:17:38 +010037vnet_configure_depend += dpdk-install
38vnet_CPPFLAGS += $(call installed_includes_fn, dpdk)
39vnet_LDFLAGS += $(call installed_libs_fn, dpdk)
40endif
Damjan Marion28e3db92016-04-01 12:35:17 +020041endif