Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | vpp_configure_depend = \ |
| 2 | vppinfra-install \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 3 | svm-install \ |
| 4 | vlib-api-install \ |
| 5 | vlib-install \ |
| 6 | vnet-install \ |
| 7 | |
| 8 | # |
Damjan Marion | 28e3db9 | 2016-04-01 12:35:17 +0200 | [diff] [blame] | 9 | ifeq ($($(PLATFORM)_dpdk_shared_lib),yes) |
| 10 | vpp_configure_args = --enable-dpdk-shared |
| 11 | else |
| 12 | vpp_configure_args = |
| 13 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 14 | |
| 15 | # Platform dependent configure flags |
| 16 | vpp_configure_args += $(vpp_configure_args_$(PLATFORM)) |
| 17 | |
| 18 | |
| 19 | vpp_CPPFLAGS = $(call installed_includes_fn, \ |
| 20 | vppinfra \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 21 | svm \ |
| 22 | vlib \ |
| 23 | vlib-api \ |
| 24 | vnet) |
| 25 | |
| 26 | vpp_LDFLAGS = $(call installed_libs_fn, \ |
| 27 | vppinfra \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 28 | svm \ |
| 29 | vlib \ |
| 30 | vlib-api \ |
| 31 | vnet) |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 32 | |
Christophe Fontaine | fef15b4 | 2016-04-09 12:38:49 +0900 | [diff] [blame] | 33 | # include & link with openssl only if needed |
| 34 | ifneq ($($(PLATFORM)_uses_openssl),no) |
| 35 | vpp_CPPFLAGS += $(call installed_includes_fn, openssl) |
| 36 | vpp_LDFLAGS += $(call installed_libs_fn, openssl) |
| 37 | endif |
| 38 | |
Damjan Marion | 802c7fa | 2016-02-27 00:12:55 +0100 | [diff] [blame] | 39 | ifneq ($($(PLATFORM)_uses_dpdk),no) |
Damjan Marion | 28e3db9 | 2016-04-01 12:35:17 +0200 | [diff] [blame] | 40 | ifeq ($($(PLATFORM)_uses_external_dpdk),yes) |
| 41 | vpp_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir) |
| 42 | vpp_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir) |
| 43 | else |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 44 | vpp_configure_depend += dpdk-install |
| 45 | vpp_CPPFLAGS += $(call installed_includes_fn, dpdk) |
| 46 | vpp_LDFLAGS += $(call installed_libs_fn, dpdk) |
| 47 | endif |
Damjan Marion | 28e3db9 | 2016-04-01 12:35:17 +0200 | [diff] [blame] | 48 | endif |