📄 os2.mk
字号:
# # The contents of this file are subject to the Mozilla Public# License Version 1.1 (the "License"); you may not use this file# except in compliance with the License. You may obtain a copy of# the License at http://www.mozilla.org/MPL/# # Software distributed under the License is distributed on an "AS# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or# implied. See the License for the specific language governing# rights and limitations under the License.# # The Original Code is the Netscape Portable Runtime (NSPR).# # The Initial Developer of the Original Code is Netscape# Communications Corporation. Portions created by Netscape are # Copyright (C) 1998-2000 Netscape Communications Corporation. All# Rights Reserved.# # Contributor(s):# # Alternatively, the contents of this file may be used under the# terms of the GNU General Public License Version 2 or later (the# "GPL"), in which case the provisions of the GPL are applicable # instead of those above. If you wish to allow use of your # version of this file only under the terms of the GPL and not to# allow others to use your version of this file under the MPL,# indicate your decision by deleting the provisions above and# replace them with the notice and other provisions required by# the GPL. If you do not delete the provisions above, a recipient# may use your version of this file under either the MPL or the# GPL.# ## Configuration common to all (supported) versions of OS/2## OS_CFLAGS is the command line options for the compiler when# building the .DLL object files.# OS_EXE_CFLAGS is the command line options for the compiler# when building the .EXE object files; this is for the test# programs.# the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the# makefile for the pr/tests directory. ... Hack.# Specify toolset. Default to EMX.ifeq ($(MOZ_OS2_TOOLS),VACPP)XP_OS2_VACPP = 1elseifeq ($(MOZ_OS2_TOOLS),PGCC)XP_OS2_EMX = 1elseMOZ_OS2_TOOLS = EMXXP_OS2_EMX = 1endifendififeq ($(XP_OS2_EMX),1)MOZ_EMXTAG = $(subst .,,$(MOZ_OS2_EMX_OBJECTFORMAT))endif## On OS/2 we proudly support gbash...#SHELL := GBASH.EXECC = icc -q -DXP_OS2 -N10CCC = icc -q -DXP_OS2 -DOS2=4 -N10LINK = -ilinkAR = -ilib /noignorecase /nologo /Out:$(subst /,\\,$@)RANLIB = @echo RANLIBBSDECHO = @echo BSDECHOSTRIP = @echo STRIPNSINSTALL = nsinstallINSTALL = $(NSINSTALL)MAKE_OBJDIR = if test ! -d $(OBJDIR); then mkdir $(OBJDIR); fiIMPLIB = implib -nologo -noignorecaseFILTER = cppfilt -b -p -qRC = rc.exeGARBAGE =XP_DEFINE = -DXP_PCLIB_SUFFIX = libDLL_SUFFIX = dllOBJ_SUFFIX = objOS_CFLAGS = -W3 -Wcnd- -gm -gd+ -sd- -su4 -ge- -MpOS_EXE_CFLAGS = -W3 -Wcnd- -gm -gd+ -sd- -su4 -MpAR_EXTRA_ARGS = ifdef BUILD_OPTOPTIMIZER = -O+ -Oi DEFINES = -UDEBUG -U_DEBUG -DNDEBUGDLLFLAGS = -DLL -OUT:$@ -MAP:$(@:.dll=.map)EXEFLAGS = -PMTYPE:VIO -OUT:$@ -MAP:$(@:.exe=.map) -nologo -NOEOBJDIR_TAG = _OPTelseOPTIMIZER = -Ti+ -DEDEFINES = -DDEBUG -D_DEBUG -DDEBUGPRINTSDLLFLAGS = -DEBUG -DLL -OUT:$@ -MAP:$(@:.dll=.map)EXEFLAGS = -DEBUG -PMTYPE:VIO -OUT:$@ -MAP:$(@:.exe=.map) -nologo -NOEOBJDIR_TAG = _DBGLDFLAGS = -DEBUG endifDEFINES += -DOS2=4DEFINES += -D_X86_DEFINES += -D_PR_GLOBAL_THREADS_ONLY -DBSD_SELECT# Name of the binary code directoriesifdef MOZ_LITEOBJDIR_NAME = $(subst OS2,NAV,$(OS_CONFIG))_$(MOZ_OS2_TOOLS)$(MOZ_EMXTAG)$(OBJDIR_TAG).OBJelseOBJDIR_NAME = $(OS_CONFIG)_$(MOZ_OS2_TOOLS)$(MOZ_EMXTAG)$(OBJDIR_TAG).OBJendifOS_DLLFLAGS = -nologo -DLL -FREE -NOEifdef XP_OS2_VACPPOS_LIBS = so32dll.lib tcp32dll.libDEFINES += -DXP_OS2_VACPP -DTCPV40HDRSelseCC = gccCCC = gccLINK = gccRC = rc.exeFILTER = emxexpIMPLIB = emximp -o# Determine which object format to use. Two choices:# a.out and omf. We default to omf.ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT), A.OUT)AR = ar -q $@LIB_SUFFIX = aelseOMF_FLAG = -ZomfAR = emxomfar r $@LIB_SUFFIX = libendifOS_LIBS = -lsocket -lemxioDEFINES += -DXP_OS2 -DXP_OS2_EMX -DOS2EMX_PLAIN_CHAROS_CFLAGS = $(OMF_FLAG) -Wall -Wno-unused -ZmtdOS_EXE_CFLAGS = $(OMF_FLAG) -Wall -Wno-unused -ZmtdOS_DLLFLAGS = $(OMF_FLAG) -Zmt -Zdll -Zcrtdll -o $@ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT),OMF)EXEFLAGS += -Zlinker /DEendififdef BUILD_OPTOPTIMIZER = -O3DLLFLAGS = EXEFLAGS = -Zmtd -o $@elseOPTIMIZER = -g #-sDLLFLAGS = -g #-sEXEFLAGS = -g $(OMF_FLAG) -Zmtd -L$(DIST)/lib -o $@ # -sifeq ($(MOZ_OS2_EMX_OBJECTFORMAT),OMF)EXEFLAGS += -Zlinker /DEendifendifAR_EXTRA_ARGS =endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -