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
29PRJ=..$/..
30
31PRJNAME=extensions
32TARGET=oooimprovement
33ENABLE_EXCEPTIONS=TRUE
34
35PACKAGE=org.openoffice.Office
36ABSXCSROOT=$(SOLARXMLDIR)
37XCSROOT=..
38DTDDIR=$(ABSXCSROOT)
39XSLDIR=$(ABSXCSROOT)$/processing
40PROCESSOUT=$(MISC)$/$(TARGET)
41PROCESSORDIR=$(SOLARBINDIR)
42
43# --- Settings -----------------------------------------------------
44
45.INCLUDE :  settings.mk
46
47# --- Files --------------------------------------------------------
48
49SLOFILES= \
50    $(SLO)$/myconfigurationhelper.obj \
51    $(SLO)$/config.obj \
52    $(SLO)$/corecontroller.obj \
53    $(SLO)$/errormail.obj \
54    $(SLO)$/invite_job.obj \
55    $(SLO)$/logpacker.obj \
56    $(SLO)$/logstorage.obj \
57    $(SLO)$/onlogrotate_job.obj \
58    $(SLO)$/oooimprovement_exports.obj \
59    $(SLO)$/soaprequest.obj \
60    $(SLO)$/soapsender.obj \
61
62SHL1STDLIBS= \
63        $(CPPUHELPERLIB) \
64        $(CPPULIB) \
65        $(SALLIB) \
66        $(UNOTOOLSLIB) \
67
68SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
69.IF "$(GUI)"=="OS2"
70SHL1TARGET= oooimp$(DLLPOSTFIX)
71.ENDIF
72
73SHL1LIBS= $(SLB)$/$(TARGET).lib
74SHL1DEF= $(MISC)$/$(SHL1TARGET).def
75DEF1NAME= $(SHL1TARGET)
76SHL1VERSIONMAP=$(SOLARENV)/src/component.map
77
78PACKAGEDIR=$(subst,.,$/ $(PACKAGE))
79SPOOLDIR=$(MISC)$/registry$/spool
80
81XCUFILES= \
82	Jobs.xcu \
83	Logging.xcu
84
85MYXCUFILES= \
86	$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-oooimprovement.xcu \
87	$(SPOOLDIR)$/$(PACKAGEDIR)$/Logging$/Logging-oooimprovement.xcu
88
89
90# --- Targets ---
91
92.INCLUDE : target.mk
93
94ALLTAR : $(MYXCUFILES)
95
96XCU_SOURCEDIR:=.
97
98$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-oooimprovement.xcu : $(XCU_SOURCEDIR)$/Jobs.xcu
99	@-$(MKDIRHIER) $(@:d)
100	@$(COPY) $< $@
101
102$(SPOOLDIR)$/$(PACKAGEDIR)$/Logging$/Logging-oooimprovement.xcu : $(XCU_SOURCEDIR)$/Logging.xcu
103	@-$(MKDIRHIER) $(@:d)
104	@$(COPY) $< $@
105
106ALLTAR : $(MISC)/oooimprovement.component
107
108$(MISC)/oooimprovement.component .ERRREMOVE : \
109        $(SOLARENV)/bin/createcomponent.xslt oooimprovement.component
110    $(XSLTPROC) --nonet --stringparam uri \
111        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
112        $(SOLARENV)/bin/createcomponent.xslt oooimprovement.component
113