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 #*************************************************************************
32 PRJ
= ..
$/..
$/..
$/..
$/..
35 LIBBASENAME
= helplinker
36 PACKAGE
= com
$/sun
$/star
$/help
39 # --- Settings -----------------------------------------------------
41 .INCLUDE
: settings.mk
42 .INCLUDE
: helplinker.pmk
44 .IF
"$(SYSTEM_LIBXSLT)" == "YES"
45 CFLAGS
+= $(LIBXSLT_CFLAGS
)
47 LIBXSLTINCDIR
=external
$/libxslt
48 CFLAGS
+= -I
$(SOLARINCDIR
)$/$(LIBXSLTINCDIR
)
51 .IF
"$(SYSTEM_DB)" == "YES"
52 CFLAGS
+=-DSYSTEM_DB
-I
$(DB_INCLUDES
)
55 .IF
"$(SYSTEM_EXPAT)" == "YES"
56 CFLAGS
+=-DSYSTEM_EXPAT
60 $(OBJ
)$/HelpLinker.obj \
61 $(OBJ
)$/HelpCompiler.obj
63 $(SLO
)$/HelpLinker.obj \
64 $(SLO
)$/HelpCompiler.obj
67 $(OBJ
)$/HelpLinker.obj \
68 $(OBJ
)$/HelpCompiler.obj \
69 $(SLO
)$/HelpLinker.obj \
70 $(SLO
)$/HelpCompiler.obj
71 .IF
"$(OS)" == "MACOSX" && "$(CPU)" == "P" && "$(COM)" == "GCC"
72 # There appears to be a GCC 4.0.1 optimization error causing _file:good() to
73 # report true right before the call to writeOut at HelpLinker.cxx:1.12 l. 954
74 # but out.good() to report false right at the start of writeOut at
75 # HelpLinker.cxx:1.12 l. 537:
77 $(OBJ
)$/HelpLinker.obj \
78 $(SLO
)$/HelpLinker.obj
83 $(OBJ
)$/HelpLinker.obj \
84 $(OBJ
)$/HelpCompiler.obj
87 APP1STDLIBS
+=$(SALLIB
) $(BERKELEYLIB
) $(XSLTLIB
) $(EXPATASCII3RDLIB
)
89 SHL1TARGET
=$(LIBBASENAME
)$(DLLPOSTFIX
)
90 SHL1LIBS
= $(SLB
)$/$(TARGET
).lib
91 SHL1IMPLIB
=i
$(LIBBASENAME
)
92 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
93 SHL1STDLIBS
=$(SALLIB
) $(BERKELEYLIB
) $(XSLTLIB
) $(EXPATASCII3RDLIB
)
94 SHL1USE_EXPORTS
=ordinal
96 DEF1NAME
=$(SHL1TARGET
)
97 DEFLIB1NAME
=$(TARGET
)
100 $(CLASSDIR
)$/$(PACKAGE
)$/HelpSearch.class \
101 $(CLASSDIR
)$/$(PACKAGE
)$/HelpIndexer.class \
102 $(CLASSDIR
)$/$(PACKAGE
)$/HelpComponent.class \
103 $(CLASSDIR
)$/$(PACKAGE
)$/HelpFileDocument.class
105 JARFILES
= ridl.jar jurt.jar unoil.jar juh.jar
106 .IF
"$(SYSTEM_LUCENE)" == "YES"
107 XCLASSPATH
!:=$(XCLASSPATH
)$(PATH_SEPERATOR
)$(LUCENE_CORE_JAR
)$(PATH_SEPERATOR
)$(LUCENE_ANALYZERS_JAR
)
108 COMP
=fix_system_lucene
110 JARFILES
+= lucene-core-2.3.jar lucene-analyzers-2.3.jar
112 JAVAFILES
= $(subst,$(CLASSDIR
)$/$(PACKAGE
)$/, $(subst,.class
,.java
$(JAVACLASSFILES
)))
114 JARTARGET
= LuceneHelpWrapper.jar
116 CUSTOMMANIFESTFILE
= MANIFEST.MF
118 # --- Targets ------------------------------------------------------
122 .IF
"$(JARTARGETN)"!=""
123 $(JARTARGETN
) : $(COMP
)
127 @echo
"Fix Java Class-Path entry for Lucene libraries from system."
128 @
$(SED
) -r
-e
"s#^(Class-Path:).*#\1 file://$(LUCENE_CORE_JAR) file://$(LUCENE_ANALYZERS_JAR)#" \
129 -i ..
/..
/..
/..
/..
/$(INPATH
)/class
/HelpLinker
/META-INF
/MANIFEST.MF