blob: 7edfdceceefd0feb6128aabd80af63786ebd201f [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301# 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#
16MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
17TOPDIR = $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
18
19BUILDDIR = $(TOPDIR)/build
20BINDIR = $(BUILDDIR)/bins
21OBJDIR = $(BUILDDIR)/objs
22LIBDIR = $(BUILDDIR)/libs
23
24TARGET_DIR = $(TOPDIR)/target
25INCLUDE_DIR = $(TOPDIR)/include
26
27INC_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
38LIB_PATH := -L$(LIBDIR)
39
40CC := gcc
41
42DEBUG = false
43
44GRPC_ROOT=/tmp/grpc
45
46CFLAGS += -D_FORTIFY_SOURCE=2 -fasynchronous-unwind-tables -fexceptions
47CFLAGS += -fstack-protector-all -fstack-protector-strong -Wall
48CFLAGS += -Werror=format-security -Werror=implicit-function-declaration