📄 makefile.xpt
字号:
## Copyright Notice# Copyright (c) Ericsson, IBM, Lotus, Matsushita Communication # Industrial Co., Ltd., Motorola, Nokia, Openwave Systems, Inc., # Palm, Inc., Psion, Starfish Software, Symbian, Ltd. (2001).# All Rights Reserved.# Implementation of all or part of any Specification may require # licenses under third party intellectual property rights, # including without limitation, patent rights (such a third party # may or may not be a Supporter). The Sponsors of the Specification # are not responsible and shall not be held responsible in any # manner for identifying or failing to identify any or all such # third party intellectual property rights.# # THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN ARE PROVIDED # ON AN "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND AND ERICSSON, IBM, # LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO. LTD, MOTOROLA, # NOKIA, PALM INC., PSION, STARFISH SOFTWARE AND ALL OTHER SYNCML # SPONSORS DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING # BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION # HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF # MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT # SHALL ERICSSON, IBM, LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO., # LTD, MOTOROLA, NOKIA, PALM INC., PSION, STARFISH SOFTWARE OR ANY # OTHER SYNCML SPONSOR BE LIABLE TO ANY PARTY FOR ANY LOSS OF # PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF # BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, # PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH # THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED # OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.# # The above notice and this paragraph must be included on all copies # of this document that are made.# ## Build the xpt components of the SyncML ToolkitSRC = ../..BIN = ../../../bin/winBINCOPY = $(subst /,\,$(BIN))MAKEOPTS = -f Makefile.xpt --no-print-directory# compiler to useCC = gcc# Flags that apply to everything built by this MakefileALL_CFLAGS = -g -DTRACE# Add -DTRACE_TO_STDOUT to the above options to send debugging output directly# to the screen instead of to smlLibPrint().#--------------------------------------------------# Flags that apply to the xpt.dllXPT_DLL_CFLAGS = -DBUILDING_XPT# This library isn't needed if -DTRACE_TO_STDOUT is specified as a compiler# option, which makes xpt.dll easier to test as a standalone entity.XPT_DLL_LIBS = -lsmlXPT_DLL_SRCPATH = $(SRC)/xpt/manager/all $(SRC)/xpt/manager/win \ $(SRC)/xpt/manager/inc $(SRC)/sml/inc \ $(SRC)/sml/inc/win $(SRC)/sml/lib/inc $(SRC)XPT_DLL_OFILES = xptcomm.o utilities.o# For other DLLs that want to include headers from xpt.dllXPT_INCLUDE_DIRS = $(SRC)/xpt/manager/inc $(SRC)/xpt/manager/win $(SRC)/sml/inc \ $(SRC)/sml/inc/win $(SRC)/sml/lib/inc $(SRC)#--------------------------------------------------# Flags that apply to the xpthttp.dllHTTP_DLL_SRCPATH = $(SRC)/xpt/bindings/http/win $(SRC)/xpt/bindings/http/all \ $(SRC)/xpt/bindings/common/win $(SRC)/xpt/bindings/common/all \ $(SRC)/xpt/bindings/common/tcp/win $(SRC)/xpt/bindings/common/tcp/all \ $(XPT_INCLUDE_DIRS)HTTP_DLL_OFILES = xpt-http.o httpserverports.o httptrans.o \ xpt-auth.o digcalc.o xpt-b64.o md5.o xpt-tcp.o \ xptmutex.o xptitcp.oHTTP_DLL_LIBS = -lxpt -lwsock32#--------------------------------------------------# Flags that apply to the xptwsp.dllWSP_DLL_SRCPATH = $(SRC)/xpt/bindings/wsp/win $(SRC)/xpt/bindings/wsp/all \ $(SRC)/xpt/bindings/wsp/inc \ $(XPT_INCLUDE_DIRS)WSP_DLL_OFILES = protocol.o xpt-wsp.o wspcbk.o wsphttp.o transact.o session.o \ settings.o wsputil.oWSP_DLL_LIBS = -lxpt -lxptawsp# The WSP binding is really supposed to be linked against an actual WAP stack.# Until we have one, link it against a skeleton stack.#-----# Flags that apply to the awsp.dll, a test-only skeleton WAP stack DLLAWSP_DLL_SRCPATH = $(SRC)/xpt/bindings/wsp/awsp/all \ $(SRC)/xpt/bindings/wsp/inc \ $(XPT_INCLUDE_DIRS)AWSP_DLL_OFILES = awsp.oAWSP_DLL_LIBS = -lxpt#--------------------------------------------------# Flags that apply to the iobex.dll, a general Obex library used by xptobex.dllIOBEX_DLL_SRCPATH = $(SRC)/xpt/bindings/obex/smlobex $(SRC) \ $(SRC)/xpt/bindings/common/tcp/win \ $(SRC)/xpt/bindings/common/tcp/allIOBEX_DLL_OFILES = debug.o handle.o header.o inetTransport.o irTransport.o \ obex.o object.o transport.o utils.o buffer.oIOBEX_DLL_LIBS = -lwsock32#--------------------------------------------------# Flags that apply to the xptobex.dllOBEX_DLL_SRCPATH = $(SRC)/xpt/bindings/obex/win \ $(SRC)/xpt/bindings/obex/smlobex \ $(XPT_INCLUDE_DIRS)OBEX_DLL_OFILES = obexbinding.oOBEX_DLL_LIBS = -liobex -lxpt#--------------------------------------------------ifdef TARGET# Assign the actual variables, depending on what target we're buildingCFLAGS = $(ALL_CFLAGS) $($(TARGET)_CFLAGS) $($(TARGET)_SRCPATH:%=-I%)LDLIBS = $($(TARGET)_LIBS)VPATH = $($(TARGET)_SRCPATH)OFILES = $($(TARGET)_OFILES)endif# Declare pseudo-targets, targets that don't exist as files.PHONY: all clean# Cause files partially created by failing commands to be erased:.DELETE_ON_ERROR:# Rulesall:# Create the bin dirs if they don't already exist. @if not exist $(subst /,\,$(dir $(BIN))) mkdir $(subst /,\,$(dir $(BIN))) @if not exist $(subst /,\,$(BIN)) mkdir $(subst /,\,$(BIN)) @$(MAKE) $(MAKEOPTS) $(BIN)/xpt.dll TARGET=XPT_DLL @$(MAKE) $(MAKEOPTS) $(BIN)/xpthttp.dll TARGET=HTTP_DLL @$(MAKE) $(MAKEOPTS) $(BIN)/xptawsp.dll TARGET=AWSP_DLL @$(MAKE) $(MAKEOPTS) $(BIN)/xptwsp.dll TARGET=WSP_DLL @$(MAKE) $(MAKEOPTS) $(BIN)/iobex.dll TARGET=IOBEX_DLL @$(MAKE) $(MAKEOPTS) $(BIN)/xptobex.dll TARGET=OBEX_DLL#--------------------------------------------------# xpt.dll - The xpt manager layerxpt.dll: $(OFILES) dllwrap --output-lib=$(@:%.dll=lib%.a) --dllname=$@ --driver-name=$(CC) \ -def ../../xpt/xpt.def \ -g -L$(BIN) $^ $(LDLIBS)$(BIN)/xpt.dll: xpt.dll copy $^ $(BINCOPY) >NUL copy $(^:%.dll=lib%.a) $(BINCOPY) >NUL#--------------------------------------------------# xpthttp.dll - The http transport implementationxpthttp.dll: $(OFILES) dllwrap --dllname=$@ --driver-name=$(CC) \ -def ../../xpt/xpthttp.def \ -g -L$(BIN) $^ $(LDLIBS)$(BIN)/xpthttp.dll: xpthttp.dll copy $^ $(BINCOPY) >NUL#--------------------------------------------------# xptwsp.dll - The wsp transport implementationxptwsp.dll: $(OFILES) dllwrap --dllname=$@ --driver-name=$(CC) \ -def ../../xpt/xptwsp.def \ -g -L$(BIN) $^ $(LDLIBS)$(BIN)/xptwsp.dll: xptwsp.dll copy $^ $(BINCOPY) >NUL#------------# xptawsp.dll - A non-working, skeleton wsp communication stack, for testingxptawsp.dll: $(OFILES) dllwrap --output-lib=$(@:%.dll=lib%.a) --dllname=$@ --driver-name=$(CC) \ -def ../../xpt/xptawsp.def -g -L$(BIN) $^ $(LDLIBS)$(BIN)/xptawsp.dll: xptawsp.dll copy $^ $(BINCOPY) >NUL copy $(^:%.dll=lib%.a) $(BINCOPY) >NUL#--------------------------------------------------# iobex.dll - Utility DLL used by the Obex transport implementationiobex.dll: $(OFILES) dllwrap --output-lib=$(@:%.dll=lib%.a) --dllname=$@ --driver-name=$(CC) \ -def ../../xpt/xptiobex.def -g -L$(BIN) $^ $(LDLIBS)$(BIN)/iobex.dll: iobex.dll copy $^ $(BINCOPY) >NUL copy $(^:%.dll=lib%.a) $(BINCOPY) >NUL#--------------------------------------------------# xptobex.dll - The obex transport implementationxptobex.dll: $(OFILES) dllwrap --dllname=$@ --driver-name=$(CC) \ -def ../../xpt/xptobex.def \ -g -L$(BIN) $^ $(LDLIBS)$(BIN)/xptobex.dll: xptobex.dll copy $^ $(BINCOPY) >NUL#--------------------------------------------------# cleanupclean: -del *.o *.dll *.a 2>NUL#--------------------------------------------------## dependencies## xpt.dll dependenciesxptcomm.o: xpt.h xptdef.h smldef.h define.h smlerr.h xptTransport.h \ xptcomm.h utilities.h xptport.h libutil.hutilities.o: xpt.h xptdef.h smldef.h define.h smlerr.h xptTransport.h \ utilities.h# xpthttp.dll dependenciesdigcalc.o: global.h md5.h xptport.h xptdef.h define.h digcalc.hhttpserverports.o: httpdefs.h xptdef.h xptport.h define.h xpt.h smldef.h \ smlerr.h httpserverports.h xpt-tcp.h xpttypes.h xptmutex.hhttptrans.o: httpdefs.h xptdef.h xptport.h define.h httptrans.h \ xptTransport.h xpt.h smldef.h smlerr.h xpttypes.h xpt-http.h \ xpt-tcp.h xpt-auth.hmd5.o: global.h md5.hxpt-auth.o: xptport.h xptdef.h define.h xpt-b64.h xpttypes.h digcalc.h \ xpt-auth.hxpt-b64.o: xptport.h xptdef.h define.h xpttypes.h xpt-b64.h xptib64.hxpt-http.o: xpttypes.h xptihttp.h xpt-tcp.h xpt-http.h xpt-auth.h \ xpt.h xptdef.h smldef.h define.h smlerr.h xptport.hxpt-tcp.o: xptitcp.h xpttypes.h xptport.h xptdef.h define.h xpt-tcp.hxptmutex.o: xptmutex.h# xptawsp.dll dependenciesawsp.o: awsp.h xptdef.h xptTransport.h xpt.h smldef.h define.h smlerr.h \ xptport.h# xptwsp.dll dependenciesprotocol.o: protocol.h xpt.h xptdef.h smldef.h define.h smlerr.h \ xptTransport.h awsp.h session.h wspdef.h settings.h \ wsphttp.h transact.h xptport.hsession.o: session.h awsp.h xptdef.h xptTransport.h xpt.h smldef.h \ define.h smlerr.h wspdef.h wsputil.h xptport.hsettings.o: settings.h awsp.h xptdef.h wsphttp.h xptTransport.h xpt.h \ smldef.h define.h smlerr.h wspdef.h wsputil.h xptport.htransact.o: transact.h awsp.h xptdef.h xpt.h smldef.h define.h smlerr.h \ wsphttp.h xptTransport.h wspdef.h wsputil.h xptiwsp.h \ xptport.hwspcbk.o: awsp.h xptdef.h xpt-wsp.h xptTransport.h xpt.h smldef.h define.h \ smlerr.h protocol.h session.h wspdef.h settings.h \ wsphttp.h transact.hwsphttp.o: wsphttp.h xptTransport.h xptdef.h xpt.h smldef.h define.h \ smlerr.h wspdef.h wsputil.h xptport.hwsputil.o: wsputil.h xptTransport.h xptdef.h xpt.h smldef.h define.h \ smlerr.h wspdef.h xptport.hxpt-wsp.o: xpt-wsp.h xptTransport.h xptdef.h xpt.h smldef.h define.h \ smlerr.h protocol.h awsp.h session.h wspdef.h \ settings.h wsphttp.h transact.h# iobex.dll dependenciesbuffer.o: buffer.h obex\constants.h utils.h iConstants.h debug.h obex\error.hdebug.o: debug.h iConstants.h obex\constants.h buffer.h utils.h obex\error.hhandle.o: handle.h obex\constants.h iConstants.h buffer.h utils.h debug.h \ obex\error.h transport.hheader.o: header.h obex\constants.h buffer.h utils.h iConstants.h debug.h \ obex\error.h handle.h object.hinetTransport.o: inetTransport.h iConstants.h obex\constants.h buffer.h \ utils.h debug.h obex\error.hirTransport.o: irTransport.h iConstants.h obex\constants.h buffer.h utils.h \ debug.h obex\error.hobex.o: obex\obex.h obex\constants.h obex\error.h iConstants.h buffer.h \ utils.h debug.h handle.h object.h header.h transport.hobject.o: object.h iConstants.h obex\constants.h buffer.h utils.h debug.h \ obex\error.h handle.h header.htransport.o: transport.h obex\constants.h iConstants.h buffer.h utils.h \ debug.h obex\error.h irTransport.h inetTransport.hutils.o: utils.h iConstants.h obex\constants.h buffer.h debug.h obex\error.h# xptobex.dll dependenciesobexbinding.o: obexbinding.h smldef.h define.h xptTransport.h xptdef.h xpt.h \ smlerr.h obex\obex.h obex\constants.h obex\error.h obexbindingerror.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -