From: Kidong L. <bri...@us...> - 2004-06-12 04:14:34
|
Update of /cvsroot/syncml-ctoolkit/toolkit/src/bld/palm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17386/bld/palm Added Files: Makefile Makefile.xpt Log Message: Added files to build on PalmOS/prc-tools Fixed compilation errors on PalmOS/prc-tools --- NEW FILE: Makefile --- # # 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. # # # delete files RM = rm -f # compiler to use CC = m68k-palmos-gcc # some flags CFLAGS = -g -Wall # # Various targets to build. # BIN = ../../../bin/palm SML_NAME = $(BIN)/libsml.so # # where to find the includes and objects # SRC = ../../sml INCS = -I$(SRC)/.. \ -I$(SRC)/inc \ -I$(SRC)/inc/palm \ -I$(SRC)/lib/inc \ -I$(SRC)/mgr/inc \ -I$(SRC)/wsm/inc \ -I$(SRC)/xlt/all \ -I$(SRC)/xlt/inc VPATH = ../.. \ $(SRC)/inc \ $(SRC)/inc/palm \ $(SRC)/lib/inc \ $(SRC)/lib/all \ $(SRC)/mgr/inc \ $(SRC)/mgr/all \ $(SRC)/mgr/palm \ $(SRC)/wsm/inc \ $(SRC)/wsm/all \ $(SRC)/wsm/palm \ $(SRC)/xlt/inc \ $(SRC)/xlt/all # # all objects for the shared object # SML_OBJS = libstr.o \ libutil.o \ libmem.o \ mgr.o \ mgrcmdbuilder.o \ mgrcmddispatcher.o \ mgrinstancelist.o \ mgrinstancemgr.o \ mgrutil.o \ wsm.o \ wsm_sm.o \ xlttags.o \ xltdec.o \ xltdecwbxml.o \ xltdecxml.o \ xltutilstack.o \ xltenc.o \ xltencwbxml.o \ xltencxml.o \ xltenccom.o \ xltmetinf.o \ xltdevinf.o # # create shared object # $(SML_NAME) : $(SML_OBJS) @mkdir -p $(BIN) m68k-palmos-ld $(SML_OBJS) -o $(SML_NAME) @echo SML build done. # # dependencies # libstr.o : smldef.h define.h libstr.h libmem.h libmem.o : smldef.h libutil.o : smldef.h define.h smlerr.h sml.h libmem.h libutil.h \ mgr.h smldtd.h wsm.h wsm_sm.h mgr.o : smldef.h define.h sml.h smldtd.h smlerr.h libmem.h \ wsm.h wsm_sm.h mgr.h mgrcmdbuilder.o : smldef.h define.h xltenc.h smlerr.h xltenccom.h \ smldtd.h mgr.h sml.h wsm.h wsm_sm.h mgrcmddispatcher.o : smldef.h define.h smldtd.h smlerr.h libmem.h sml.h \ libutil.h xltdec.h mgr.h wsm.h wsm_sm.h mgrinstancelist.o : smlerr.h libmem.h smldef.h define.h mgr.h sml.h \ smldtd.h wsm.h wsm_sm.h mgrinstancemgr.o : smldef.h define.h sml.h smldtd.h smlerr.h libmem.h \ wsm.h wsm_sm.h mgr.h mgrutil.o : smldef.h sml.h smldtd.h smlerr.h define.h\ smlmetinfdtd.h wsm.o : wsm.h smlerr.h define.h libutil.h wsm_sm.h sml.h \ smldtd.h smldef.h libmem.h libstr.h mgr.h wsm_sm.o : wsm_sm.h smldef.h define.h libutil.h smlerr.h \ mgr.h sml.h smldtd.h wsm.h xlttags.o : xlttags.h smlerr.h libmem.h libutil.h libstr.h xltdec.o : xlttags.h define.h smldtd.h smlerr.h xltdec.h \ xltdeccom.h xltutilstack.h smldef.h libutil.h \ libmem.h libstr.h xlttagtbl.h xltmetinf.h xltdecwbxml.o : xlttags.h define.h smldtd.h smlerr.h xltdeccom.h \ xltutilstack.h smldef.h libutil.h libmem.h libstr.h xltdecxml.o : xltdeccom.h smldef.h define.h smldtd.h xlttags.h \ libutil.h libmem.h libstr.h smlerr.h xltutilstack.o : xltdeccom.h smldef.h define.h smldtd.h xlttags.h \ libutil.h xltutilstack.h smlerr.h libmem.h xltenc.o : xltenc.h smlerr.h xltenccom.h smldef.h define.h \ smldtd.h xltencwbxml.h xlttags.h xltencxml.h \ libstr.h libmem.h libutil.h smlmetinfdtd.h xltmetinf.h\ xlttagtbl.h xltencwbxml.o : xltencwbxml.h smlerr.h smldef.h define.h smldtd.h \ xlttags.h xltenccom.h libmem.h libstr.h libutil.h xltencxml.o : xltencxml.h smlerr.h xlttags.h smldtd.h smldef.h \ define.h xltenccom.h libstr.h libmem.h libutil.h xltenccom.o : xltenccom.h smldef.h define.h smlerr.h libmem.h \ libutil.h xltmetinf.o : smldef.h smldtd.h smlerr.h smlmetinfdtd.h define.h\ libmem.h libstr.h libutil.h xltdeccom.h xltmetinf.h\ xlttags.h xlttagtbl.h xltdec.h xltenc.h xltdevinf.o : smldevinfdtd.h xlttags.h xlttagtbl.h xltenc.h \ xltenc.h xltencwbxml.h libstr.h smlerr.h smldtd.h\ libmem.h libutil.h ## # default rule for compiling files # .c.o: $(CC) -c $(CFLAGS) $(INCS) -o $@ $< .PHONY: all sml xpt clean # # targets # all : sml xpt sml : $(SML_NAME) xpt : sml @$(MAKE) -f Makefile.xpt --no-print-directory clean : . @$(RM) *.o @$(MAKE) -f Makefile.xpt --no-print-directory clean --- NEW FILE: 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 Toolkit SRC = ../.. BIN = ../../../bin/palm MAKEOPTS = -f Makefile.xpt --no-print-directory # compiler to use CC = gcc # Flags that apply to everything built by this Makefile ALL_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.so XPT_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 -lsml XPT_DLL_SRCPATH = $(SRC)/xpt/manager/all $(SRC)/xpt/manager/palm \ $(SRC)/xpt/manager/inc $(SRC)/sml/inc \ $(SRC)/sml/inc/palm $(SRC)/sml/lib/inc $(SRC) XPT_DLL_OFILES = xptcomm.o utilities.o # For other DLLs that want to include headers from libxpt.so XPT_INCLUDE_DIRS = $(SRC)/xpt/manager/inc $(SRC)/xpt/manager/palm $(SRC)/sml/inc \ $(SRC)/sml/inc/palm $(SRC)/sml/lib/inc #-------------------------------------------------- # Flags that apply to the libxpthttp.so HTTP_DLL_SRCPATH = $(SRC)/xpt/bindings/http/palm $(SRC)/xpt/bindings/http/all \ $(SRC)/xpt/bindings/common/palm $(SRC)/xpt/bindings/common/all \ $(SRC)/xpt/bindings/common/tcp/palm $(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.o HTTP_DLL_LIBS = -lxpt #-------------------------------------------------- # Flags that apply to the libxptwsp.so WSP_DLL_SRCPATH = $(SRC)/xpt/bindings/wsp/palm $(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.o WSP_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 DLL AWSP_DLL_SRCPATH = $(SRC)/xpt/bindings/wsp/awsp/all \ $(SRC)/xpt/bindings/wsp/inc \ $(XPT_INCLUDE_DIRS) AWSP_DLL_OFILES = awsp.o AWSP_DLL_LIBS = -lxpt #-------------------------------------------------- # Flags that apply to the libiobex.so, a general Obex library used by libxptobex.so IOBEX_DLL_SRCPATH = $(SRC)/xpt/bindings/obex/smlobex $(SRC) \ $(SRC)/xpt/bindings/common/tcp/palm \ $(SRC)/xpt/bindings/common/tcp/all IOBEX_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.so OBEX_DLL_SRCPATH = $(SRC)/xpt/bindings/obex/palm \ $(SRC)/xpt/bindings/obex/smlobex \ $(XPT_INCLUDE_DIRS) $(SRC) OBEX_DLL_OFILES = obexbinding.o OBEX_DLL_LIBS = -liobex -lxpt #-------------------------------------------------- ifdef TARGET # Assign the actual variables, depending on what target we're building CFLAGS = $(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: # Rules all: # 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 layer libxpt.so: $(OFILES) $(LINK.o) -o$@ $^ $(LDLIBS) $(BIN)/libxpt.so: libxpt.so cp $^ $(BIN) #-------------------------------------------------- # libxpthttp.so - The http transport implementation libxpthttp.so: $(OFILES) $(LINK.o) -o$@ $^ $(LDLIBS) $(BIN)/libxpthttp.so: libxpthttp.so cp $^ $(BIN) #-------------------------------------------------- # libxptwsp.so - The wsp transport implementation libxptwsp.so: $(OFILES) $(LINK.o) -o$@ $^ $(LDLIBS) $(BIN)/libxptwsp.so: libxptwsp.so cp $^ $(BIN) #------------ # libxptawsp.so - A non-working, skeleton wsp communication stack, for testing libxptawsp.so: $(OFILES) $(LINK.o) -o$@ $^ $(LDLIBS) $(BIN)/libxptawsp.so: libxptawsp.so cp $^ $(BIN) #-------------------------------------------------- # libiobex.so - Utility DLL used by the Obex transport implementation libiobex.so: $(OFILES) $(LINK.o) -o$@ $^ $(LDLIBS) $(BIN)/libiobex.so: libiobex.so cp $^ $(BIN) #-------------------------------------------------- # libxptobex.so - The obex transport implementation libxptobex.so: $(OFILES) $(LINK.o) -o$@ $^ $(LDLIBS) $(BIN)/libxptobex.so: libxptobex.so cp $^ $(BIN) #-------------------------------------------------- # cleanup clean: -rm *.o *.so 2>/dev/null #-------------------------------------------------- # # dependencies # # libxpt.so dependencies xptcomm.o: xpt.h xptdef.h smldef.h define.h smlerr.h xptTransport.h \ xptcomm.h utilities.h xptport.h utilities.o: xpt.h xptdef.h smldef.h define.h smlerr.h xptTransport.h \ utilities.h # libxpthttp.so dependencies digcalc.o: global.h md5.h xptport.h xptdef.h define.h digcalc.h httpserverports.o: httpdefs.h xptdef.h xptport.h define.h xpt.h smldef.h \ smlerr.h httpserverports.h xpt-tcp.h xpttypes.h xptmutex.h httptrans.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.h md5.o: global.h md5.h xpt-auth.o: xptport.h xptdef.h define.h xpt-b64.h xpttypes.h digcalc.h \ xpt-auth.h xpt-b64.o: xptport.h xptdef.h define.h xpttypes.h xpt-b64.h xptib64.h xpt-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.h xpt-tcp.o: xptitcp.h xpttypes.h xptport.h xptdef.h define.h xpt-tcp.h xptmutex.o: xptmutex.h # libxptawsp.so dependencies awsp.o: awsp.h xptdef.h xptTransport.h xpt.h smldef.h define.h smlerr.h \ xptport.h # libxptwsp.so dependencies protocol.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.h session.o: session.h awsp.h xptdef.h xptTransport.h xpt.h smldef.h \ define.h smlerr.h wspdef.h wsputil.h xptport.h settings.o: settings.h awsp.h xptdef.h wsphttp.h xptTransport.h xpt.h \ smldef.h define.h smlerr.h wspdef.h wsputil.h xptport.h transact.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.h wspcbk.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.h wsphttp.o: wsphttp.h xptTransport.h xptdef.h xpt.h smldef.h define.h \ smlerr.h wspdef.h wsputil.h xptport.h wsputil.o: wsputil.h xptTransport.h xptdef.h xpt.h smldef.h define.h \ smlerr.h wspdef.h xptport.h xpt-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 dependencies buffer.o: buffer.h obex/constants.h utils.h iConstants.h debug.h obex/error.h debug.o: debug.h iConstants.h obex/constants.h buffer.h utils.h obex/error.h handle.o: handle.h obex/constants.h iConstants.h buffer.h utils.h debug.h \ obex/error.h transport.h header.o: header.h obex/constants.h buffer.h utils.h iConstants.h debug.h \ obex/error.h handle.h object.h inetTransport.o: inetTransport.h iConstants.h obex/constants.h buffer.h \ utils.h debug.h obex/error.h irTransport.o: irTransport.h iConstants.h obex/constants.h buffer.h utils.h \ debug.h obex/error.h obex.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.h object.o: object.h iConstants.h obex/constants.h buffer.h utils.h debug.h \ obex/error.h handle.h header.h transport.o: transport.h obex/constants.h iConstants.h buffer.h utils.h \ debug.h obex/error.h irTransport.h inetTransport.h utils.o: utils.h iConstants.h obex/constants.h buffer.h debug.h obex/error.h # libxptobex.so dependencies obexbinding.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 |