xref: /aoo4110/main/ucb/source/ucp/tdoc/makefile.mk (revision b1cdbd2c)
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
24PRJ=..$/..$/..
25PRJNAME=ucb
26# Version
27UCPTDOC_MAJOR=1
28TARGET=ucptdoc$(UCPTDOC_MAJOR).uno
29ENABLE_EXCEPTIONS=TRUE
30USE_DEFFILE=TRUE
31NO_BSYMBOLIC=TRUE
32
33# --- Settings ---------------------------------------------------------
34
35.INCLUDE: settings.mk
36
37# --- General -----------------------------------------------------
38.IF "$(L10N_framework)"==""
39
40# no "lib" prefix
41DLLPRE =
42
43SLOFILES=\
44	$(SLO)$/tdoc_provider.obj	\
45	$(SLO)$/tdoc_services.obj	\
46    $(SLO)$/tdoc_uri.obj		\
47	$(SLO)$/tdoc_content.obj	\
48	$(SLO)$/tdoc_contentcaps.obj \
49	$(SLO)$/tdoc_storage.obj	\
50	$(SLO)$/tdoc_docmgr.obj		\
51	$(SLO)$/tdoc_datasupplier.obj \
52    $(SLO)$/tdoc_resultset.obj  \
53    $(SLO)$/tdoc_documentcontentfactory.obj \
54    $(SLO)$/tdoc_passwordrequest.obj \
55    $(SLO)$/tdoc_stgelems.obj
56
57LIB1TARGET=$(SLB)$/_$(TARGET).lib
58LIB1OBJFILES=$(SLOFILES)
59
60# --- Shared-Library ---------------------------------------------------
61
62SHL1TARGET=$(TARGET)
63SHL1IMPLIB=i$(TARGET)
64
65SHL1VERSIONMAP=$(SOLARENV)/src/component.map
66
67SHL1STDLIBS=\
68	$(COMPHELPERLIB) \
69	$(CPPUHELPERLIB) \
70	$(CPPULIB) \
71	$(SALLIB)  \
72	$(SALHELPERLIB)  \
73	$(UCBHELPERLIB)
74
75SHL1DEF=$(MISC)$/$(SHL1TARGET).def
76SHL1LIBS=$(LIB1TARGET)
77
78# Make symbol renaming match library name for Mac OS X
79.IF "$(OS)"=="MACOSX"
80SYMBOLPREFIX=$(TARGET)
81.ENDIF
82
83DEF1NAME=$(SHL1TARGET)
84
85.ENDIF # L10N_framework
86
87# --- Targets ----------------------------------------------------------
88
89.INCLUDE: target.mk
90
91
92ALLTAR : $(MISC)/ucptdoc1.component
93
94$(MISC)/ucptdoc1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
95        ucptdoc1.component
96    $(XSLTPROC) --nonet --stringparam uri \
97        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
98        $(SOLARENV)/bin/createcomponent.xslt ucptdoc1.component
99