xref: /AOO41X/main/extensions/source/update/check/makefile.mk (revision a2db8daa583f26f37049ecee9be51ff7090a8b59)
17871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
19cdf0e10cSrcweir#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweirPRJ=..$/..$/..
24cdf0e10cSrcweir
25cdf0e10cSrcweirPRJNAME=extensions
26cdf0e10cSrcweirTARGET=updchk
27cdf0e10cSrcweirPACKAGE=org.openoffice.Office
28cdf0e10cSrcweir
2935779863SAriel Constenla-Haile
3035779863SAriel Constenla-Haile.IF "$(ENABLE_ONLINE_UPDATE)" != "YES"
3135779863SAriel Constenla-Haile@all:
3235779863SAriel Constenla-Haile	@echo "Online Update disabled."
3335779863SAriel Constenla-Haile.ELSE
3435779863SAriel Constenla-Haile
35cdf0e10cSrcweirLIBTARGET=NO
36cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
37cdf0e10cSrcweir
38cdf0e10cSrcweirABSXCSROOT=$(SOLARXMLDIR)
39cdf0e10cSrcweirXCSROOT=..
40cdf0e10cSrcweirDTDDIR=$(ABSXCSROOT)
41cdf0e10cSrcweirXSLDIR=$(ABSXCSROOT)$/processing
42cdf0e10cSrcweirPROCESSOUT=$(MISC)$/$(TARGET)
43cdf0e10cSrcweirPROCESSORDIR=$(SOLARBINDIR)
44cdf0e10cSrcweir
45cdf0e10cSrcweir# no validation by inspector class
46cdf0e10cSrcweirNO_INSPECTION=TRUE
47cdf0e10cSrcweir
48cdf0e10cSrcweir# --- Settings ---
49cdf0e10cSrcweir
50cdf0e10cSrcweir.INCLUDE : settings.mk
51cdf0e10cSrcweir
52cdf0e10cSrcweir# no "lib" prefix
53cdf0e10cSrcweirDLLPRE =
54cdf0e10cSrcweir
55cdf0e10cSrcweir# --- Files ---
56cdf0e10cSrcweir
57cdf0e10cSrcweirSRS2NAME=$(TARGET)
58cdf0e10cSrcweirSRC2FILES=\
59cdf0e10cSrcweir	updatehdl.src
60cdf0e10cSrcweir
61cdf0e10cSrcweirRESLIB2NAME=upd
62cdf0e10cSrcweirRESLIB2SRSFILES= $(SRS)$/updchk.srs
63cdf0e10cSrcweirRESLIB2DEPN= updatehdl.src updatehdl.hrc
64cdf0e10cSrcweir
65cdf0e10cSrcweirSLOFILES=\
66cdf0e10cSrcweir	$(SLO)$/download.obj \
67cdf0e10cSrcweir	$(SLO)$/updatecheck.obj \
68cdf0e10cSrcweir	$(SLO)$/updatecheckjob.obj \
69cdf0e10cSrcweir	$(SLO)$/updatecheckconfig.obj \
70cdf0e10cSrcweir	$(SLO)$/updateprotocol.obj \
71cdf0e10cSrcweir	$(SLO)$/updatehdl.obj
72cdf0e10cSrcweir
73cdf0e10cSrcweirSHL1NOCHECK=TRUE
7473c96003SYuri Dario.IF "$(GUI)" == "OS2"
7573c96003SYuri DarioSHL1TARGET=updchkun
7673c96003SYuri Dario.ELSE
77cdf0e10cSrcweirSHL1TARGET=$(TARGET).uno
7873c96003SYuri Dario.ENDIF
79cdf0e10cSrcweirSHL1OBJS=$(SLOFILES)
80cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
81cdf0e10cSrcweir
82cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
83cdf0e10cSrcweirSHL1STDLIBS=    \
84cdf0e10cSrcweir        $(CPPUHELPERLIB) \
85cdf0e10cSrcweir        $(CPPULIB) \
86cdf0e10cSrcweir        $(CURLLIB) \
87cdf0e10cSrcweir        $(SALLIB) \
88cdf0e10cSrcweir        $(SHELL32LIB) \
89*a2db8daaSArrigo Marchiori        $(OLE32LIB) \
90*a2db8daaSArrigo Marchiori        $(VCLLIB)
91cdf0e10cSrcweir
92cdf0e10cSrcweirSHL1VERSIONMAP=$(SOLARENV)/src/component.map
93cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
94cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
95cdf0e10cSrcweir
96cdf0e10cSrcweirPACKAGEDIR=$(subst,.,$/ $(PACKAGE))
97cdf0e10cSrcweirSPOOLDIR=$(MISC)$/registry$/spool
98cdf0e10cSrcweir
99cdf0e10cSrcweirXCUFILES= \
100cdf0e10cSrcweir	Addons.xcu \
101cdf0e10cSrcweir	Jobs.xcu
102cdf0e10cSrcweir
103cdf0e10cSrcweirMYXCUFILES= \
104cdf0e10cSrcweir	$(SPOOLDIR)$/$(PACKAGEDIR)$/Addons$/Addons-onlineupdate.xcu \
105cdf0e10cSrcweir	$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-onlineupdate.xcu
106cdf0e10cSrcweir
107cdf0e10cSrcweirLOCALIZEDFILES= \
108cdf0e10cSrcweir	Addons.xcu \
109cdf0e10cSrcweir	Jobs.xcu
110cdf0e10cSrcweir
111cdf0e10cSrcweir.IF "$(test)" != ""
112cdf0e10cSrcweirAPP1TARGET=updateprotocoltest
113cdf0e10cSrcweirAPP1STDLIBS= $(SHL1STDLIBS)
114cdf0e10cSrcweirAPP1OBJS= \
115cdf0e10cSrcweir	$(SLO)$/updateprotocol.obj \
116cdf0e10cSrcweir	$(SLO)$/updateprotocoltest.obj
117cdf0e10cSrcweir
118cdf0e10cSrcweir
119cdf0e10cSrcweir.ENDIF # "$(test)" != ""
120cdf0e10cSrcweir
121cdf0e10cSrcweir# --- Targets ---
122cdf0e10cSrcweir
123cdf0e10cSrcweir.INCLUDE : target.mk
124cdf0e10cSrcweir
125cdf0e10cSrcweirALLTAR : $(MYXCUFILES)
126cdf0e10cSrcweir
127cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
128cdf0e10cSrcweirXCU_SOURCEDIR:=$(PROCESSOUT)$/merge$/$(PACKAGEDIR)
129cdf0e10cSrcweir.ELSE			# "$(WITH_LANG)"!=""
130cdf0e10cSrcweirXCU_SOURCEDIR:=.
131cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
132cdf0e10cSrcweir
133cdf0e10cSrcweir$(SPOOLDIR)$/$(PACKAGEDIR)$/Addons$/Addons-onlineupdate.xcu : $(XCU_SOURCEDIR)$/Addons.xcu
134cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
135cdf0e10cSrcweir	@$(COPY) $< $@
136cdf0e10cSrcweir
137cdf0e10cSrcweir$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-onlineupdate.xcu : $(XCU_SOURCEDIR)$/Jobs.xcu
138cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
139cdf0e10cSrcweir	@$(COPY) $< $@
140cdf0e10cSrcweir#	@$(PERL) transform.pl < $< > $@
141cdf0e10cSrcweir
142cdf0e10cSrcweir
143cdf0e10cSrcweirALLTAR : $(MISC)/updchk.uno.component
144cdf0e10cSrcweir
145cdf0e10cSrcweir$(MISC)/updchk.uno.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
146cdf0e10cSrcweir        updchk.uno.component
147cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
148cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
149cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt updchk.uno.component
15035779863SAriel Constenla-Haile
15135779863SAriel Constenla-Haile.ENDIF # "$(ENABLE_ONLINE_UPDATE)" == "YES"
152