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 $
11 # $Revision: 1.22.28.1 $
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 #----------------------------------------------------------------
40 .IF
"$(L10N_framework)"==""
42 CPPDOCREFNAME
="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference"
43 JAVADOCREFNAME
="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference"
45 CPP_DOCU_INDEX_FILE
= $(DESTDIRGENCPPREF
)$/index.html
46 JAVA_DOCU_INDEX_FILE
= $(DESTDIRGENJAVAREF
)$/index.html
48 CPP_DOCU_CLEANUP_FLAG
= $(MISC
)$/cpp_docu_cleanup.flag
50 JAVA_SRC_DIR
=$(MISC
)$/java_src
52 com.sun.star.comp.helper \
53 com.sun.star.lib.uno.helper \
54 com.sun.star.lib.unoloader \
56 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/lib
$/util
$/UrlToFileMapper.java
57 # com.sun.star.beans \
60 $(JAVA_SRC_DIR
)$/jurt_src.zip \
61 $(JAVA_SRC_DIR
)$/juh_src.zip \
62 $(JAVA_SRC_DIR
)$/ridl_src.zip \
63 $(JAVA_SRC_DIR
)$/unoloader_src.zip
66 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/ContainerFactory.java \
67 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/JavaWindowPeerFake.java \
68 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/LocalOfficeConnection.java \
69 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/LocalOfficeWindow.java \
70 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/NativeConnection.java \
71 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/NativeService.java \
72 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/OfficeConnection.java \
73 $(JAVA_SRC_DIR
)$/com
$/sun
$/star
$/beans
$/OfficeWindow.java
75 AUTODOCPARAMS
= -lg c
++ \
76 -p sal
$(INCOUT
) -t sal
-t osl
-t rtl \
77 -p store
$(INCOUT
) -t store \
78 -p registry
$(INCOUT
) -t registry \
79 -p cppu
$(INCOUT
) -t cppu
-t com
-t typelib
-t uno \
80 -p cppuhelper
$(INCOUT
) -t cppuhelper \
81 -p salhelper
$(INCOUT
) -t salhelper \
82 -p bridges
$(INCOUT
) -t bridges
84 JAVADOCPARAMS
= -use
-splitindex
-windowtitle
"Java UNO Runtime Reference" -header
$(JAVADOCREFNAME
) -d
$(DESTDIRGENJAVAREF
) -sourcepath
$(JAVA_SRC_DIR
) -classpath
$(SOLARBINDIR
)$/ridl.jar
-linkoffline ..
/..
/common
/ref .
/uno
-linkoffline http
://java.sun.com
/j2se
/1.4.1/docs
/api .
/java
$(JAVA_PACKAGES
)
86 JAVADOCLOG
= $(MISC
)$/javadoc_log.txt
88 .IF
"$(SOLAR_JAVA)"!=""
90 $(CPP_DOCU_INDEX_FILE
) \
91 $(JAVA_DOCU_INDEX_FILE
)
94 all: $(CPP_DOCU_INDEX_FILE
)
98 $(CPP_DOCU_CLEANUP_FLAG
) : $(INCLUDELIST
) $(PRJ
)$/docs
$/cpp$/ref
$/cpp.css
99 @@
-$(MY_DELETE_RECURSIVE
) $(DESTDIRGENCPPREF
)
102 $(CPP_DOCU_INDEX_FILE
) : $(CPP_DOCU_CLEANUP_FLAG
)
104 $(MY_AUTODOC
) -html
$(DESTDIRGENCPPREF
) -name
$(CPPDOCREFNAME
) $(AUTODOCPARAMS
)
105 -rm $(@
:d
:d
)$/cpp.css
106 $(MY_TEXTCOPY
) $(MY_TEXTCOPY_SOURCEPRE
) $(PRJ
)$/docs
$/cpp$/ref
$/cpp.css
$(MY_TEXTCOPY_TARGETPRE
) $(@
:d
:d
)$/cpp.css
108 $(JAVA_SRC_FILES
) : $(SOLARCOMMONBINDIR
)$/$$(@
:f
)
111 cd
$(JAVA_SRC_DIR
) && unzip
-quo
$(@
:f
)
113 #$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java
114 # -$(MKDIRHIER) $(@:d)
117 #$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES)
118 .IF
"$(SOLAR_JAVA)"!=""
119 $(JAVA_DOCU_INDEX_FILE
) .SEQUENTIAL
: $(JAVA_SRC_FILES
)
121 $(JAVADOC
) -J-Xmx120m
$(JAVADOCPARAMS
) > $(JAVADOCLOG
)