xref: /AOO41X/main/ucb/source/ucp/package/makefile.mk (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28# UCP Version - Increase, if UCP libraray becomes incompatible.
29UCP_VERSION=1
30
31# Name for UCP. Will become part of the library name (See below).
32UCP_NAME=pkg
33
34PRJ=..$/..$/..
35
36PRJNAME=ucb
37
38TARGET=ucp$(UCP_NAME)
39
40ENABLE_EXCEPTIONS=TRUE
41USE_DEFFILE=TRUE
42NO_BSYMBOLIC=TRUE
43
44# --- Settings ---------------------------------------------------------
45
46.INCLUDE: settings.mk
47
48# --- General -----------------------------------------------------
49.IF "$(L10N_framework)"==""
50
51SLOFILES=\
52	$(SLO)$/pkgservices.obj    	\
53	$(SLO)$/pkguri.obj		\
54	$(SLO)$/pkgprovider.obj    	\
55	$(SLO)$/pkgcontent.obj     	\
56	$(SLO)$/pkgcontentcaps.obj	\
57	$(SLO)$/pkgresultset.obj	\
58	$(SLO)$/pkgdatasupplier.obj
59
60LIB1TARGET=$(SLB)$/_$(TARGET).lib
61LIB1OBJFILES=$(SLOFILES)
62
63# --- Shared-Library ---------------------------------------------------
64
65SHL1TARGET=$(TARGET)$(UCP_VERSION)
66SHL1IMPLIB=i$(TARGET)
67
68SHL1VERSIONMAP=$(SOLARENV)/src/component.map
69
70SHL1STDLIBS=\
71	$(COMPHELPERLIB) \
72	$(CPPUHELPERLIB) \
73	$(CPPULIB) \
74	$(SALLIB)  \
75	$(SALHELPERLIB)  \
76	$(UCBHELPERLIB)
77
78SHL1DEF=$(MISC)$/$(SHL1TARGET).def
79SHL1LIBS=$(LIB1TARGET)
80
81# --- Def-File ---------------------------------------------------------
82
83DEF1NAME=$(SHL1TARGET)
84
85# --- Targets ----------------------------------------------------------
86
87.ENDIF # L10N_framework
88.INCLUDE: target.mk
89
90
91ALLTAR : $(MISC)/ucppkg1.component
92
93$(MISC)/ucppkg1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
94        ucppkg1.component
95    $(XSLTPROC) --nonet --stringparam uri \
96        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
97        $(SOLARENV)/bin/createcomponent.xslt ucppkg1.component
98