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 51.IF "$(SYSTEM_NEON)" != "YES" 52 53@all: 54 @echo "no system neon is used...." 55 56.ELSE 57 58NEONINCDIR=external$/neon 59 60.IF "$(SYSTEM_NEON)" != "YES" 61.INCLUDE: $(SOLARINCDIR)$/$(NEONINCDIR)$/version.mk 62.ENDIF 63 64CFLAGS+= -DNEON_VERSION=0x$(NEON_VERSION) 65 66.IF "$(SYSTEM_NEON)" == "YES" 67CFLAGS+= $(NEON_CFLAGS) 68.ELSE 69CFLAGS+= -I$(SOLARINCDIR)$/$(NEONINCDIR) 70.ENDIF 71 72.IF "$(SYSTEM_LIBXML)" == "YES" 73CFLAGS+= $(LIBXML_CFLAGS) 74.ELSE 75LIBXMLINCDIR=external$/libxml 76CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR) 77.ENDIF 78 79.IF "$(SYSTEM_OPENSSL)" == "YES" 80CFLAGS+= $(OPENSSL_CFLAGS) 81.ENDIF 82 83# --- General ----------------------------------------------------- 84 85SLOFILES=\ 86 $(SLO)$/webdavservices.obj \ 87 $(SLO)$/webdavprovider.obj \ 88 $(SLO)$/webdavcontent.obj \ 89 $(SLO)$/webdavcontentcaps.obj \ 90 $(SLO)$/webdavresultset.obj \ 91 $(SLO)$/webdavdatasupplier.obj \ 92 $(SLO)$/ContentProperties.obj \ 93 $(SLO)$/DAVProperties.obj \ 94 $(SLO)$/DAVSessionFactory.obj \ 95 $(SLO)$/DAVResourceAccess.obj \ 96 $(SLO)$/NeonUri.obj \ 97 $(SLO)$/NeonInputStream.obj \ 98 $(SLO)$/NeonPropFindRequest.obj \ 99 $(SLO)$/NeonHeadRequest.obj \ 100 $(SLO)$/NeonSession.obj \ 101 $(SLO)$/NeonLockStore.obj \ 102 $(SLO)$/DateTimeHelper.obj \ 103 $(SLO)$/LinkSequence.obj \ 104 $(SLO)$/LockSequence.obj \ 105 $(SLO)$/LockEntrySequence.obj \ 106 $(SLO)$/UCBDeadPropertyValue.obj 107 108LIB1TARGET=$(SLB)$/_$(TARGET).lib 109LIB1OBJFILES=$(SLOFILES) 110 111# --- Shared-Library --------------------------------------------------- 112 113SHL1TARGET=$(TARGET)$(UCP_VERSION) 114SHL1IMPLIB=i$(TARGET) 115 116SHL1VERSIONMAP=$(SOLARENV)/src/component.map 117 118SHL1STDLIBS=\ 119 $(CPPUHELPERLIB) \ 120 $(CPPULIB) \ 121 $(SALLIB) \ 122 $(SALHELPERLIB) \ 123 $(UCBHELPERLIB) \ 124 $(COMPHELPERLIB) \ 125 $(NEON3RDLIB) \ 126 $(LIBXML2LIB) 127 128.IF "$(GUI)"=="WNT" 129SHL1STDLIBS+= $(WSOCK32LIB) 130.IF "$(WINDOWS_VISTA_PSDK)" != "" 131SHL1STDLIBS+= $(WS2_32LIB) 132.ENDIF 133SHL1STDLIBS+= $(OPENSSLLIB) 134.ELSE # WNT 135.IF "$(OS)"=="SOLARIS" 136SHL1STDLIBS+= -lnsl -lsocket -ldl 137.ENDIF # SOLARIS 138.IF "$(OS)"=="OS2" 139SHL1STDLIBS+= pthread.lib libz.lib 140.ENDIF # OS2 141.IF "$(SYSTEM_OPENSSL)"=="YES" 142SHL1STDLIBS+= $(OPENSSLLIB) 143.ELSE 144SHL1STDLIBS+= $(OPENSSLLIBST) 145.ENDIF 146.ENDIF # WNT 147 148SHL1DEF=$(MISC)$/$(SHL1TARGET).def 149SHL1LIBS=$(LIB1TARGET) 150 151# --- Def-File --------------------------------------------------------- 152 153DEF1NAME=$(SHL1TARGET) 154 155.ENDIF #"$(DISABLE_NEON)" == "TRUE" 156 157.ENDIF # L10N_framework 158# --- Targets ---------------------------------------------------------- 159 160.INCLUDE: target.mk 161 162ALLTAR : $(MISC)/ucpdav1.component 163 164$(MISC)/ucpdav1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 165 ucpdav1.component 166 $(XSLTPROC) --nonet --stringparam uri \ 167 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 168 $(SOLARENV)/bin/createcomponent.xslt ucpdav1.component 169