forked from omec-project/Nucleus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
41 lines (33 loc) · 1.09 KB
/
Makefile.common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Copyright 2019-present Infosys Limited
#
# SPDX-License-Identifier: Apache-2.0
#
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
TOPDIR = $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
BUILDDIR = $(TOPDIR)/build
BINDIR = $(BUILDDIR)/bins
OBJDIR = $(BUILDDIR)/objs
LIBDIR = $(BUILDDIR)/libs
TARGET_DIR = $(TOPDIR)/target
INCLUDE_DIR = $(TOPDIR)/include
INC_DIRS= \
-I$(INCLUDE_DIR)/mme-app \
-I$(INCLUDE_DIR)/mme-app/utils \
-I$(INCLUDE_DIR)/s11 \
-I$(TOPDIR)/src/s11/cpp_utils \
-I$(INCLUDE_DIR)/s1ap \
-I$(INCLUDE_DIR)/s6a \
-I$(TOPDIR)/src/s1ap/asn1c/asnGenFiles \
-I$(TOPDIR)/src/gtpV2Codec \
-I$(INCLUDE_DIR)/common \
-I$(INCLUDE_DIR)/cmn \
-I$(INCLUDE_DIR)/stateMachineFwk \
-I$(TOPDIR)/src/mmeGrpcProtos
LIB_PATH := -L$(LIBDIR)
CC := gcc
DEBUG = false
GRPC_ROOT=/tmp/grpc
CFLAGS += -D_FORTIFY_SOURCE=2 -fasynchronous-unwind-tables -fexceptions
CFLAGS += -fstack-protector-all -fstack-protector-strong -Wall
CFLAGS += -Werror=format-security -Werror=implicit-function-declaration