anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | # Copyright (c) 2019, Infosys Ltd. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | # |
| 16 | MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) |
| 17 | TOPDIR = $(patsubst %/,%,$(dir $(MAKEFILE_PATH))) |
| 18 | |
| 19 | BUILDDIR = $(TOPDIR)/build |
| 20 | BINDIR = $(BUILDDIR)/bins |
| 21 | OBJDIR = $(BUILDDIR)/objs |
| 22 | LIBDIR = $(BUILDDIR)/libs |
| 23 | |
| 24 | TARGET_DIR = $(TOPDIR)/target |
| 25 | INCLUDE_DIR = $(TOPDIR)/include |
| 26 | |
| 27 | INC_DIRS= \ |
| 28 | -I$(INCLUDE_DIR)/mme-app \ |
| 29 | -I$(INCLUDE_DIR)/s11 \ |
| 30 | -I$(INCLUDE_DIR)/s1ap \ |
| 31 | -I$(INCLUDE_DIR)/s6a \ |
| 32 | -I$(TOPDIR)/src/s1ap/asn1c/asnGenFiles \ |
| 33 | -I$(INCLUDE_DIR)/common \ |
| 34 | -I$(INCLUDE_DIR)/cmn \ |
| 35 | -I$(INCLUDE_DIR)/stateMachineFwk \ |
| 36 | -I$(TOPDIR)/src/mmeGrpcProtos |
| 37 | |
| 38 | LIB_PATH := -L$(LIBDIR) |
| 39 | |
| 40 | CC := gcc |
| 41 | |
| 42 | DEBUG = false |
| 43 | |
| 44 | GRPC_ROOT=/tmp/grpc |
| 45 | |
| 46 | CFLAGS += -D_FORTIFY_SOURCE=2 -fasynchronous-unwind-tables -fexceptions |
| 47 | CFLAGS += -fstack-protector-all -fstack-protector-strong -Wall |
| 48 | CFLAGS += -Werror=format-security -Werror=implicit-function-declaration |