Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame^] | 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 | |
| 18 | AUTOMAKE_OPTIONS = foreign subdir-objects |
| 19 | ACLOCAL_AMFLAGS = -I m4 |
| 20 | AM_LIBTOOLFLAGS = --quiet |
| 21 | |
| 22 | AM_CFLAGS = -Wall -fstack-protector -fPIC -Werror -g -DFORTIFY_SOURCE=2 |
| 23 | AM_LDFLAGS = -shared |
| 24 | |
| 25 | if VPP_DEBUG |
| 26 | AM_CFLAGS += -O0 -DCLIB_DEBUG |
| 27 | vpp_build = vpp_debug-native |
| 28 | else |
| 29 | AM_CFLAGS += -O2 |
| 30 | vpp_build = vpp-native |
| 31 | endif |
| 32 | |
| 33 | if VCL_LDPRELOAD_DEBUG |
| 34 | AM_CFLAGS += -ggdb '-DVCOM_DEBUG=1' |
| 35 | else |
| 36 | AM_CFLAGS += -Wall '-DVCOM_DEBUG=0' |
| 37 | endif |
| 38 | |
| 39 | if VPP_DIR_SET |
| 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/ |
| 43 | endif |
| 44 | |
| 45 | |
| 46 | AM_LDFLAGS += -lvppcom -lvppinfra |
| 47 | |
| 48 | SUBDIRS = . |
| 49 | noinst_HEADERS = |
| 50 | dist_bin_SCRIPTS = |
| 51 | lib_LTLIBRARIES = |
| 52 | BUILT_SOURCES = |
| 53 | CLEANFILES = |
| 54 | |
| 55 | |
| 56 | ############################################################################### |
| 57 | # Components |
| 58 | ############################################################################### |
| 59 | |
| 60 | include libvcl-ldpreload.am |
| 61 | |
| 62 | |