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
28PRJ = ..$/..
29
30PRJNAME = desktop
31TARGET = deployment
32ENABLE_EXCEPTIONS = TRUE
33#USE_DEFFILE = TRUE
34NO_BSYMBOLIC = TRUE
35
36.IF "$(GUI)"=="OS2"
37TARGET = deploy
38.ENDIF
39
40.INCLUDE : settings.mk
41.INCLUDE : $(PRJ)$/source$/deployment$/inc$/dp_misc.mk
42
43.IF "$(SYSTEM_DB)" == "YES"
44CFLAGS+=-DSYSTEM_DB -I$(DB_INCLUDES)
45.ENDIF
46
47INCPRE += inc
48
49DLLPRE =
50
51SHL1TARGET = $(TARGET)$(DLLPOSTFIX).uno
52SHL1VERSIONMAP = $(SOLARENV)/src/component.map
53
54SHL1LIBS = \
55    $(SLB)$/deployment_manager.lib \
56    $(SLB)$/deployment_registry.lib \
57    $(SLB)$/deployment_registry_executable.lib \
58    $(SLB)$/deployment_registry_component.lib \
59    $(SLB)$/deployment_registry_configuration.lib \
60    $(SLB)$/deployment_registry_package.lib \
61    $(SLB)$/deployment_registry_script.lib \
62    $(SLB)$/deployment_registry_sfwk.lib \
63    $(SLB)$/deployment_registry_help.lib
64
65SHL1OBJS = \
66    $(SLO)$/dp_log.obj \
67    $(SLO)$/dp_persmap.obj \
68    $(SLO)$/dp_services.obj \
69    $(SLO)$/dp_xml.obj
70
71SHL1STDLIBS = \
72        $(SALLIB) \
73        $(CPPULIB) \
74        $(CPPUHELPERLIB) \
75        $(UCBHELPERLIB) \
76        $(COMPHELPERLIB) \
77        $(TOOLSLIB) \
78        $(XMLSCRIPTLIB) \
79        $(SVLLIB) \
80        $(UNOTOOLSLIB) \
81        $(DEPLOYMENTMISCLIB) \
82	$(HELPLINKERLIB)
83
84SHL1DEPN =
85SHL1IMPLIB = i$(TARGET)
86SHL1DEF = $(MISC)$/$(SHL1TARGET).def
87
88DEF1NAME = $(SHL1TARGET)
89
90SLOFILES = $(LIB1OBJFILES)
91
92RESLIB1NAME = $(TARGET)
93
94RESLIB1SRSFILES = \
95        $(SRS)$/deployment_registry_configuration.srs \
96        $(SRS)$/deployment_registry_component.srs \
97        $(SRS)$/deployment_registry_script.srs \
98        $(SRS)$/deployment_registry_sfwk.srs \
99        $(SRS)$/deployment_registry_package.srs \
100        $(SRS)$/deployment_registry_help.srs \
101        $(SRS)$/deployment_registry.srs \
102        $(SRS)$/deployment_manager.srs \
103	$(SRS)$/deployment_unopkg.srs
104
105.IF "$(GUI)"=="OS2"
106RESLIB1SRSFILES += $(SRS)$/deplmisc.srs
107.ELSE
108RESLIB1SRSFILES += $(SRS)$/deployment_misc.srs
109.ENDIF
110
111.INCLUDE : target.mk
112
113
114ALLTAR : $(MISC)/deployment.component
115
116$(MISC)/deployment.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
117        deployment.component
118    $(XSLTPROC) --nonet --stringparam uri \
119        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
120        $(SOLARENV)/bin/createcomponent.xslt deployment.component
121