101 lines
3.2 KiB
Makefile
101 lines
3.2 KiB
Makefile
|
|
##----------------------------------------------------------##
|
|
## ##
|
|
## Universal Makefile for module template : V1.6.3 ##
|
|
## ##
|
|
## Created : Wei Liu 07/04/11 ##
|
|
## Revision: [Last]Wei Liu 07/07/07 ##
|
|
## ##
|
|
##----------------------------------------------------------##
|
|
|
|
##---------------------------------------------------------------------##
|
|
##--------------------------------------
|
|
##
|
|
## Project correlation(Customer define)
|
|
##
|
|
##--------------------------------------
|
|
|
|
## MODULE= [Module Name]
|
|
## TYPE = app/plat => Module Type
|
|
|
|
## DBUG_FLAGS_ADD = [Module Define Gcc Flags for Debug ]
|
|
## DBUG_FLAGS_ADD = [Module Define Gcc Flags for Release]
|
|
|
|
## BUILD = lib/exef => Output file format
|
|
## CFG = debug/release => Build Configuration
|
|
|
|
## SRC_PATH = [Source file path]
|
|
## INC_PATH = [Include file path]
|
|
## APP_PATH = [App Module path]
|
|
## PLT_PATH = [Plat Module path]
|
|
|
|
## PLT_LIB = [Needed plat lib for Link] => just for test or wxc2main
|
|
## APP_LIB = [Needed app lib for Link] => just for test or wxc2main
|
|
## LIB_ADD = [Needed Extend lib for Link] => just for test or wxc2main
|
|
|
|
## PLT_LIB e.g. = haepub fsm mng proto kernel aif mgc mgcp sip rtp \
|
|
## 8ecp bicc smpp xapp tcap mtp3 m2ua \
|
|
## snmp iptrans debug sccp public pal isdn
|
|
##
|
|
## APP_LIB e.g. = msc vlr ssf hlr ae pps mnp smsc vms aas palim rls ues
|
|
## LIB_ADD e.g. = -liba3a8 -lm
|
|
|
|
## OBJ_ADD = [Extend third party object files needed]
|
|
## TEST_OBJ_PATH = [module object files Path for test ] => just for test
|
|
##---------------------------------------------------------------------##
|
|
|
|
|
|
TYPE = app
|
|
|
|
DBUG_FLAGS_ADD = -D_LKSCTP
|
|
RELS_FLAGS_ADD = -D_LKSCTP
|
|
|
|
##Default commonly as below
|
|
|
|
BUILD = exef
|
|
CFG = debug
|
|
|
|
PLT_LIB = scf smpp xapp tcap mtp3 m2ua snmp iptrans debug sccp public radius tcp diameter
|
|
|
|
APP_LIB = pps
|
|
LIB_ADD = -ldl -lpthread -ldl -lcrypt -lnsl -lm -lrt -lsctp -lgcrypt -lgnutls /usr/lib/x86_64-linux-gnu/libidn.a -L/usr/local/lib -lglib-2.0 -lhiredis
|
|
|
|
SRC_PATH = ./src
|
|
INC_PATH = ./src/include
|
|
PLT_PATH = ../../plat
|
|
APP_PATH = ../../mss
|
|
BIN_PATH = ../../bin
|
|
MODULE = $(BIN_PATH)/agtocs
|
|
|
|
OBJ_ADD =
|
|
TEST_OBJ_PATH =
|
|
|
|
PREPROC_CMD =
|
|
POSTPROC_CMD =
|
|
|
|
##---------------------------------------------------------------------##
|
|
##--------------------------------------
|
|
##
|
|
## Make configuration(Customer define)
|
|
##
|
|
##--------------------------------------
|
|
|
|
## CCFLAG_SWITCH = on/off => gcc flag show on/off
|
|
## COVER_NEED = yes/no => PTF cover report needed
|
|
## COVER_REPORT_PATH = [path ] => PTF cover report path
|
|
|
|
CCFLAG_SWITCH = on
|
|
COVER_NEED = no
|
|
COVER_REPORT_PATH = ./output
|
|
|
|
##---------------------------------------------------------------------##
|
|
|
|
|
|
##--------------------------------------
|
|
##
|
|
## include makefile.rules (Do not change)
|
|
##
|
|
##--------------------------------------
|
|
MAKE_INCLUDE = ../../inc
|
|
include $(MAKE_INCLUDE)/Makefile.rules
|