blob: 047a26f551c2c409e00add6207014e9f95f7571c [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001sample-plugin_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 vpp-install \
8 vpp-api-test-install
9
Ed Warnickecb9cada2015-12-08 15:45:58 -070010sample-plugin_CPPFLAGS = $(call installed_includes_fn, \
11 vppinfra \
Ed Warnickecb9cada2015-12-08 15:45:58 -070012 openssl \
13 svm \
14 vlib \
15 vlib-api \
16 vnet \
17 vpp \
18 vpp-api-test)
19
20sample-plugin_LDFLAGS = $(call installed_libs_fn, \
21 vppinfra \
Ed Warnickecb9cada2015-12-08 15:45:58 -070022 openssl \
23 svm \
24 vlib \
25 vlib-api \
26 vnet \
27 vpp \
28 vpp-api-test)
29
30sample-plugin_post_install = \
31 mkdir -p $(PACKAGE_INSTALL_DIR)/$(arch_lib_dir)/vlib_plugins ; \
32 cp $(PACKAGE_INSTALL_DIR)/$(arch_lib_dir)/*.so \
33 $(PACKAGE_INSTALL_DIR)/$(arch_lib_dir)/vlib_plugins
34
35sample-plugin_image_include = echo $(arch_lib_dir)/vlib_plugins
Damjan Marion1d49c982016-03-25 21:20:03 +010036
37ifneq ($($(PLATFORM)_uses_dpdk),no)
38sample-plugin_configure_args = --with-dpdk
Damjan Marion28e3db92016-04-01 12:35:17 +020039ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
40sample-plugin_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
41sample-plugin_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
42else
Damjan Marion1d49c982016-03-25 21:20:03 +010043sample-plugin_configure_depend += dpdk-install
44sample-plugin_CPPFLAGS += $(call installed_includes_fn, dpdk)
45sample-plugin_LDFLAGS += $(call installed_libs_fn, dpdk)
46endif
Damjan Marion28e3db92016-04-01 12:35:17 +020047endif