Makefile.am revision e1b749ab
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:
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
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.
13
14###############################################################################
15# Global Defines
16###############################################################################
17
18AUTOMAKE_OPTIONS = foreign subdir-objects
19ACLOCAL_AMFLAGS = -I m4
20AM_LIBTOOLFLAGS = --quiet
21
22AM_CFLAGS = -Wall -fstack-protector -fPIC -Werror -g -DFORTIFY_SOURCE=2
23AM_LDFLAGS = -shared
24
25if VPP_DEBUG
26AM_CFLAGS += -O0 -DCLIB_DEBUG
27vpp_build = vpp_debug-native
28else
29AM_CFLAGS += -O2
30vpp_build = vpp-native
31endif
32
33if VCL_LDPRELOAD_DEBUG
34AM_CFLAGS += -ggdb '-DVCOM_DEBUG=1'
35else
36AM_CFLAGS += -Wall '-DVCOM_DEBUG=0'
37endif
38
39if VPP_DIR_SET
40vpp_install = @VPP_DIR@/build-root/install-$(vpp_build)
41AM_CFLAGS += -I$(vpp_install)/vpp/include/
42AM_LDFLAGS += -L$(vpp_install)/vpp/lib64/
43endif
44
45
46AM_LDFLAGS += -lvppcom -lvppinfra
47
48SUBDIRS = .
49noinst_HEADERS =
50dist_bin_SCRIPTS =
51lib_LTLIBRARIES =
52BUILT_SOURCES =
53CLEANFILES =
54
55
56###############################################################################
57# Components
58###############################################################################
59
60include libvcl-ldpreload.am
61
62
63