xref: /aoo4110/main/ucb/source/ucp/package/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
24# UCP Version - Increase, if UCP libraray becomes incompatible.
25UCP_VERSION=1
26
27# Name for UCP. Will become part of the library name (See below).
28UCP_NAME=pkg
29
30PRJ=..$/..$/..
31
32PRJNAME=ucb
33
34TARGET=ucp$(UCP_NAME)
35
36ENABLE_EXCEPTIONS=TRUE
37USE_DEFFILE=TRUE
38NO_BSYMBOLIC=TRUE
39
40# --- Settings ---------------------------------------------------------
41
42.INCLUDE: settings.mk
43
44# --- General -----------------------------------------------------
45.IF "$(L10N_framework)"==""
46
47SLOFILES=\
48	$(SLO)$/pkgservices.obj    	\
49	$(SLO)$/pkguri.obj		\
50	$(SLO)$/pkgprovider.obj    	\
51	$(SLO)$/pkgcontent.obj     	\
52	$(SLO)$/pkgcontentcaps.obj	\
53	$(SLO)$/pkgresultset.obj	\
54	$(SLO)$/pkgdatasupplier.obj
55
56LIB1TARGET=$(SLB)$/_$(TARGET).lib
57LIB1OBJFILES=$(SLOFILES)
58
59# --- Shared-Library ---------------------------------------------------
60
61SHL1TARGET=$(TARGET)$(UCP_VERSION)
62SHL1IMPLIB=i$(TARGET)
63
64SHL1VERSIONMAP=$(SOLARENV)/src/component.map
65
66SHL1STDLIBS=\
67	$(COMPHELPERLIB) \
68	$(CPPUHELPERLIB) \
69	$(CPPULIB) \
70	$(SALLIB)  \
71	$(SALHELPERLIB)  \
72	$(UCBHELPERLIB)
73
74SHL1DEF=$(MISC)$/$(SHL1TARGET).def
75SHL1LIBS=$(LIB1TARGET)
76
77# --- Def-File ---------------------------------------------------------
78
79DEF1NAME=$(SHL1TARGET)
80
81# --- Targets ----------------------------------------------------------
82
83.ENDIF # L10N_framework
84.INCLUDE: target.mk
85
86
87ALLTAR : $(MISC)/ucppkg1.component
88
89$(MISC)/ucppkg1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
90        ucppkg1.component
91    $(XSLTPROC) --nonet --stringparam uri \
92        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
93        $(SOLARENV)/bin/createcomponent.xslt ucppkg1.component
94