xref: /aoo41x/main/odk/pack/copying/makefile.mk (revision 5979ef3c)
1cdf0e10cSrcweir#*************************************************************************
2cdf0e10cSrcweir#
3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4cdf0e10cSrcweir#
5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6cdf0e10cSrcweir#
7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8cdf0e10cSrcweir#
9cdf0e10cSrcweir# This file is part of OpenOffice.org.
10cdf0e10cSrcweir#
11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14cdf0e10cSrcweir#
15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20cdf0e10cSrcweir#
21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25cdf0e10cSrcweir#
26cdf0e10cSrcweir#*************************************************************************
27cdf0e10cSrcweir
28cdf0e10cSrcweirPRJ=../..
29cdf0e10cSrcweirPRJNAME=odk
30cdf0e10cSrcweirTARGET=copying
31cdf0e10cSrcweir
32cdf0e10cSrcweir#----------------------------------------------------------------
33cdf0e10cSrcweir.INCLUDE: settings.mk
34cdf0e10cSrcweir.INCLUDE: $(PRJ)/util/makefile.pmk
35cdf0e10cSrcweir#----------------------------------------------------------------
36cdf0e10cSrcweir
37cdf0e10cSrcweirIDLLIST:={$(subst,/,/ $(shell @$(FIND) $(IDLOUT)/com -type f))}
38cdf0e10cSrcweirDESTIDLLIST={$(subst,$(IDLOUT),$(DESTDIRIDL) $(IDLLIST))}
39cdf0e10cSrcweir
40cdf0e10cSrcweirDESTINCLUDELIST={$(subst,$(SOLARINCDIR),$(DESTDIRINC) $(INCLUDELIST))}
41cdf0e10cSrcweirDESTINCLUDELIST+=$(DESTDIRINC)/udkversion.mk
42cdf0e10cSrcweir
43cdf0e10cSrcweirDESTINCDIRLIST={$(subst,$(INCOUT),$(DESTDIRINC) $(INCLUDEDIRLIST))}
44cdf0e10cSrcweir
45cdf0e10cSrcweirIDL_DOCU_INDEX_FILE = $(DESTDIRGENIDLREF)/module-ix.html
46cdf0e10cSrcweirIDL_DOCU_CLEANUP_FLAG = $(MISC)/idl_docu_cleanup.flag
47cdf0e10cSrcweir
48cdf0e10cSrcweirIDL_CHAPTER_REFS=idl_chapter_refs.txt
49cdf0e10cSrcweir
50cdf0e10cSrcweirEXELIST = \
51cdf0e10cSrcweir	$(DESTDIRBIN)/cppumaker$(EXEPOSTFIX) 	\
52cdf0e10cSrcweir	$(DESTDIRBIN)/regcompare$(EXEPOSTFIX) 	\
53*5979ef3cSJürgen Schmidt	$(DESTDIRBIN)/ucpp$(EXEPOSTFIX) 	\
54cdf0e10cSrcweir	$(DESTDIRBIN)/idlc$(EXEPOSTFIX) 	\
55cdf0e10cSrcweir	$(DESTDIRBIN)/javamaker$(EXEPOSTFIX) 	\
56cdf0e10cSrcweir	$(DESTDIRBIN)/autodoc$(EXEPOSTFIX) \
57cdf0e10cSrcweir	$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) \
58cdf0e10cSrcweir	$(DESTDIRBIN)/uno-skeletonmaker$(EXEPOSTFIX)
59cdf0e10cSrcweir
60cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
61cdf0e10cSrcweirEXELIST += \
62cdf0e10cSrcweir	$(DESTDIRBIN)/climaker$(EXEPOSTFIX)
63cdf0e10cSrcweir.ENDIF
64cdf0e10cSrcweir
65cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
66cdf0e10cSrcweirCLILIST = \
67cdf0e10cSrcweir	$(DESTDIRCLI)/cli_basetypes.dll 	\
68cdf0e10cSrcweir	$(DESTDIRCLI)/cli_uretypes.dll 	\
69cdf0e10cSrcweir	$(DESTDIRCLI)/cli_oootypes.dll 	\
70cdf0e10cSrcweir	$(DESTDIRCLI)/cli_ure.dll 	\
71cdf0e10cSrcweir	$(DESTDIRCLI)/cli_cppuhelper.dll
72cdf0e10cSrcweir.ENDIF
73cdf0e10cSrcweir
74cdf0e10cSrcweir
75cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
76cdf0e10cSrcweirLIBLIST = \
77cdf0e10cSrcweir	$(DESTDIRLIB)/istore.lib 	\
78cdf0e10cSrcweir	$(DESTDIRLIB)/ireg.lib 	\
79cdf0e10cSrcweir	$(DESTDIRLIB)/isal.lib 	\
80cdf0e10cSrcweir	$(DESTDIRLIB)/isalhelper.lib 	\
81cdf0e10cSrcweir	$(DESTDIRLIB)/icppu.lib 	\
82cdf0e10cSrcweir	$(DESTDIRLIB)/icppuhelper.lib 	\
83cdf0e10cSrcweir	$(DESTDIRLIB)/irmcxt.lib \
84cdf0e10cSrcweir	$(DESTDIRLIB)/ipurpenvhelper3MSC.lib
85cdf0e10cSrcweir
86cdf0e10cSrcweir.IF "$(COMEX)"=="8"
87cdf0e10cSrcweir	LIBLIST += $(DESTDIRLIB)/stlport_vc7.lib
88cdf0e10cSrcweir.ELIF "$(COMEX)"=="10" || "$(COMEX)"=="11" || "$(COMEX)"=="12"
89cdf0e10cSrcweir	LIBLIST += $(DESTDIRLIB)/stlport_vc71.lib
90cdf0e10cSrcweir.ELSE
91cdf0e10cSrcweir	LIBLIST += $(DESTDIRLIB)/stlport_vc6.lib
92cdf0e10cSrcweir.ENDIF
93cdf0e10cSrcweir.ENDIF
94cdf0e10cSrcweir
95cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
96cdf0e10cSrcweir	LIBLIST = $(DESTDIRLIB)/libsalcpprt.a
97cdf0e10cSrcweir.ENDIF
98cdf0e10cSrcweir
99cdf0e10cSrcweir# note, that inner class files are copied implicitly
100cdf0e10cSrcweirDESTCLASSESLIST= \
101cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/Loader.class \
102cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder.class \
103cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKey.class \
104cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKeyException.class
105cdf0e10cSrcweir#	$(DESTDIRJAR)/com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class \
106cdf0e10cSrcweir#	$(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class \
107cdf0e10cSrcweir
108cdf0e10cSrcweirSETTINGSLIST= \
109cdf0e10cSrcweir	$(DESTDIRSETTINGS)/settings.mk \
110cdf0e10cSrcweir	$(DESTDIRSETTINGS)/std.mk \
111cdf0e10cSrcweir	$(DESTDIRSETTINGS)/stdtarget.mk \
112cdf0e10cSrcweir	$(DESTDIRSETTINGS)/dk.mk
113cdf0e10cSrcweir
114cdf0e10cSrcweir
115cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
116cdf0e10cSrcweirSETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.def
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
120cdf0e10cSrcweirSETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.map
121cdf0e10cSrcweir.ENDIF
122cdf0e10cSrcweir
123cdf0e10cSrcweir
124cdf0e10cSrcweirDOCUHTMLFILES+= \
125cdf0e10cSrcweir	$(DESTDIR)/index.html \
126cdf0e10cSrcweir	$(DESTDIRDOCU)/tools.html \
127cdf0e10cSrcweir	$(DESTDIRDOCU)/notsupported.html \
128cdf0e10cSrcweir	$(DESTDIRDOCU)/install.html \
129cdf0e10cSrcweir	$(DESTDIREXAMPLES)/examples.html \
130cdf0e10cSrcweir	$(DESTDIREXAMPLES)/DevelopersGuide/examples.html
131cdf0e10cSrcweir
132cdf0e10cSrcweirDOCUFILES= \
133cdf0e10cSrcweir	$(DOCUHTMLFILES) \
134cdf0e10cSrcweir	$(DESTDIRDOCU)/sdk_styles.css \
135cdf0e10cSrcweir	$(DESTDIRGENIDLREF)/idl.css \
136cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nada.gif \
137cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/arrow-2.gif \
138cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bluball.gif \
139cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/orc-main-app_32.png \
140cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \
141cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/odk-footer-logo.gif \
142cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/arrow-1.gif \
143cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/arrow-3.gif \
144cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bg_table.png \
145cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bg_table2.png \
146cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bg_table3.png \
147cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_down.png \
148cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_home.png \
149cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_left.png \
150cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_right.png \
151cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_up.png \
152cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_head-1.png \
153cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_head-2.png \
154cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_line-1.gif \
155cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_line-2.gif
156cdf0e10cSrcweir
157cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
158cdf0e10cSrcweirINSTALLSCRIPT= \
159cdf0e10cSrcweir	$(DESTDIR)/config.guess \
160cdf0e10cSrcweir	$(DESTDIR)/config.sub \
161cdf0e10cSrcweir	$(DESTDIR)/configure.pl \
162cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_unix \
163cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_unix.sh.in \
164cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_unix.csh.in
165cdf0e10cSrcweir.ELSE
166cdf0e10cSrcweirINSTALLSCRIPT= \
167cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_windows.bat \
168cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_windows.template \
169cdf0e10cSrcweir	$(DESTDIR)/setsdkname.bat \
170cdf0e10cSrcweir	$(DESTDIR)/cfgWin.js
171cdf0e10cSrcweir.ENDIF
172cdf0e10cSrcweir
173cdf0e10cSrcweirDIR_FILE_LIST=\
174cdf0e10cSrcweir	$(EXELIST) \
175cdf0e10cSrcweir	$(CLILIST) \
176cdf0e10cSrcweir	$(LIBLIST) \
177cdf0e10cSrcweir	$(SETTINGSLIST) \
178cdf0e10cSrcweir	$(DOCUFILES) \
179cdf0e10cSrcweir	$(INSTALLSCRIPT) \
180cdf0e10cSrcweir	$(DESTIDLLIST)  \
181cdf0e10cSrcweir	$(DESTINCLUDELIST) \
182cdf0e10cSrcweir	$(DESTCLASSESLIST) \
183cdf0e10cSrcweir    $(IDL_DOCU_INDEX_FILE) \
184cdf0e10cSrcweir    $(CONVERTTAGFLAG)
185cdf0e10cSrcweir
186cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
187cdf0e10cSrcweirDIR_FILE_LIST += $(DESTDIRBIN)/addsym-macosx.sh
188cdf0e10cSrcweir.ENDIF
189cdf0e10cSrcweir
190cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" != ""
191cdf0e10cSrcweirDIR_FILE_LIST += $(DESTDIRJAR)/win/unowinreg.dll
192cdf0e10cSrcweir.ENDIF
193cdf0e10cSrcweir
194cdf0e10cSrcweirDIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d))
195cdf0e10cSrcweirDIR_CREATE_FLAG:=$(MISC)/copying_dirs_created.txt
196cdf0e10cSrcweirDIR_FILE_FLAG:=$(MISC)/copying_files.txt
197cdf0e10cSrcweir
198cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" != ""
199cdf0e10cSrcweir# Special work for simple uno bootstrap mechanism
200cdf0e10cSrcweir# zip uno loader class files and winreg helper library for later
201cdf0e10cSrcweir# use in the build process (e.g. helper tools)
202cdf0e10cSrcweirMYZIPTARGET=$(BIN)/uno_loader_classes.zip
203cdf0e10cSrcweirMYZIPFLAGS=-u -r
204cdf0e10cSrcweirMYZIPDIR=$(DESTDIRJAR)
205cdf0e10cSrcweirMYZIPLIST=com/* win/*
206cdf0e10cSrcweir
207cdf0e10cSrcweir.ENDIF
208cdf0e10cSrcweir
209cdf0e10cSrcweir#--------------------------------------------------
210cdf0e10cSrcweir# TARGETS
211cdf0e10cSrcweir#--------------------------------------------------
212cdf0e10cSrcweir
213cdf0e10cSrcweir.IF "$(L10N_framework)"==""
214cdf0e10cSrcweir
215cdf0e10cSrcweirall : CLEAN_DKVERSION_CHECK \
216cdf0e10cSrcweir	$(DIR_FILE_LIST) \
217cdf0e10cSrcweir	$(DIR_FILE_FLAG) \
218cdf0e10cSrcweir
219cdf0e10cSrcweir.ENDIF
220cdf0e10cSrcweir
221cdf0e10cSrcweir#--------------------------------------------------
222cdf0e10cSrcweir# use global rules
223cdf0e10cSrcweir#--------------------------------------------------
224cdf0e10cSrcweir.INCLUDE: $(PRJ)/util/odk_rules.pmk
225cdf0e10cSrcweir
226cdf0e10cSrcweir
227cdf0e10cSrcweirCLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)/dk.mk
228cdf0e10cSrcweir
229cdf0e10cSrcweir
230cdf0e10cSrcweirCLEAN_DKVERSION_CHECK:
231cdf0e10cSrcweir	@@-rm -f $(CLEANUP_DKVERSION_FILE)
232cdf0e10cSrcweir
233cdf0e10cSrcweir$(DESTDIRBIN)/addsym-macosx.sh : addsym-macosx.sh
234cdf0e10cSrcweir	@@-rm -f $@
235cdf0e10cSrcweir	$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@
236cdf0e10cSrcweir	-chmod 755 $@
237cdf0e10cSrcweir
238cdf0e10cSrcweir$(DESTDIRSETTINGS)/dk.mk : dk.mk
239cdf0e10cSrcweir	@@-rm -f $@
240cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
241cdf0e10cSrcweir	tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/'> $@
242cdf0e10cSrcweir
243cdf0e10cSrcweir$(CONVERTTAGFLAG) : $(DOCUHTMLFILES)
244cdf0e10cSrcweir#    $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES)
245cdf0e10cSrcweir    @echo "tags converted" > $@
246cdf0e10cSrcweir
247cdf0e10cSrcweir$(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(PRJ)/docs/common/ref/idl.css $(DESTIDLLIST)
248cdf0e10cSrcweir	@@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF)
249cdf0e10cSrcweir	$(TOUCH) $@
250cdf0e10cSrcweir
251cdf0e10cSrcweir$(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG)
252cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
253cdf0e10cSrcweir	$(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" \
254cdf0e10cSrcweir		-name $(IDLDOCREFNAME) -lg idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL)
255cdf0e10cSrcweir	-rm $(@:d)/idl.css
256cdf0e10cSrcweir	$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)/docs/common/ref/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)/idl.css
257cdf0e10cSrcweir
258cdf0e10cSrcweir
259cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" != ""
260cdf0e10cSrcweir$(MYZIPTARGET) : $(BIN)/unowinreg.dll $(DESTCLASSESLIST)
261cdf0e10cSrcweir    cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ../../../bin/$(MYZIPTARGET:b) $(MYZIPLIST)
262cdf0e10cSrcweir.ENDIF
263