xref: /aoo42x/main/l10ntools/source/help/makefile.mk (revision c01398f2)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ		= ..$/..
29PRJNAME = l10ntools
30TARGET  = HelpLinker
31LIBBASENAME = helplinker
32PACKAGE = com$/sun$/star$/help
33TARGETTYPE=CUI
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE : settings.mk
38.INCLUDE : helplinker.pmk
39
40.IF "$(SYSTEM_LIBXSLT)" == "YES"
41CFLAGS+= $(LIBXSLT_CFLAGS)
42.ELSE
43LIBXSLTINCDIR=external$/libxslt
44CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
45.ENDIF
46
47.IF "$(SYSTEM_EXPAT)" == "YES"
48CFLAGS+=-DSYSTEM_EXPAT
49.ENDIF
50
51OBJFILES=\
52        $(OBJ)$/HelpLinker.obj \
53        $(OBJ)$/HelpCompiler.obj
54SLOFILES=\
55        $(SLO)$/HelpLinker.obj \
56        $(SLO)$/HelpCompiler.obj
57
58EXCEPTIONSFILES=\
59        $(OBJ)$/HelpLinker.obj \
60        $(OBJ)$/HelpCompiler.obj \
61        $(SLO)$/HelpLinker.obj \
62        $(SLO)$/HelpCompiler.obj
63.IF "$(OS)" == "MACOSX" && "$(CPU)" == "P" && "$(COM)" == "GCC"
64# There appears to be a GCC 4.0.1 optimization error causing _file:good() to
65# report true right before the call to writeOut at HelpLinker.cxx:1.12 l. 954
66# but out.good() to report false right at the start of writeOut at
67# HelpLinker.cxx:1.12 l. 537:
68NOOPTFILES=\
69        $(OBJ)$/HelpLinker.obj \
70        $(SLO)$/HelpLinker.obj
71.ENDIF
72
73APP1TARGET= $(TARGET)
74APP1OBJS=\
75      $(OBJ)$/HelpLinker.obj \
76      $(OBJ)$/HelpCompiler.obj
77
78APP1STDLIBS+=$(SALLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
79
80SHL1TARGET	=$(LIBBASENAME)$(DLLPOSTFIX)
81SHL1LIBS=	$(SLB)$/$(TARGET).lib
82SHL1IMPLIB	=i$(LIBBASENAME)
83SHL1DEF		=$(MISC)$/$(SHL1TARGET).def
84SHL1STDLIBS =$(SALLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
85SHL1USE_EXPORTS	=ordinal
86
87DEF1NAME	=$(SHL1TARGET)
88DEFLIB1NAME	=$(TARGET)
89
90JAVAFILES = \
91	HelpIndexerTool.java			        \
92	HelpFileDocument.java
93
94
95JAVACLASSFILES = \
96	$(CLASSDIR)$/$(PACKAGE)$/HelpIndexerTool.class			        \
97	$(CLASSDIR)$/$(PACKAGE)$/HelpFileDocument.class
98
99.IF "$(SYSTEM_LUCENE)" == "YES"
100EXTRAJARFILES += $(LUCENE_CORE_JAR) $(LUCENE_ANALYZERS_JAR)
101.ELSE
102JARFILES += lucene-core-2.3.jar lucene-analyzers-2.3.jar
103.ENDIF
104JAVAFILES = $(subst,$(CLASSDIR)$/$(PACKAGE)$/, $(subst,.class,.java $(JAVACLASSFILES)))
105
106JARCLASSDIRS	   = $(PACKAGE)/*
107JARTARGET	       = HelpIndexerTool.jar
108JARCOMPRESS        = TRUE
109
110# --- Targets ------------------------------------------------------
111
112.INCLUDE :  target.mk
113