xref: /aoo41x/main/l10ntools/source/help/makefile.mk (revision cdf0e10c)
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_DB)" == "YES"
48CFLAGS+=-DSYSTEM_DB -I$(DB_INCLUDES)
49.ENDIF
50
51.IF "$(SYSTEM_EXPAT)" == "YES"
52CFLAGS+=-DSYSTEM_EXPAT
53.ENDIF
54
55OBJFILES=\
56        $(OBJ)$/HelpLinker.obj \
57        $(OBJ)$/HelpCompiler.obj
58SLOFILES=\
59        $(SLO)$/HelpLinker.obj \
60        $(SLO)$/HelpCompiler.obj
61
62EXCEPTIONSFILES=\
63        $(OBJ)$/HelpLinker.obj \
64        $(OBJ)$/HelpCompiler.obj \
65        $(SLO)$/HelpLinker.obj \
66        $(SLO)$/HelpCompiler.obj
67.IF "$(OS)" == "MACOSX" && "$(CPU)" == "P" && "$(COM)" == "GCC"
68# There appears to be a GCC 4.0.1 optimization error causing _file:good() to
69# report true right before the call to writeOut at HelpLinker.cxx:1.12 l. 954
70# but out.good() to report false right at the start of writeOut at
71# HelpLinker.cxx:1.12 l. 537:
72NOOPTFILES=\
73        $(OBJ)$/HelpLinker.obj \
74        $(SLO)$/HelpLinker.obj
75.ENDIF
76
77APP1TARGET= $(TARGET)
78APP1OBJS=\
79      $(OBJ)$/HelpLinker.obj \
80      $(OBJ)$/HelpCompiler.obj
81
82APP1STDLIBS+=$(SALLIB) $(BERKELEYLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
83
84SHL1TARGET	=$(LIBBASENAME)$(DLLPOSTFIX)
85SHL1LIBS=	$(SLB)$/$(TARGET).lib
86SHL1IMPLIB	=i$(LIBBASENAME)
87SHL1DEF		=$(MISC)$/$(SHL1TARGET).def
88SHL1STDLIBS =$(SALLIB) $(BERKELEYLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
89SHL1USE_EXPORTS	=ordinal
90
91DEF1NAME	=$(SHL1TARGET)
92DEFLIB1NAME	=$(TARGET)
93
94JAVAFILES = \
95	HelpIndexerTool.java			        \
96	HelpFileDocument.java
97
98
99JAVACLASSFILES = \
100	$(CLASSDIR)$/$(PACKAGE)$/HelpIndexerTool.class			        \
101	$(CLASSDIR)$/$(PACKAGE)$/HelpFileDocument.class
102
103.IF "$(SYSTEM_LUCENE)" == "YES"
104EXTRAJARFILES += $(LUCENE_CORE_JAR) $(LUCENE_ANALYZERS_JAR)
105.ELSE
106JARFILES += lucene-core-2.3.jar lucene-analyzers-2.3.jar
107.ENDIF
108JAVAFILES = $(subst,$(CLASSDIR)$/$(PACKAGE)$/, $(subst,.class,.java $(JAVACLASSFILES)))
109
110JARCLASSDIRS	   = $(PACKAGE)/*
111JARTARGET	       = HelpIndexerTool.jar
112JARCOMPRESS        = TRUE
113
114# --- Targets ------------------------------------------------------
115
116.INCLUDE :  target.mk
117