xref: /aoo41x/main/ucb/source/ucp/webdav/makefile.mk (revision 5866f8e4)
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#.IF "$(SYSTEM_APR)" != "YES"
52#.INCLUDE: $(SOLARINCDIR)$/$(APRINCDIR)$/version.mk
53#.ENDIF
54#.IF "$(SYSTEM_APRUTIL)" != "YES"
55#.INCLUDE: $(SOLARINCDIR)$/$(APRUTILINCDIR)$/version.mk
56#.ENDIF
57#.IF "$(SYSTEM_SERF)" != "YES"
58#.INCLUDE: $(SOLARINCDIR)$/$(SERFINCDIR)$/version.mk
59#.ENDIF
60
61#CFLAGS+= -DAPR_VERSION=0x$(APR_VERSION) -DAPRUTIL_VERSION=0x$(APRUTIL_VERSION) -DSERF_VERSION=0x$(SERF_VERSION)
62
63#
64# Extend the list of include paths depending on whether we use locally built
65# or system versions of libraries apr, apr-util, serf, libxml
66#
67# We have to use CFLAGS for this because PRJINC is too inflexible (it adds /inc to everyting.)
68#
69
70.IF "$(SYSTEM_APR)" == "YES"
71CFLAGS+= $(APR_CFLAGS)
72.ELSE
73CFLAGS+= -I$(SOLARINCDIR)$/$(APRINCDIR)
74.ENDIF
75
76.IF "$(SYSTEM_APRUTIL)" == "YES"
77CFLAGS+= $(APRUTIL_CFLAGS)
78.ELSE
79CFLAGS+= -I$(SOLARINCDIR)$/$(APRUTILINCDIR)
80.ENDIF
81
82.IF "$(SYSTEM_SERF)" == "YES"
83CFLAGS+= $(SERF_CFLAGS)
84.ELSE
85CFLAGS+= -I$(SOLARINCDIR)$/$(SERFINCDIR)
86.ENDIF
87
88.IF "$(SYSTEM_LIBXML)" == "YES"
89CFLAGS+= $(LIBXML_CFLAGS)
90.ELSE
91LIBXMLINCDIR=external$/libxml
92CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
93.ENDIF
94
95.IF "$(SYSTEM_OPENSSL)" == "YES"
96CFLAGS+= -I$(OPENSSL_CFLAGS)
97.ENDIF
98
99# --- General -----------------------------------------------------
100
101SLOFILES=\
102    $(SLO)$/webdavservices.obj \
103    $(SLO)$/webdavprovider.obj \
104    $(SLO)$/webdavcontent.obj \
105    $(SLO)$/webdavcontentcaps.obj \
106    $(SLO)$/webdavresultset.obj \
107    $(SLO)$/webdavdatasupplier.obj \
108    $(SLO)$/ContentProperties.obj \
109    $(SLO)$/DAVProperties.obj \
110    $(SLO)$/DAVSessionFactory.obj \
111    $(SLO)$/DAVResourceAccess.obj \
112    $(SLO)$/AprEnv.obj \
113    $(SLO)$/webdavresponseparser.obj \
114    $(SLO)$/SerfUri.obj \
115    $(SLO)$/SerfRequestProcessor.obj \
116    $(SLO)$/SerfRequestProcessorImpl.obj \
117    $(SLO)$/SerfRequestProcessorImplFac.obj \
118    $(SLO)$/SerfPropFindReqProcImpl.obj \
119    $(SLO)$/SerfPropPatchReqProcImpl.obj \
120    $(SLO)$/SerfGetReqProcImpl.obj \
121    $(SLO)$/SerfHeadReqProcImpl.obj \
122    $(SLO)$/SerfPutReqProcImpl.obj \
123    $(SLO)$/SerfPostReqProcImpl.obj \
124    $(SLO)$/SerfDeleteReqProcImpl.obj \
125    $(SLO)$/SerfMkColReqProcImpl.obj \
126    $(SLO)$/SerfCopyReqProcImpl.obj \
127    $(SLO)$/SerfMoveReqProcImpl.obj \
128    $(SLO)$/SerfSession.obj \
129    $(SLO)$/SerfCallbacks.obj \
130    $(SLO)$/SerfInputStream.obj \
131    $(SLO)$/DateTimeHelper.obj \
132    $(SLO)$/UCBDeadPropertyValue.obj
133
134LIB1TARGET=$(SLB)$/_$(TARGET).lib
135LIB1OBJFILES=$(SLOFILES)
136
137# --- Shared-Library ---------------------------------------------------
138
139SHL1TARGET=$(TARGET)$(UCP_VERSION)
140SHL1IMPLIB=i$(TARGET)
141
142SHL1VERSIONMAP=$(SOLARENV)/src/component.map
143
144SHL1STDLIBS=\
145        $(CPPUHELPERLIB) \
146        $(CPPULIB)       \
147        $(SALLIB)        \
148        $(SALHELPERLIB)  \
149        $(UCBHELPERLIB)  \
150        $(COMPHELPERLIB) \
151		$(SERFLIBS)      \
152        $(LIBXML2LIB)
153
154.IF "$(GUI)"=="WNT"
155SHL1STDLIBS+= $(WSOCK32LIB)
156.IF "$(WINDOWS_VISTA_PSDK)" != ""
157SHL1STDLIBS+= $(WS2_32LIB)
158.ENDIF
159SHL1STDLIBS+= $(OPENSSLLIB)
160.ELSE # WNT
161.IF "$(OS)"=="SOLARIS"
162SHL1STDLIBS+= -lnsl -lsocket -ldl
163.ENDIF # SOLARIS
164.IF "$(SYSTEM_OPENSSL)"=="YES"
165SHL1STDLIBS+= $(OPENSSLLIB)
166.ELSE
167SHL1STDLIBS+= $(OPENSSLLIBST)
168.ENDIF
169.ENDIF # WNT
170
171SHL1DEF=$(MISC)$/$(SHL1TARGET).def
172SHL1LIBS=$(LIB1TARGET)
173
174# --- Def-File ---------------------------------------------------------
175
176DEF1NAME=$(SHL1TARGET)
177
178.ENDIF # L10N_framework
179# --- Targets ----------------------------------------------------------
180
181.INCLUDE: target.mk
182
183ALLTAR : $(MISC)/ucpdav1.component
184
185$(MISC)/ucpdav1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
186        ucpdav1.component
187    $(XSLTPROC) --nonet --stringparam uri \
188        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
189        $(SOLARENV)/bin/createcomponent.xslt ucpdav1.component
190