1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28# UCP Version - Increase, if UCP libraray becomes incompatible. 29UCP_VERSION=1 30 31# Name for the UCP. Will become part of the library name (See below). 32UCP_NAME=dav 33 34# Relative path to project root. 35PRJ = ..$/..$/.. 36 37# Project Name. 38PRJNAME=ucb 39 40TARGET=ucp$(UCP_NAME) 41 42ENABLE_EXCEPTIONS=TRUE 43USE_DEFFILE=TRUE 44NO_BSYMBOLIC=TRUE 45 46# --- Settings --------------------------------------------------------- 47 48.INCLUDE: settings.mk 49.IF "$(L10N_framework)"=="" 50 51APRINCDIR=apr 52APRUTILINCDIR=apr-util 53SERFINCDIR=serf 54 55#.IF "$(SYSTEM_APR)" != "YES" 56#.INCLUDE: $(SOLARINCDIR)$/$(APRINCDIR)$/version.mk 57#.ENDIF 58#.IF "$(SYSTEM_APRUTIL)" != "YES" 59#.INCLUDE: $(SOLARINCDIR)$/$(APRUTILINCDIR)$/version.mk 60#.ENDIF 61#.IF "$(SYSTEM_SERF)" != "YES" 62#.INCLUDE: $(SOLARINCDIR)$/$(SERFINCDIR)$/version.mk 63#.ENDIF 64 65#CFLAGS+= -DAPR_VERSION=0x$(APR_VERSION) -DAPRUTIL_VERSION=0x$(APRUTIL_VERSION) -DSERF_VERSION=0x$(SERF_VERSION) 66 67# 68# Extend the list of include paths depending on whether we use locally built 69# or system versions of libraries apr, apr-util, serf, libxml 70# 71# We have to use CFLAGS for this because PRJINC is too inflexible (it adds /inc to everyting.) 72# 73 74.IF "$(SYSTEM_APR)" == "YES" 75CFLAGS+= $(APR_CFLAGS) 76.ELSE 77CFLAGS+= -I$(SOLARINCDIR)$/$(APRINCDIR) 78.ENDIF 79 80.IF "$(SYSTEM_APRUTIL)" == "YES" 81CFLAGS+= $(APRUTIL_CFLAGS) 82.ELSE 83CFLAGS+= -I$(SOLARINCDIR)$/$(APRUTILINCDIR) 84.ENDIF 85 86.IF "$(SYSTEM_SERF)" == "YES" 87CFLAGS+= $(SERF_CFLAGS) 88.ELSE 89CFLAGS+= -I$(SOLARINCDIR)$/$(SERFINCDIR) 90.ENDIF 91 92.IF "$(SYSTEM_LIBXML)" == "YES" 93CFLAGS+= $(LIBXML_CFLAGS) 94.ELSE 95LIBXMLINCDIR=external$/libxml 96CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR) 97.ENDIF 98 99.IF "$(SYSTEM_OPENSSL)" == "YES" 100CFLAGS+= -I$(OPENSSL_CFLAGS) 101.ENDIF 102 103# --- General ----------------------------------------------------- 104 105SLOFILES=\ 106 $(SLO)$/webdavservices.obj \ 107 $(SLO)$/webdavprovider.obj \ 108 $(SLO)$/webdavcontent.obj \ 109 $(SLO)$/webdavcontentcaps.obj \ 110 $(SLO)$/webdavresultset.obj \ 111 $(SLO)$/webdavdatasupplier.obj \ 112 $(SLO)$/ContentProperties.obj \ 113 $(SLO)$/DAVProperties.obj \ 114 $(SLO)$/DAVSessionFactory.obj \ 115 $(SLO)$/DAVResourceAccess.obj \ 116 $(SLO)$/AprEnv.obj \ 117 $(SLO)$/webdavresponseparser.obj \ 118 $(SLO)$/SerfUri.obj \ 119 $(SLO)$/SerfRequestProcessor.obj \ 120 $(SLO)$/SerfRequestProcessorImpl.obj \ 121 $(SLO)$/SerfRequestProcessorImplFac.obj \ 122 $(SLO)$/SerfPropFindReqProcImpl.obj \ 123 $(SLO)$/SerfPropPatchReqProcImpl.obj \ 124 $(SLO)$/SerfGetReqProcImpl.obj \ 125 $(SLO)$/SerfHeadReqProcImpl.obj \ 126 $(SLO)$/SerfPutReqProcImpl.obj \ 127 $(SLO)$/SerfPostReqProcImpl.obj \ 128 $(SLO)$/SerfDeleteReqProcImpl.obj \ 129 $(SLO)$/SerfMkColReqProcImpl.obj \ 130 $(SLO)$/SerfCopyReqProcImpl.obj \ 131 $(SLO)$/SerfMoveReqProcImpl.obj \ 132 $(SLO)$/SerfSession.obj \ 133 $(SLO)$/SerfCallbacks.obj \ 134 $(SLO)$/SerfInputStream.obj \ 135 $(SLO)$/DateTimeHelper.obj \ 136 $(SLO)$/UCBDeadPropertyValue.obj 137 138LIB1TARGET=$(SLB)$/_$(TARGET).lib 139LIB1OBJFILES=$(SLOFILES) 140 141# --- Shared-Library --------------------------------------------------- 142 143SHL1TARGET=$(TARGET)$(UCP_VERSION) 144SHL1IMPLIB=i$(TARGET) 145 146SHL1VERSIONMAP=$(SOLARENV)/src/component.map 147 148SHL1STDLIBS=\ 149 $(CPPUHELPERLIB) \ 150 $(CPPULIB) \ 151 $(SALLIB) \ 152 $(SALHELPERLIB) \ 153 $(UCBHELPERLIB) \ 154 $(COMPHELPERLIB) \ 155 $(SERFLIBS) \ 156 $(LIBXML2LIB) 157 158.IF "$(GUI)"=="WNT" 159SHL1STDLIBS+= $(WSOCK32LIB) 160.IF "$(WINDOWS_VISTA_PSDK)" != "" 161SHL1STDLIBS+= $(WS2_32LIB) 162.ENDIF 163SHL1STDLIBS+= $(OPENSSLLIB) 164.ELSE # WNT 165.IF "$(OS)"=="SOLARIS" 166SHL1STDLIBS+= -lnsl -lsocket -ldl 167.ENDIF # SOLARIS 168.IF "$(OS)"=="OS2" 169SHL1STDLIBS+= pthread.lib libz.lib 170.ENDIF # OS2 171.IF "$(SYSTEM_OPENSSL)"=="YES" 172SHL1STDLIBS+= $(OPENSSLLIB) 173.ELSE 174SHL1STDLIBS+= $(OPENSSLLIBST) 175.ENDIF 176.ENDIF # WNT 177 178SHL1DEF=$(MISC)$/$(SHL1TARGET).def 179SHL1LIBS=$(LIB1TARGET) 180 181# --- Def-File --------------------------------------------------------- 182 183DEF1NAME=$(SHL1TARGET) 184 185.ENDIF # L10N_framework 186# --- Targets ---------------------------------------------------------- 187 188.INCLUDE: target.mk 189 190ALLTAR : $(MISC)/ucpdav1.component 191 192$(MISC)/ucpdav1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 193 ucpdav1.component 194 $(XSLTPROC) --nonet --stringparam uri \ 195 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 196 $(SOLARENV)/bin/createcomponent.xslt ucpdav1.component 197