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

📄 ma.mak

📁 gsm map协议源代码
💻 MAK
📖 第 1 页 / 共 4 页
字号:
# For ANSI Compilation
INSENV="-DSUNOS -DANSI -DPURE "
INSCOPTS="-Xa -g -insure++ -uninit_min_size=1"
 
# For non-ANSI Compilation
#INSENV=-DSUNOS -DPURE
#INSCOPTS="-g"
 
INSCC="insure"
INSLD="insure"
INSLOPTS="-o $(OUTNAME)"
INSLIBS="-lpthread -lposix4"
INSLINT="lint"
INSLNTOPTS="-c -F -p -v"


#----------------------------------------- GNU gcc for SPARC 
#
# These flags define the environment required to build an image on
# a Sun/SPARC workstation with GNU C version 2.5.7 (or greater) running
# Solaris 2.4
#
# For ANSI Compilation
GNUENV="-DSUNOS -DANSI "

# For non-ANSI Compilation
#GNUENV="-DSUNOS"

GNUCC=gcc
GNULD=gcc
GNULIBLD="ld"
GNUCOPTS="-g3 -Wall -fno-strict-aliasing -Wno-comment -pipe -Wshadow -Wcast-qual  \
	      -Wstrict-prototypes -Wmissing-prototypes"

#g++ options
#GNUCOPTS="-g3 -Wall -fno-strict-aliasing -Wno-comment -pipe -Wcast-qual \
#          -Wstrict-prototypes -Wmissing-prototypes"

GNULOPTS="-o $(OUTNAME) -lpthread -lposix4"
GNULIBS=""
GNULINT="lint"
GNULNTOPTS="-c -F -p -v"

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

#----------------------------------------- c++ compiler
#
# These flags define the environment required to build an image on
# a Sun/SPARC workstation with GNU C version 2.5.7 (or greater) running
# Solaris 2.4
#
CPPENV="-DSUNOS -DANSI "
CPPCC=c++
CPPLD=c++
CPPCOPTS="-g -Wall -fno-strict-aliasing -Wno-comment -pipe -Wcast-qual  \
	      -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls"
CPPLOPTS="-o $(OUTNAME) -lpthread -lposix4"
CPPLIBS=""
CPPLINT="lint"
CPPLNTOPTS="-c -F -p -v"

#----------------------------------------- g++ compiler
#
# These flags define the environment required to build an image on
# a Sun/SPARC workstation with GNU C version 2.5.7 (or greater) running
# Solaris 2.4
#
GPPENV="-DSUNOS -DANSI "
GPPCC=g++
GPPLD=g++
GPPCOPTS="-g -Wall -fno-strict-aliasing -Wno-comment -pipe -Wcast-qual  \
	      -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls"
GPPLOPTS="-o $(OUTNAME) -lpthread -lposix4"
GPPLIBS=""
GPPLINT="lint"
GPPLNTOPTS="-c -F -p -v"

# GNU gcc compiler for Linux------------------------------------------
#
# These flags define the environment required to build an image on
# a Linux workstation with GNU C version 2.5.7 (or greater)
#
# For ANSI Compilation
LNXENV="-DSUNOS -DANSI"

# For non-ANSI Compilation
#LNXENV="-DSUNOS"

LNXCC="gcc"
LNXLD="gcc"
LNXCOPTS="-Os -g3 -ansi -Wall -fno-strict-aliasing -Wno-comment -pipe -Wshadow -Wcast-qual \
	-Wstrict-prototypes -Wmissing-prototypes -pedantic \
	-Wimplicit -Wunused"
LNXLOPTS="-o $(OUTNAME) -lpthread -lnsl -lrt"
LNXLIBS=""
LNXLINT="lint"
LNXLNTOPTS="-c -F -p -v"


# MRI mcc68k compiler for 68040-----------------------------------------
#
# These flags define the environment required to build an image for
# a Motorola MVME162 Board (68040) with Microtec Research C version 4.4
# for a portable environment.
#
# For ANSI Compilation
MRIENV="-DELVIS_68040 -DANSI -DNOERRCHK -DNO_ERRCLS -DNOCONAVL -DSTDIO_INCLD"
#MRIENV="-DELVIS_68040 -DANSI  -DNOCONAVL -DSTDIO_INCLD"
 
# For non-ANSI Compilation
#MRIENV="-DELVIS_68040 -DNOERRCHK -DNO_ERRCLS -DNOCONAVL"
 
MRICC="mcc68k"
MRILD="mcc68k"
MRICOPTS="-p68040 -H -A -v -Fsm -O -Ob -Oe -Ot -nKc -nKm  -Mcp -Mdp -Ml -Gf"
MRILOPTS="-e$(OUTNAME).lnk -Wl,\"-m > $(OUTNAME).map -o $(OUTNAME).vcs -F s\""
MRILOPTS="-Wl,\"-m > $(OUTNAME).map -o $(OUTNAME).vcs -F s\""
MRILIBS="$(LIB_PATH)/mcc68kpc040.lib"
MRILINT=""
MRILNTOPTS=""
 
 
# Microsoft Visual C++ for Win 95/NT------------------------------------
#
# These flags define the environment required to build an image for
# a Windows '95 or Windows NT environment
#
#
# For ANSI Compilation
WINENV="-DWIN32 -DANSI -DWIN2K -DWIN32_LEAN_AND_MEAN"
 
# For non-ANSI Compilation
#WINENV="-DWIN32"
 
WINCC="cl"
WINLD="cl"
WINCOPTS="-Od -W3 -Zi -Yd"
#WINLOPTS="-o $(OUTNAME) -F25000"
WINLOPTS="-o $(OUTNAME) -F25000 -Zd"
WINLIBS="ws2_32.lib -link -debug:full -debugtype:cv"
WINLINT=""
WINLNTOPTS=""

# for library compilation
WINLIBOPTS="-r -o $(OUTNAME)"
 
# ccppc cross compiler on Solaris for Vx Works on PPC--------------------
# These flags define the environment required to build an image on a Sun/SPARC
# workstation with ccppc v. 2.7.2 running Solaris 2.5.1
#
# For ANSI Compilation
PPCENV="-DCPU=PPC860 -DCCPPC -DANSI -DPQUICCADS"
#PPCENV=-DPCORE -DCPU=PPC604 -DANSI -DCCPPC
PPCCOPTS="-mcpu=860 -msoft-float -fvolatile -fno-builtin -Wall -fno-strict-aliasing \
              -Wno-comment -ansi -pedantic -pipe -nostdinc -Wshadow \
              -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes"

PPCCC="/tools/wind/host/sun4-solaris2/bin/ccppc"
PPCLD="/tools/wind/host/sun4-solaris2/bin/ldppc"
#PPCLOPTS=-r -Map $(OUTNAME).map -o $(OUTNAME)
PPCLOPTS="-r -e vwMain -Map $(OUTNAME).map -o $(OUTNAME)"
PPCLIBS=
PPCLINT=
PPCLNTOPTS=

# Microsoft Visual C++ for DOS------------------------------------------
#
# These flags define the environment required to build an image for
# a DOS environment
#
# This environment is TBD
#
# For ANSI Compilation
DOSENV="-DMSC60 -DDOS -DANSI"
 
# For non-ANSI Compilation
#DOSENV="-DMSC60 -DDOS"
 
DOSCC="cl"
DOSLD="cl"
DOSCOPTS="-Od -W3 -Zi -Yd -Gx- -Gd -Gy"
DOSLOPTS="@$(OUTNAME).lnk /ST:25000 /CO /NOI /NOE"
DOSLIBS=""
DOSLINT=""
DOSLNTOPTS=""
# legacy flag for x86 machines
#
# define if required (only for DOS!).
 
#
# -AH -- huge model
# -AL -- large model
# -AS -- small model
#
MODEL=
 
 
# Actual Build Environment----------------------------------------------
#
# This is the actual environment used, set it appropriately
# (default Solaris)
# Uncomment this for default compilation under the Solaris
# environment for portable build and the acceptance test build
#ENV=$(SOLENV)
#CC=$(SOLCC)
#LD=$(SOLLD)
#COPTS=$(SOLCOPTS)
#LOPTS=$(SOLLOPTS)
#LIBS=$(SOLLIBS)
#LINT=$(SOLLINT)
#LNTOPTS=$(SOLLNTOPTS)
 
# object file suffix----------------------------------------------------
#
# this defaults to 'o' for most UNIX based systems
# this can be set to 'obj' for DOS/Windows/NT platforms
#
SOL_OBJ_SUFFIX=o
NS_OBJ_SUFFIX=obj
OBJ=$(SOL_OBJ_SUFFIX)
 


#=======================================================================
#
# macros for compile time options
#
 
# portable options
CPTOPTS=$(MODEL) $(ENV) $(COPTS) $(INC_PATH) $(OSOPTS)
 
# acceptance test options - OSOPTS should be set to required environment
COSOPTS=$(MODEL) $(ENV) $(COPTS) $(INC_PATH) $(OSOPTS)
 
# Combined environment, OS, compiler options and include path
CENVOPTS=$(MODEL) $(ENV) $(COPTS) $(INC_PATH) $(OSOPTS)
 
# product options for portable build
CPRDPTOPTS="$(CENVOPTS) $(PRDPTOPTS)"
 
# product options for library build
CPRDLIBOPTS="$(CENVOPTS) $(PRDLIBOPTS)"

# product options for acceptance test build
CPRDACCOPTS="$(COSOPTS) $(PRDACCOPTS)"
CPRDINTOPTS="$(COSOPTS) $(PRDINTOPTS)"
 
# Common Stack Manager File Options for portable build
CSMPTOPTS="$(CENVOPTS) $(PRDOPTS)"
 
# Common Stack Manager File Options for library build
CSMLIBOPTS="$(CENVOPTS) $(PRDOPTS)"

# Stack Manager file option for acceptance test build
SMOPTS = -DSM_SS7
 
# Common Stack Manager File Options for acceptance test build
CSMACCOPTS="$(CENVOPTS) $(PRDOPTS) $(SMOPTS)"
 
# MTSS options - for use with the MOS files in test environment
CMTOPTS=$(CENVOPTS) $(OSOPTS)
 

#=======================================================================
#
# macros for depend and lint options
#
 
# depend acceptance test
DEPOPTS_ACC="$(PRDACCOPTS)"
DEPOPTS_INT="$(PRDINTOPTS)"
 
# depend portable test
DEPOPTS_PT="$(PRDPTOPTS)"
 

#=======================================================================
#
# macros for hardcoded dependencies 
#
# SECTION 6


# 
# The following are enabled  by default since we assume makedepend
# is not available. If makedepend is  available in your environemnt
# uncomment out this section.
# 

# environment 
ENV_INC=$(CM_DIR)/envdep.h $(CM_DIR)/envind.h $(CM_DIR)/envopt.h

# system service 
SSI_INC=$(CM_DIR)/ssi.h $(CM_DIR)/ssi.x

# general 
GEN_INC=$(CM_DIR)/gen.h $(CM_DIR)/gen.x

# all system includes 
SYS_INC=$(ENV_INC) $(GEN_INC) $(SSI_INC)

# Product layer management - LMA includes
LMA_INC=$(CM_DIR)/lma.h $(CM_DIR)/lma.x

# Product Upper Interface - MAT includes 
MAT_INC=$(CM_DIR)/mat.h $(CM_DIR)/mat.x

# Product Lower Interface - STU includes
STU_INC=$(CM_DIR)/stu.h $(CM_DIR)/stu.x

# SHT Interface - SHT includes
SHT_INC=$(CM_DIR)/sht.h $(CM_DIR)/sht.x

# common function library includes
CM_INC=$(CM_DIR)/cm_ss7.h $(CM_DIR)/cm_ss7.x \
	   $(CM_DIR)/cm5.x    $(CM_DIR)/cm5.h    \
	   $(CM_DIR)/cm_lib.x $(CM_DIR)/cm_err.h 

# message functions - common ASN.1 encoder/decoder
MAMF_INC=$(MA_DIR)/ma_mf.h 

# gsm layer includes
MA_INC=$(MA_DIR)/ma.h $(MA_DIR)/ma.x $(MA_DIR)/ma_err.h 

# gsm acceptance test includes 
MAACC_INC= $(MA_DIR)/ma_acc.x $(MA_DIR)/ma_acc.h

# ALL Product includes 
MAALL_INC=$(LMA_INC) $(MAT_INC) $(MA_INC) \
          $(STU_INC) $(MAMF_INC) $(SHT_INC)


# sample acceptance tests all includes
MAACCALL_INC=$(MAALL_INC) $(MAACC_INC)

# OS specific includes - MOS includes
#MS_INC=$(OS_DIR)/ms.h $(OS_DIR)/ms.x $(OS_DIR)/ms_err.h
#MS_INC

# System Services common
SS_INC=$(SS_DIR)/ss_dep.h $(SS_DIR)/ss_dep.x $(SS_DIR)/ss_drvr.x \
       $(SS_DIR)/ss_err.h $(SS_DIR)/ss_gen.h $(SS_DIR)/ss_gen.x \
       $(SS_DIR)/ss_mem.h $(SS_DIR)/ss_mem.x $(SS_DIR)/ss_msg.h \
       $(SS_DIR)/ss_msg.x $(SS_DIR)/ss_queue.h $(SS_DIR)/ss_queue.x \
       $(SS_DIR)/ss_strm.h $(SS_DIR)/ss_strm.x $(SS_DIR)/ss_task.h \
       $(SS_DIR)/ss_task.x $(SS_DIR)/ss_timer.x $(SS_DIR)/ss_gen.x \
       $(SS_DIR)/ss_queue.x



# include path VxWorks environment
VW_INC=/tools/vxworks/ppc/target/h


#=======================================================================
#
# macros for source and object files
# SECTION 7
#

#----------------------------------------- acceptance test source
MAACC_SRCS= \
	$(MAACC_DIR)/ma_acc6.c \
	$(MAACC_DIR)/ma_acc5.c \
	$(MAACC_DIR)/ma_acc4.c \
	$(MAACC_DIR)/ma_acc3.c \
	$(MAACC_DIR)/ma_acc2.c \
	$(MAACC_DIR)/ma_acc1.c 

#----------------------------------------- acceptance test objects
MAACC_OBJS= \
	$(SY_DIR)/ma_acc6.$(OBJ) \
	$(SY_DIR)/ma_acc4.$(OBJ) \
	$(SY_DIR)/ma_acc5.$(OBJ) \
	$(SY_DIR)/ma_acc3.$(OBJ) \
	$(SY_DIR)/ma_acc2.$(OBJ) \
	$(SY_DIR)/ma_acc1.$(OBJ)

#----------------------------------------- acceptance test objects
MAINT_SRCS= \
	$(MAACC_DIR)/ma_int3.c \
	$(MAACC_DIR)/ma_int2.c \
	$(MAACC_DIR)/ma_int1.c \
	$(MAACC_DIR)/ma_int.c 

MAINT_OBJS= \
	$(SY_DIR)/ma_int3.$(OBJ) \
	$(SY_DIR)/ma_int2.$(OBJ) \
	$(SY_DIR)/ma_int1.$(OBJ) \
	$(SY_DIR)/ma_int.$(OBJ) 

#----------------------------------------- layer 4 source
MAL4_SRCS= \
	$(MAL4_DIR)/layer4.c \
	$(MAL4_DIR)/l4_ptui.c \
	$(MAL4_DIR)/l4_ex_ms.c

#----------------------------------------- layer 4 objects
MAL4_OBJS= \
	$(SY_DIR)/layer4.$(OBJ) \
	$(SY_DIR)/l4_ptui.$(OBJ) \
	$(SY_DIR)/l4_ex_ms.$(OBJ)

#----------------------------------------- MAP user source
MAAU_SRCS= \
	$(MAAU_DIR)/layerapp.c \
	$(MAAU_DIR)/au_ptli.c \
	$(MAAU_DIR)/au_ex_ms.c

#----------------------------------------- MAP user objects
MAAU_OBJS= \
	$(SY_DIR)/layerapp.$(OBJ) \
	$(SY_DIR)/au_ptli.$(OBJ) \
	$(SY_DIR)/au_ex_ms.$(OBJ)

#----------------------------------------- SH source
MASH_SRCS= \
	$(MAACC_DIR)/sh_ex_ms.c \
	$(MAACC_DIR)/sh_bdy1.c

#----------------------------------------- SH objects
MASH_OBJS= \
	$(SY_DIR)/sh_ex_ms.$(OBJ) \
	$(SY_DIR)/sh_bdy1.$(OBJ)

#----------------------------------------- gsm  source
MA_SRCS= \
	$(MA_DIR)/ma_id.c   \
	$(MA_DIR)/ma_bdy1.c \
	$(MA_DIR)/ma_bdy2.c \
	$(MA_DIR)/ma_bdy3.c \
	$(MA_DIR)/ma_bdy4.c \
	$(MA_DIR)/ma_mf.c   \
	$(MA_DIR)/ma_db1.c  \
	$(MA_DIR)/ma_db2.c  \
	$(MA_DIR)/ma_ptli.c \
	$(MA_DIR)/ma_ptui.c \
	$(MA_DIR)/ma_ptmi.c 

MA_SRCS1= \
	$(MA_DIR)/ma_ex_ms.c

#----------------------------------------- gsm objects
MA_OBJS= \
	$(SY_DIR)/ma_id.$(OBJ)   \
	$(SY_DIR)/ma_bdy1.$(OBJ) \
	$(SY_DIR)/ma_bdy2.$(OBJ) \
	$(SY_DIR)/ma_bdy3.$(OBJ) \
	$(SY_DIR)/ma_bdy4.$(OBJ) \

⌨️ 快捷键说明

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