xref: /aoo41x/main/ucb/source/ucp/webdav/makefile.mk (revision 3edf6992)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# UCP Version - Increase, if UCP libraray becomes incompatible.
25UCP_VERSION=1
26
27# Name for the UCP. Will become part of the library name (See below).
28UCP_NAME=dav
29
30# Relative path to project root.
31PRJ = ..$/..$/..
32
33# Project Name.
34PRJNAME=ucb
35
36TARGET=ucp$(UCP_NAME)
37
38ENABLE_EXCEPTIONS=TRUE
39USE_DEFFILE=TRUE
40NO_BSYMBOLIC=TRUE
41
42# --- Settings ---------------------------------------------------------
43
44.INCLUDE: settings.mk
45.IF "$(L10N_framework)"==""
46
47APRINCDIR=apr
48APRUTILINCDIR=apr-util
49SERFINCDIR=serf
50
51#
52# Extend the list of include paths depending on whether we use locally built
53# or system versions of libraries apr, apr-util, serf, libxml
54#
55# We have to use CFLAGS for this because PRJINC is too inflexible (it adds /inc to everyting.)
56#
57
58.IF "$(SYSTEM_APR)" == "YES"
59CFLAGS+= $(APR_CFLAGS)
60SHL1STDLIBS+=$(APR_LIBS)
61.ELSE
62CFLAGS+= -I$(SOLARINCDIR)$/$(APRINCDIR)
63SHL1STDLIBS+=$(INTERNAL_APR_LIBS)
64.INCLUDE : apr_version.mk
65CFLAGS+=\
66    -DAPR_VERSION=\"$(APR_MAJOR).$(APR_MINOR).$(APR_MICRO)\"
67.ENDIF
68
69.IF "$(SYSTEM_APR_UTIL)" == "YES"
70CFLAGS+= $(APR_UTIL_CFLAGS)
71SHL1STDLIBS+=$(APR_UTIL_LIBS)
72.ELSE
73CFLAGS+= -I$(SOLARINCDIR)$/$(APRUTILINCDIR)
74SHL1STDLIBS+=$(INTERNAL_APR_UTIL_LIBS)
75.INCLUDE : aprutil_version.mk
76CFLAGS+=\
77    -DAPR_UTIL_VERSION=\"$(APR_UTIL_MAJOR).$(APR_UTIL_MINOR).$(APR_UTIL_MICRO)\"
78.ENDIF
79
80.IF "$(SYSTEM_SERF)" == "YES"
81CFLAGS+= $(SERF_CFLAGS)
82SHL1STDLIBS+=$(SERF_LIBS)
83.ELSE
84CFLAGS+= -I$(SOLARINCDIR)$/$(SERFINCDIR)
85SHL1STDLIBS+=$(INTERNAL_SERF_LIBS)
86.INCLUDE : serf_version.mk
87CFLAGS+=\
88    -DSERF_VERSION=\"$(SERF_MAJOR).$(SERF_MINOR).$(SERF_MICRO)\"
89.ENDIF
90
91.IF "$(SYSTEM_LIBXML)" == "YES"
92CFLAGS+= $(LIBXML_CFLAGS)
93.ELSE
94LIBXMLINCDIR=external$/libxml
95CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
96.ENDIF
97
98.IF "$(SYSTEM_OPENSSL)" == "YES"
99CFLAGS+= -I$(OPENSSL_CFLAGS)
100SHL1STDLIBS+= $(OPENSSLLIB)
101.ELSE
102SHL1STDLIBS+= $(OPENSSLLIBST)
103.ENDIF
104
105# --- General -----------------------------------------------------
106
107SLOFILES=\
108    $(SLO)$/webdavservices.obj \
109    $(SLO)$/webdavprovider.obj \
110    $(SLO)$/webdavcontent.obj \
111    $(SLO)$/webdavcontentcaps.obj \
112    $(SLO)$/webdavresultset.obj \
113    $(SLO)$/webdavdatasupplier.obj \
114    $(SLO)$/ContentProperties.obj \
115    $(SLO)$/DAVProperties.obj \
116    $(SLO)$/DAVSessionFactory.obj \
117    $(SLO)$/DAVResourceAccess.obj \
118    $(SLO)$/AprEnv.obj \
119    $(SLO)$/webdavresponseparser.obj \
120    $(SLO)$/SerfUri.obj \
121    $(SLO)$/SerfRequestProcessor.obj \
122    $(SLO)$/SerfRequestProcessorImpl.obj \
123    $(SLO)$/SerfRequestProcessorImplFac.obj \
124    $(SLO)$/SerfPropFindReqProcImpl.obj \
125    $(SLO)$/SerfPropPatchReqProcImpl.obj \
126    $(SLO)$/SerfGetReqProcImpl.obj \
127    $(SLO)$/SerfHeadReqProcImpl.obj \
128    $(SLO)$/SerfPutReqProcImpl.obj \
129    $(SLO)$/SerfPostReqProcImpl.obj \
130    $(SLO)$/SerfDeleteReqProcImpl.obj \
131    $(SLO)$/SerfMkColReqProcImpl.obj \
132    $(SLO)$/SerfCopyReqProcImpl.obj \
133    $(SLO)$/SerfMoveReqProcImpl.obj \
134    $(SLO)$/SerfLockReqProcImpl.obj \
135    $(SLO)$/SerfLockRefreshProcImpl.obj \
136    $(SLO)$/SerfUnlockProcImpl.obj \
137    $(SLO)$/SerfLockStore.obj \
138    $(SLO)$/SerfSession.obj \
139    $(SLO)$/SerfCallbacks.obj \
140    $(SLO)$/SerfInputStream.obj \
141    $(SLO)$/DateTimeHelper.obj \
142    $(SLO)$/UCBDeadPropertyValue.obj
143
144LIB1TARGET=$(SLB)$/_$(TARGET).lib
145LIB1OBJFILES=$(SLOFILES)
146
147# --- Shared-Library ---------------------------------------------------
148
149SHL1TARGET=$(TARGET)$(UCP_VERSION)
150SHL1IMPLIB=i$(TARGET)
151
152SHL1VERSIONMAP=$(SOLARENV)/src/component.map
153
154SHL1STDLIBS+=\
155        $(TOOLSLIB) \
156        $(CPPUHELPERLIB) \
157        $(CPPULIB)       \
158        $(SALLIB)        \
159        $(SALHELPERLIB)  \
160        $(UCBHELPERLIB)  \
161        $(COMPHELPERLIB) \
162        $(LIBXML2LIB)
163
164.IF "$(GUI)"=="WNT"
165SHL1STDLIBS+= $(WSOCK32LIB)
166.IF "$(WINDOWS_VISTA_PSDK)" != ""
167SHL1STDLIBS+= $(WS2_32LIB)
168.ENDIF
169.ELSE # WNT
170.IF "$(OS)"=="SOLARIS"
171SHL1STDLIBS+= -lnsl -lsocket -ldl
172.ENDIF # SOLARIS
173.ENDIF # WNT
174
175SHL1DEF=$(MISC)$/$(SHL1TARGET).def
176SHL1LIBS=$(LIB1TARGET)
177
178# --- Def-File ---------------------------------------------------------
179
180DEF1NAME=$(SHL1TARGET)
181
182.ENDIF # L10N_framework
183# --- Targets ----------------------------------------------------------
184
185.INCLUDE: target.mk
186
187ALLTAR : $(MISC)/ucpdav1.component
188
189$(MISC)/ucpdav1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
190        ucpdav1.component
191    $(XSLTPROC) --nonet --stringparam uri \
192        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
193        $(SOLARENV)/bin/createcomponent.xslt ucpdav1.component
194