1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
36 #----------------------------------------------------------------
38 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
39 #----------------------------------------------------------------
41 IDLLIST
:={$(subst,/,$/ $(shell @
$(FIND
) $(IDLOUT
) -type f | sed
-e
'/star.portal/d' -e
'/star.webservices/d'))}
42 DESTIDLLIST
={$(subst,$(IDLOUT
),$(DESTDIRIDL
) $(IDLLIST
))}
44 DESTINCLUDELIST
={$(subst,$(SOLARINCDIR
),$(DESTDIRINC
) $(INCLUDELIST
))}
45 DESTINCLUDELIST
+=$(DESTDIRINC
)$/udkversion.mk
47 DESTINCDIRLIST
={$(subst,$(INCOUT
),$(DESTDIRINC
) $(INCLUDEDIRLIST
))}
49 IDL_DOCU_INDEX_FILE
= $(DESTDIRGENIDLREF
)$/module-ix.html
50 IDL_DOCU_CLEANUP_FLAG
= $(MISC
)$/idl_docu_cleanup.flag
52 IDL_CHAPTER_REFS
=idl_chapter_refs.txt
53 IDL_SINCE_TAGS
=apiref-autodoc.since
56 $(DESTDIRBIN
)$/cppumaker
$(EXEPOSTFIX
) \
57 $(DESTDIRBIN
)$/regcompare
$(EXEPOSTFIX
) \
58 $(DESTDIRBIN
)$/idlcpp
$(EXEPOSTFIX
) \
59 $(DESTDIRBIN
)$/idlc
$(EXEPOSTFIX
) \
60 $(DESTDIRBIN
)$/javamaker
$(EXEPOSTFIX
) \
61 $(DESTDIRBIN
)$/autodoc
$(EXEPOSTFIX
) \
62 $(DESTDIRBIN
)$/unoapploader
$(EXEPOSTFIX
) \
63 $(DESTDIRBIN
)$/uno-skeletonmaker
$(EXEPOSTFIX
)
67 $(DESTDIRBIN
)$/climaker
$(EXEPOSTFIX
)
72 $(DESTDIRCLI
)$/cli_basetypes.dll \
73 $(DESTDIRCLI
)$/cli_uretypes.dll \
74 $(DESTDIRCLI
)$/cli_oootypes.dll \
75 $(DESTDIRCLI
)$/cli_ure.dll \
76 $(DESTDIRCLI
)$/cli_cppuhelper.dll
82 $(DESTDIRLIB
)$/istore.lib \
83 $(DESTDIRLIB
)$/ireg.lib \
84 $(DESTDIRLIB
)$/isal.lib \
85 $(DESTDIRLIB
)$/isalhelper.lib \
86 $(DESTDIRLIB
)$/icppu.lib \
87 $(DESTDIRLIB
)$/icppuhelper.lib \
88 $(DESTDIRLIB
)$/irmcxt.lib \
89 $(DESTDIRLIB
)$/ipurpenvhelper3MSC.lib
92 LIBLIST
+= $(DESTDIRLIB
)$/stlport_vc7.lib
93 .ELIF
"$(COMEX)"=="10" ||
"$(COMEX)"=="11" ||
"$(COMEX)"=="12"
94 LIBLIST
+= $(DESTDIRLIB
)$/stlport_vc71.lib
96 LIBLIST
+= $(DESTDIRLIB
)$/stlport_vc6.lib
101 LIBLIST
= $(DESTDIRLIB
)$/libsalcpprt.a
104 # note, that inner class files are copied implicitly
106 $(DESTDIRJAR
)$/com
$/sun
$/star
$/lib
$/loader
$/Loader.class \
107 $(DESTDIRJAR
)$/com
$/sun
$/star
$/lib
$/loader
$/InstallationFinder.class \
108 $(DESTDIRJAR
)$/com
$/sun
$/star
$/lib
$/loader
$/WinRegKey.class \
109 $(DESTDIRJAR
)$/com
$/sun
$/star
$/lib
$/loader
$/WinRegKeyException.class
110 # $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/Loader$$CustomURLClassLoader.class \
111 # $(DESTDIRJAR)$/com$/sun$/star$/lib$/loader$/InstallationFinder$$StreamGobbler.class \
114 $(DESTDIRSETTINGS
)$/settings.mk \
115 $(DESTDIRSETTINGS
)$/std.mk \
116 $(DESTDIRSETTINGS
)$/stdtarget.mk \
117 $(DESTDIRSETTINGS
)$/dk.mk
121 SETTINGSLIST
+=$(DESTDIRSETTINGS
)$/component.uno.def
125 SETTINGSLIST
+=$(DESTDIRSETTINGS
)$/component.uno.map
130 $(DESTDIR
)$/index.html \
131 $(DESTDIRDOCU
)$/tools.html \
132 $(DESTDIRDOCU
)$/notsupported.html \
133 $(DESTDIRDOCU
)$/install.html \
134 $(DESTDIREXAMPLES
)$/examples.html \
135 $(DESTDIREXAMPLES
)$/DevelopersGuide
$/examples.html
139 $(DESTDIRDOCU
)$/sdk_styles.css \
140 $(DESTDIRGENIDLREF
)$/idl.css \
141 $(DESTDIRDOCUIMAGES
)$/nada.gif \
142 $(DESTDIRDOCUIMAGES
)$/arrow-2.gif \
143 $(DESTDIRDOCUIMAGES
)$/bluball.gif \
144 $(DESTDIRDOCUIMAGES
)$/so-main-app_32.png \
145 $(DESTDIRDOCUIMAGES
)$/ooo-main-app_32.png \
146 $(DESTDIRDOCUIMAGES
)$/arrow-1.gif \
147 $(DESTDIRDOCUIMAGES
)$/arrow-3.gif \
148 $(DESTDIRDOCUIMAGES
)$/bg_table.gif \
149 $(DESTDIRDOCUIMAGES
)$/bg_table2.gif \
150 $(DESTDIRDOCUIMAGES
)$/bg_table3.gif \
151 $(DESTDIRDOCUIMAGES
)$/nav_down.png \
152 $(DESTDIRDOCUIMAGES
)$/nav_home.png \
153 $(DESTDIRDOCUIMAGES
)$/nav_left.png \
154 $(DESTDIRDOCUIMAGES
)$/nav_right.png \
155 $(DESTDIRDOCUIMAGES
)$/nav_up.png \
156 $(DESTDIRDOCUIMAGES
)$/sdk_head-1.gif \
157 $(DESTDIRDOCUIMAGES
)$/sdk_head-2.gif \
158 $(DESTDIRDOCUIMAGES
)$/sdk_head-3.gif \
159 $(DESTDIRDOCUIMAGES
)$/sdk_line-1.gif \
160 $(DESTDIRDOCUIMAGES
)$/sdk_line-2.gif
164 $(DESTDIR
)$/config.guess \
165 $(DESTDIR
)$/config.sub \
166 $(DESTDIR
)$/configure.pl \
167 $(DESTDIR
)$/setsdkenv_unix \
168 $(DESTDIR
)$/setsdkenv_unix.sh.in \
169 $(DESTDIR
)$/setsdkenv_unix.csh.in
172 $(DESTDIR
)$/setsdkenv_windows.bat \
173 $(DESTDIR
)$/setsdkenv_windows.template \
174 $(DESTDIR
)$/setsdkname.bat \
175 $(DESTDIR
)$/cfgWin.js
188 $(IDL_DOCU_INDEX_FILE
) \
191 .IF
"$(OS)"=="MACOSX"
192 DIR_FILE_LIST
+= $(DESTDIRBIN
)$/addsym-macosx.sh
195 .IF
"$(SOLAR_JAVA)" != ""
196 DIR_FILE_LIST
+= $(DESTDIRJAR
)$/win
$/unowinreg.dll
199 DIR_DIRECTORY_LIST
:=$(uniq
$(DIR_FILE_LIST
:d
))
200 DIR_CREATE_FLAG
:=$(MISC
)$/copying_dirs_created.txt
201 DIR_FILE_FLAG
:=$(MISC
)$/copying_files.txt
203 .IF
"$(SOLAR_JAVA)" != ""
204 # Special work for simple uno bootstrap mechanism
205 # zip uno loader class files and winreg helper library for later
206 # use in the build process (e.g. helper tools)
207 MYZIPTARGET
=$(BIN
)$/uno_loader_classes.zip
209 MYZIPDIR
=$(DESTDIRJAR
)
210 MYZIPLIST
=com
$/* win
$/*
214 #--------------------------------------------------
216 #--------------------------------------------------
218 .IF
"$(L10N_framework)"==""
220 all : CLEAN_DKVERSION_CHECK \
226 #--------------------------------------------------
228 #--------------------------------------------------
229 .INCLUDE
: $(PRJ
)$/util
$/odk_rules.pmk
232 CLEANUP_DKVERSION_FILE
=$(DESTDIRSETTINGS
)$/dk.mk
235 CLEAN_DKVERSION_CHECK
:
236 @@
-rm -f
$(CLEANUP_DKVERSION_FILE
)
238 $(DESTDIRBIN
)$/addsym-macosx.sh
: addsym-macosx.sh
240 $(MY_TEXTCOPY
) $(MY_TEXTCOPY_SOURCEPRE
) $< $(MY_TEXTCOPY_TARGETPRE
) $@
243 $(DESTDIRSETTINGS
)$/dk.mk
: dk.mk
246 tr
-d
"\015" < dk.mk | sed
-e
's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e
's/@@BUILDID@@/$(RSCREVISION)/'> $@
248 $(CONVERTTAGFLAG
) : $(DOCUHTMLFILES
)
249 $(PERL
) $(CONVERTTAGSCRIPT
) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES
)
250 @echo
"tags converted" > $@
252 $(IDL_DOCU_CLEANUP_FLAG
) : $(IDL_CHAPTER_REFS
) $(IDL_SINCE_TAGS
) $(PRJ
)$/docs
$/common
$/ref
$/idl.css
253 @@
-$(MY_DELETE_RECURSIVE
) $(DESTDIRGENIDLREF
)
256 $(IDL_DOCU_INDEX_FILE
) : $(IDL_DOCU_CLEANUP_FLAG
)
258 $(MY_AUTODOC
) -html
$(DESTDIRGENIDLREF
) -dvgroot
"http://wiki.services.openoffice.org/wiki" -sincefile
$(IDL_SINCE_TAGS
) -name
$(IDLDOCREFNAME
) -lg \
259 idl
-dvgfile
$(IDL_CHAPTER_REFS
) -t
$(DESTDIRIDL
)
261 $(MY_TEXTCOPY
) $(MY_TEXTCOPY_SOURCEPRE
) $(PRJ
)$/docs
$/common
$/ref
$/idl.css
$(MY_TEXTCOPY_TARGETPRE
) $(@
:d
:d
)$/idl.css
264 .IF
"$(SOLAR_JAVA)" != ""
265 $(MYZIPTARGET
) : $(BIN
)$/unowinreg.dll
$(DESTCLASSESLIST
)
266 cd
$(MYZIPDIR
) && zip
$(MYZIPFLAGS
) ..
$/..
$/..
$/bin
$/$(MYZIPTARGET
:b
) $(MYZIPLIST
)