⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ma.mak

📁 gsm map协议源代码
💻 MAK
📖 第 1 页 / 共 4 页
字号:
#********************************************************************16**
#
#                        (c) COPYRIGHT 1989-2005 by 
#                        Continuous Computing Corporation.
#                        All rights reserved.
#    This software is confidential and proprietary to Continuous Computing 
#    Corporation (CCPU).  No part of this software may be reproduced,
#    stored, transmitted, disclosed or used in any form or by any means
#    other than as expressly provided by the written Software License 
#    Agreement between CCPU and its licensee.
#
#    CCPU warrants that for a period, as provided by the written
#    Software License Agreement between CCPU and its licensee, this
#    software will perform substantially to CCPU specifications as
#    published at the time of shipment, exclusive of any updates or 
#    upgrades, and the media used for delivery of this software will be 
#    free from defects in materials and workmanship.  CCPU also warrants 
#    that has the corporate authority to enter into and perform under the   
#    Software License Agreement and it is the copyright owner of the software 
#    as originally delivered to its licensee.
#
#    CCPU MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
#    WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
#    A PARTICULAR PURPOSE WITH REGARD TO THIS SOFTWARE, SERVICE OR ANY RELATED
#    MATERIALS.
#
#    IN NO EVENT SHALL CCPU BE LIABLE FOR ANY INDIRECT, SPECIAL,
#    CONSEQUENTIAL DAMAGES, OR PUNITIVE DAMAGES IN CONNECTION WITH OR ARISING
#    OUT OF THE USE OF, OR INABILITY TO USE, THIS SOFTWARE, WHETHER BASED
#    ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT
#    LIABILITY, OR OTHERWISE, AND WHETHER OR NOT IT HAS BEEN ADVISED
#    OF THE POSSIBILITY OF SUCH DAMAGE.
#
#                      Restricted Rights Legend
#
#    This software and all related materials licensed hereby are
#    classified as "restricted computer software" as defined in clause
#    52.227-19 of the Federal Acquisition Regulation ("FAR") and were
#    developed entirely at private expense for nongovernmental purposes,
#    are commercial in nature and have been regularly used for
#    nongovernmental purposes, and, to the extent not published and
#    copyrighted, are trade secrets and confidential and are provided
#    with all rights reserved under the copyright laws of the United
#    States.  The government's rights to the software and related
#    materials are limited and restricted as provided in clause
#    52.227-19 of the FAR.
#
#                   IMPORTANT LIMITATION(S) ON USE
#
#    The use of this software is limited to the use set
#    forth in the written Software License Agreement between CCPU and
#    its Licensee. Among other things, the use of this software
#    may be limited to a particular type of Designated Equipment, as 
#    defined in such Software License Agreement.
#    Before any installation, use or transfer of this software, please
#    consult the written Software License Agreement or contact CCPU at
#    the location set forth below in order to confirm that you are
#    engaging in a permissible use of the software.
#
#                   Continuous Computing Corporation
#                   9380, Carroll Park Drive
#                   San Diego, CA-92121, USA
#
#                   Tel: +1 (858) 882 8800
#                   Fax: +1 (858) 777 3388
#
#                   Email: support@trillium.com
#                   Web: http://www.ccpu.com
#
#********************************************************************17*/
#
#********************************************************************20**
#
#       Name:   map gsm - makefile
#
#       Type:   make file
#
#       Desc:   Compile, assemble and link product software for
#               various configurations. Further comments are
#               embedded in the file. The following targets are
#               defined for use:
#
#               This file supports a variety of environments and
#               build targets.
#
#               ENVIRONMENTS:
#
#               Solaris 2.x with SUNpro C
#
#               Solaris 2.x with GNU C (gcc)
#
#               Solaris 2.x with MRI C (mcc68k) cross compiled for
#               a relatively standard 68040 processor board
# 
#               Microsoft Visual C++ 4.x for Windows '95 and Windows NT
#               environments(msvc)
#
#               BUILD TARGETS:
#
#               acc              acceptance tests (with MTSS) -- default
#               pt               portable software (without MTSS) 
#               lib              library (with MTSS)
#
#               depend.acc       makedepend for acceptance tests
#               depend.pt        makedepend for portable software
#
#               clean            remove all object files
#               win_clean        remove all object files(Windows environment)
#
#       Sid:      ma.mak@@/main/7 - Fri Sep 16 02:38:29 2005
#
#       Prg:    ssk
#
#********************************************************************21*/
#
# Modifications required :
# For WinNT SSI :
#          BLDENV=win_acc (to be supplied on command line)
#          OBJ=$(NS_OBJ_SUFFIX)
#          make SS_DIR and MT_DIR point to path for WinNT SSI files
#          Replace MT_SRCS with NS_SRCS in PRDACC_SRCS
#          Replace MT_OBJS with NS_OBJS in PRDACC_OBJS
#          Put OSOPTS=$(WINOSOPTS) in acc/pt/lib target
#          MA_ACC_CMD_LINE shouldn't be present in PRDACCOPTS
#          use the ACC_INC_PATH in which VW_INC is not included
#
# For VxWorks SSI :
#          BLDENV=ppc_acc (to be supplied on command line)
#          OBJ=$(SOL_OBJ_SUFFIX)
#          make VW_DIR point to path for VxWorks SSI files
#          Put SS_DIR and MT_DIR as $(VW_DIR)
#          Replace MT_SRCS with VW_SRCS in PRDACC_SRCS
#          Replace MT_OBJS with VW_OBJS in PRDACC_OBJS
#          Put OSOPTS=$(VWOSOPTS) for acc rule
#          MA_ACC_CMD_LINE shouldn't be present in PRDOPTS
#          modify VW_INC appropriately to point to correct header files
#          use ACC_INC_PATH in which VW_INC is included
#
#=======================================================================


#=======================================================================
#
# macros for product specific options
#
# SECTION 1


#----------------------------------------- MAP-GSM options

PRDOPTS=-DMA -DCMFILE_REORG_1 -DMA_ACC_CMD_LINE 

# For No error class
#PRDOPTS=-DMA -DCMFILE_REORG_1 -DNO_ERRCLS

# Product options for portable build
PRDPTOPTS=$(PRDOPTS)

# Product options for acceptance test build
# Remove -DMA_ACC_CMD_LINE if your system doesn't support SGetOpts (command
# line inputs)

PRDACCOPTS=$(PRDOPTS) -DAU -DST -DSM -DSM_SS7 -DMATST -DMA_CUSTOM_HOOK  $(CMD_LINE)
#-DMAP_TEST_FOREVER 
#PRDACCOPTS=$(PRDOPTS) -DAU -DST -DSM -DSM_SS7 -DMATST
PRDINTOPTS=$(PRDOPTS) -DAU -DST -DSM -DMATST -DSM_SS7 -DMA_CUSTOM_HOOK -DMA_ACC_INC_ALL_TSTS  $(CMD_LINE)

# Product options for library build
PRDLIBOPTS=$(PRDOPTS) -DDBG4

#=======================================================================
#
# macros for specific OS
#
# SECTION 2

# MOS Product specific option define
MSCOPTS=-DMS -DCMFILE_REORG_1 

# MTSS Product specific option define
MTCOPTS = 

# Options for compilation with different OS's
# Default is for Portable build
# For acceptance test build either uncomment specific OS environment
# required or specify on command line
# Portable build options
PTOSOPTS="-DPORTVER"

# Options for acceptance test build with MOS Os
#MSOSOPTS="-DMSVER2"

# Options for acceptance test build with PSOS Os
PSOSOPTS="-DPS"

# Options for acceptance test build with VrTx Os
VXOSOPTS="-DVX"

# Options for acceptance test build with VxWorks Os
#VWOSOPTS="-DVW"
VWOSOPTS="-DSS_VW -DSS -DCMFILE_REORG_1"


# Options for acceptance test build with WINNT Os kernel build
WINOSOPTS="-DWINNT"
#WINOSOPTS="-DWINNT -DNS -DSS -DCMFILE_REORG_1"

# Linux specific options
LNXOSOPTS=-D_GNU_SOURCE -DSS_LINUX

# Options for acceptance test build with MTSS - MOS Multithread OS
MTOSOPTS=-DSS_MT -DSS -DCMFILE_REORG_1 -DSS_SINGLE_THREADED -D_REENTRANT -DDEBUGNOEXIT

# Options for library build with MTSS - MOS multithread OS
LIBOSOPTS="-DSS_MT -DSS  -DSS_SINGLE_THREADED"

# General OSOPTS. For portable build PTOSOPTS, for acceptante MTOSOPTS if using
# Trillium's MTSS solaris system services, for all others use one of the above
# or customer specific flag

#OSOPTS=$(PTOSOPTS)
OSOPTS=$(MTOSOPTS)
#for Linux MTSS
# OSOPTS=$(MTOSOPTS) $(LNXOSOPTS) 



#=======================================================================
#
# macro for output file name and makefile name 
#
BASENAME=ma

MAKENAME=$(BASENAME).mak

# default acceptance test for Solaris cc environment
BINACC="$(BASENAME)_acc"

# default portable for Solaris cc environment
BINPT="$(BASENAME)_pt"

# default library for Solaris cc environment
BINLIB="$(BASENAME)_lib.lib"


# Internal targets for the acceptance test build
MAKEACC=mkacc
ACCBIN=$(BASENAME)_acc
MAKEINT=mkint
INTBIN=$(BASENAME)_int

# Internal target for the portable build
MAKEPT=mkpt
PTBIN=$(BASENAME)_pt

# Internal target for the library build
MAKELIB=mklib
LIBBIN=$(BASENAME)_lib.lib


# Internal target for makedepend
DEPEND=depend

# Build targets for testing in different environments

# Build with the Solaris CC Compiler and linker
# Acceptance Test Build
BINSOLACC=sol_acc
BINSOLINT=sol_int
# Portable Build
BINSOLPT=sol_pt
# Library Build
BINSOLLIB=sol_lib


# Build with the GNU Compiler and linker on Solaris
# Acceptance Test Build
BINGNUACC=gnu_acc
BINGNUINT=gnu_int
# Portable Build
BINGNUPT=gnu_pt
# library Build
BINGNULIB=gnu_lib

# Build with the GNU Compiler and linker on Solaris
# Acceptance Test Build
BINGPPACC=gpp_acc
BINGPPINT=gpp_int

# Build with the GNU Compiler and linker on Solaris
# Acceptance Test Build
BINCPPACC=cpp_acc
BINCPPINT=cpp_int


# Build with the Insite Memory Check Programs - Acceptance Tests Only
# Acceptance Test Build
BININSITEACC=ins_acc
BININSITEINT=ins_int

# Build with the Visual C++ on Windows NT or Windows 95 (user space only)
# Acceptance Test Build
BINWINACC=win_acc
BINWININT=win_int
# Portable Build
BINWINPT=win_pt
# Library Build
BINWINLIB=win_lib

# Build with the Microtek MRI C Compiler on Solaris - portable only
BINMRIPT=mri_pt

# Build with the Solaris cross compiler for VxWorks Power PC
# Acceptance Test Build
BINPPCACC=ppc_acc
BINPPCINT=ppc_int

# Build with the GNU compiler and linker on Linux
# Acceptance Test Build
BINLNXACC=lnx_acc
BINLNXINT=lnx_int
# Portable Build
BINLNXPT=lnx_pt

#=======================================================================
#
# macro for directories and include paths
#
# SECTION 4
# Treat each of the following as examples and modify to specific product
# requirements



# common files directory 
CM_DIR=.

# MAP-GSM directory
MA_DIR=.

# MAP-GSM parent file directory
CA_DIR=.

# Sample Layer 4(TCAP) directory
MAL4_DIR=.

# Sample MAP-GSM user directory
MAAU_DIR=.

# common stack manager files directory 
SM_DIR=.

# MAP-GSM stack manager directory
MASM_DIR=.

# mos directory
# OS_DIR=
# OS_DIR=$(NS_DIR)

# Common SSI directory
SS_DIR=/u/prd/rtr/mt
#SS_DIR=$(VW_DIR)
#SS_DIR=$(NS_DIR)
#SS_DIR=.

# Solaris MTSS specific dir.
#MT_DIR=$(VW_DIR)
MT_DIR=/u/prd/rtr/mt

# VxWorks include directory
VW_DIR=/u/prd/rtr/vw
#VW_DIR=

# WIN Include directory
#NS_DIR=/u/prd/rtr/ns

# acceptance directory
MAACC_DIR=.

#build directory
SY_DIR=.

#include path

# portable include path
PT_INC_PATH="-I$(CM_DIR) -I$(MA_DIR)"

# library include path
LIB_INC_PATH="-I$(MA_DIR) -I$(SY_DIR) -I$(CM_DIR) -I$(SS_DIR) -I$(MT_DIR)"


# acceptance test include path
ACC_INC_PATH="-I$(MA_DIR) -I$(CM_DIR) -I$(MAACC_DIR) -I$(SM_DIR) \
	          -I$(MASM_DIR)  -I$(OS_DIR) -I$(MAL4_DIR) -I$(MAAU_DIR)\
              -I$(MT_DIR) -I$(SS_DIR)"

# acceptance test include path
#ACC_INC_PATH="-I$(MA_DIR) -I$(CM_DIR) -I$(MAACC_DIR) -I$(SM_DIR) \
#	          -I$(MASM_DIR)  -I$(OS_DIR) -I$(MAL4_DIR) -I$(MAAU_DIR)\
#              -I$(VW_DIR) -I$(VW_INC)"

# MOS - files include path
#MSINC_PATH=-I$(CM_DIR) -I$(OS_DIR)

# MTSS - files include path
MTINC_PATH=-I$(CM_DIR) -I$(SS_DIR) -I$(MT_DIR)

# library path - used for intgrated products and simulation env.
LIB_PATH=/tools/mri/lib
  
#=======================================================================
#
# macros for environments
#
# SECTION 5

  
#----------------------------------------- Sun C for SPARC
#
# These flags define the environment required to build an image on
# a Sun/SPARC workstation with Sun Spro C version 4.0 running
# Solaris 2.4
#
# For ANSI Compilation 
#SOLENV="-DSUNOS -DANSI"
#SOLCOPTS="-Xa -g "

# For non-ANSI Compilation 
SOLENV="-DSUNOS "
SOLCOPTS="-g "

SOLCC="cc"
SOLLD="cc"
SOLLIBLD="/usr/ccs/bin/ld"
SOLLOPTS="-o $(OUTNAME) -lpthread -lrt"

SOLLIBS=""
SOLLINT="lint"
SOLLNTOPTS="-c -F -p -v"

# for library compilation
SOLLIBOPTS="-r -o $(OUTNAME)"


# SUN SPARC Compiler With Insight---------------------------------------------
#
# These flags define the environment required to build an image on
# a Sun/SPARC workstation with SUN Spro C version 4.0 C compiler running
# Solaris 2.4 , with the INSURE(insight) run time memory check tool.
#

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -