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

📄 makefile.xpt

📁 SyncML ToolKits,学习syncml的参考工具包.非常好用.
💻 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/linuxMAKEOPTS = -f Makefile.xpt --no-print-directory# compiler to useCC = gcc# Flags that apply to everything built by this MakefileALL_CFLAGS = -g -fPIC -DTRACE -Wall# 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 libxpt.soXPT_DLL_CFLAGS  = -DBUILDING_XPT# The sml library isn't needed if -DTRACE_TO_STDOUT is specified as a compiler# option, which makes libxpt.so easier to test as a standalone entity.XPT_DLL_LIBS    = -ldl -lsmlXPT_DLL_SRCPATH = $(SRC)/xpt/manager/all $(SRC)/xpt/manager/linux \                  $(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 libxpt.soXPT_INCLUDE_DIRS = $(SRC)/xpt/manager/inc $(SRC)/xpt/manager/linux $(SRC)/sml/inc \                   $(SRC)/sml/inc/win $(SRC)/sml/lib/inc#--------------------------------------------------# Flags that apply to the libxpthttp.soHTTP_DLL_SRCPATH = $(SRC)/xpt/bindings/http/linux $(SRC)/xpt/bindings/http/all \                   $(SRC)/xpt/bindings/common/linux $(SRC)/xpt/bindings/common/all \                   $(SRC)/xpt/bindings/common/tcp/linux $(SRC)/xpt/bindings/common/tcp/all \                   $(XPT_INCLUDE_DIRS) $(SRC)HTTP_DLL_OFILES  = xpt-http.o httpserverports.o httptrans.o \                   xpt-auth.o digcalc.o xpt-b64.o md5.o xpt-tcp.o \                   xptmutex.oHTTP_DLL_LIBS    = -lxpt#--------------------------------------------------# Flags that apply to the libxptwsp.soWSP_DLL_SRCPATH = $(SRC)/xpt/bindings/wsp/win $(SRC)/xpt/bindings/wsp/all \                  $(SRC)/xpt/bindings/wsp/inc \                  $(XPT_INCLUDE_DIRS) $(SRC)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 libawsp.so, 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 libiobex.so, a general Obex library used by libxptobex.soIOBEX_DLL_SRCPATH = $(SRC)/xpt/bindings/obex/smlobex $(SRC) \                    $(SRC)/xpt/bindings/common/tcp/linux \                    $(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.o#--------------------------------------------------# Flags that apply to the libxptobex.soOBEX_DLL_SRCPATH = $(SRC)/xpt/bindings/obex/win \                   $(SRC)/xpt/bindings/obex/smlobex \                   $(XPT_INCLUDE_DIRS) $(SRC)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# All shared objects in this Makefile are built with the same basic options.LDFLAGS = -shared -g -L$(BIN)# 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.	@-mkdir -p $(BIN)	@$(MAKE) $(MAKEOPTS) $(BIN)/libxpt.so TARGET=XPT_DLL	@$(MAKE) $(MAKEOPTS) $(BIN)/libxpthttp.so TARGET=HTTP_DLL	@$(MAKE) $(MAKEOPTS) $(BIN)/libxptawsp.so TARGET=AWSP_DLL	@$(MAKE) $(MAKEOPTS) $(BIN)/libxptwsp.so TARGET=WSP_DLL	@$(MAKE) $(MAKEOPTS) $(BIN)/libiobex.so TARGET=IOBEX_DLL	@$(MAKE) $(MAKEOPTS) $(BIN)/libxptobex.so TARGET=OBEX_DLL#--------------------------------------------------# libxpt.so      - The xpt manager layerlibxpt.so: $(OFILES)	$(LINK.o) -o$@ $^ $(LDLIBS)$(BIN)/libxpt.so: libxpt.so	cp $^ $(BIN)#--------------------------------------------------# libxpthttp.so  - The http transport implementationlibxpthttp.so: $(OFILES)	$(LINK.o) -o$@ $^ $(LDLIBS)$(BIN)/libxpthttp.so: libxpthttp.so	cp $^ $(BIN)#--------------------------------------------------# libxptwsp.so   - The wsp transport implementationlibxptwsp.so: $(OFILES)	$(LINK.o) -o$@ $^ $(LDLIBS)$(BIN)/libxptwsp.so: libxptwsp.so	cp $^ $(BIN)#------------# libxptawsp.so  - A non-working, skeleton wsp communication stack, for testinglibxptawsp.so: $(OFILES)	$(LINK.o) -o$@ $^ $(LDLIBS)$(BIN)/libxptawsp.so: libxptawsp.so	cp $^ $(BIN)#--------------------------------------------------# libiobex.so - Utility DLL used by the Obex transport implementationlibiobex.so: $(OFILES)	$(LINK.o) -o$@ $^ $(LDLIBS)$(BIN)/libiobex.so: libiobex.so	cp $^ $(BIN)#--------------------------------------------------# libxptobex.so  - The obex transport implementationlibxptobex.so: $(OFILES)	$(LINK.o) -o$@ $^ $(LDLIBS)$(BIN)/libxptobex.so: libxptobex.so	cp $^ $(BIN)#--------------------------------------------------# cleanupclean:	-rm *.o *.so 2>/dev/null#--------------------------------------------------## dependencies## libxpt.so dependenciesxptcomm.o:     xpt.h xptdef.h smldef.h define.h smlerr.h xptTransport.h \               xptcomm.h utilities.h xptport.hutilities.o:   xpt.h xptdef.h smldef.h define.h smlerr.h xptTransport.h \               utilities.h# libxpthttp.so 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# libxptawsp.so dependenciesawsp.o:        awsp.h xptdef.h xptTransport.h xpt.h smldef.h define.h smlerr.h \               xptport.h# libxptwsp.so 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# libiobex.so 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# libxptobex.so 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 + -