1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 ###############################################################################
16 ###############################################################################
18 AUTOMAKE_OPTIONS = foreign subdir-objects
19 ACLOCAL_AMFLAGS = -I m4
20 AM_LIBTOOLFLAGS = --quiet
22 AM_CFLAGS = -Wall -fstack-protector -fPIC -Werror -g -DFORTIFY_SOURCE=2
26 AM_CFLAGS += -O0 -DCLIB_DEBUG
27 vpp_build = vpp_debug-native
30 vpp_build = vpp-native
33 if VCL_LDPRELOAD_DEBUG
34 AM_CFLAGS += -ggdb '-DVCOM_DEBUG=1'
36 AM_CFLAGS += -Wall '-DVCOM_DEBUG=0'
40 vpp_install_dir = @VPP_DIR@/build-root/install-$(vpp_build)/vpp
41 AM_CFLAGS += -I$(vpp_install_dir)/include/
42 AM_LDFLAGS += -L$(vpp_install_dir)/lib64/
46 AM_LDFLAGS += -lvppcom -lvppinfra
56 ###############################################################################
58 ###############################################################################
60 include libvcl-ldpreload.am