Update ooo320-m1
[ooovba.git] / ucb / source / ucp / webdav / makefile.mk
blobc8891723cd2c36f2d976dc13d9a0dbdc72317310
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.43 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 # UCP Version - Increase, if UCP libraray becomes incompatible.
33 UCP_VERSION=1
35 # Name for the UCP. Will become part of the library name (See below).
36 UCP_NAME=dav
38 # Relative path to project root.
39 PRJ = ..$/..$/..
41 # Project Name.
42 PRJNAME=ucb
44 TARGET=ucp$(UCP_NAME)
46 ENABLE_EXCEPTIONS=TRUE
47 USE_DEFFILE=TRUE
48 NO_BSYMBOLIC=TRUE
50 # --- Settings ---------------------------------------------------------
52 .INCLUDE: settings.mk
53 .IF "$(L10N_framework)"==""
55 .IF "$(DISABLE_NEON)" == "TRUE"
57 @all:
58 @echo "neon disabled...."
60 .ELSE
62 NEONINCDIR=external$/neon
64 .IF "$(SYSTEM_NEON)" != "YES"
65 .INCLUDE: $(SOLARINCDIR)$/$(NEONINCDIR)$/version.mk
66 .ENDIF
68 CFLAGS+= -DNEON_VERSION=0x$(NEON_VERSION)
70 .IF "$(SYSTEM_NEON)" == "YES"
71 CFLAGS+= $(NEON_CFLAGS)
72 .ELSE
73 CFLAGS+= -I$(SOLARINCDIR)$/$(NEONINCDIR)
74 .ENDIF
76 .IF "$(SYSTEM_LIBXML)" == "YES"
77 CFLAGS+= $(LIBXML_CFLAGS)
78 .ELSE
79 LIBXMLINCDIR=external$/libxml
80 CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
81 .ENDIF
83 .IF "$(SYSTEM_OPENSSL)" == "YES"
84 CFLAGS+= $(OPENSSL_CFLAGS)
85 .ENDIF
87 # --- General -----------------------------------------------------
89 SLOFILES=\
90 $(SLO)$/webdavservices.obj \
91 $(SLO)$/webdavprovider.obj \
92 $(SLO)$/webdavcontent.obj \
93 $(SLO)$/webdavcontentcaps.obj \
94 $(SLO)$/webdavresultset.obj \
95 $(SLO)$/webdavdatasupplier.obj \
96 $(SLO)$/ContentProperties.obj \
97 $(SLO)$/DAVProperties.obj \
98 $(SLO)$/DAVSessionFactory.obj \
99 $(SLO)$/DAVResourceAccess.obj \
100 $(SLO)$/NeonUri.obj \
101 $(SLO)$/NeonInputStream.obj \
102 $(SLO)$/NeonPropFindRequest.obj \
103 $(SLO)$/NeonHeadRequest.obj \
104 $(SLO)$/NeonSession.obj \
105 $(SLO)$/DateTimeHelper.obj \
106 $(SLO)$/LinkSequence.obj \
107 $(SLO)$/LockSequence.obj \
108 $(SLO)$/LockEntrySequence.obj \
109 $(SLO)$/UCBDeadPropertyValue.obj
111 LIB1TARGET=$(SLB)$/_$(TARGET).lib
112 LIB1OBJFILES=$(SLOFILES)
114 # --- Shared-Library ---------------------------------------------------
116 SHL1TARGET=$(TARGET)$(UCP_VERSION)
117 SHL1IMPLIB=i$(TARGET)
119 SHL1VERSIONMAP=exports.map
121 SHL1STDLIBS=\
122 $(CPPUHELPERLIB) \
123 $(CPPULIB) \
124 $(SALLIB) \
125 $(SALHELPERLIB) \
126 $(UCBHELPERLIB) \
127 $(COMPHELPERLIB) \
128 $(NEON3RDLIB) \
129 $(LIBXML2LIB)
133 .IF "$(GUI)"=="WNT"
134 SHL1STDLIBS+= $(WSOCK32LIB)
135 .IF "$(WINDOWS_VISTA_PSDK)" != ""
136 SHL1STDLIBS+= $(WS2_32LIB)
137 .ENDIF
138 SHL1STDLIBS+= $(OPENSSLLIB)
139 .ELSE # WNT
140 .IF "$(OS)"=="SOLARIS"
141 SHL1STDLIBS+= -lnsl -lsocket -ldl
142 .ENDIF # SOLARIS
143 .IF "$(OS)"=="OS2"
144 SHL1STDLIBS+= pthread.lib libz.lib
145 .ENDIF # OS2
146 .IF "$(SYSTEM_OPENSSL)"=="YES"
147 SHL1STDLIBS+= $(OPENSSLLIB)
148 .ELSE
149 SHL1STDLIBS+= $(OPENSSLLIBST)
150 .ENDIF
151 .ENDIF # WNT
155 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
156 SHL1LIBS=$(LIB1TARGET)
158 # --- Def-File ---------------------------------------------------------
160 DEF1NAME=$(SHL1TARGET)
162 .ENDIF #"$(DISABLE_NEON)" == "TRUE"
164 .ENDIF # L10N_framework
165 # --- Targets ----------------------------------------------------------
167 .INCLUDE: target.mk