xref: /aoo41x/main/l10ntools/source/help/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ		= ..$/..
25PRJNAME = l10ntools
26TARGET  = HelpLinker
27LIBBASENAME = helplinker
28PACKAGE = com$/sun$/star$/help
29TARGETTYPE=CUI
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE : settings.mk
34.INCLUDE : helplinker.pmk
35
36.IF "$(SYSTEM_LIBXSLT)" == "YES"
37CFLAGS+= $(LIBXSLT_CFLAGS)
38.ELSE
39LIBXSLTINCDIR=external$/libxslt
40CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
41.ENDIF
42
43.IF "$(SYSTEM_EXPAT)" == "YES"
44CFLAGS+=-DSYSTEM_EXPAT
45.ENDIF
46
47OBJFILES=\
48        $(OBJ)$/HelpLinker.obj \
49        $(OBJ)$/HelpCompiler.obj
50SLOFILES=\
51        $(SLO)$/HelpLinker.obj \
52        $(SLO)$/HelpCompiler.obj
53
54EXCEPTIONSFILES=\
55        $(OBJ)$/HelpLinker.obj \
56        $(OBJ)$/HelpCompiler.obj \
57        $(SLO)$/HelpLinker.obj \
58        $(SLO)$/HelpCompiler.obj
59.IF "$(OS)" == "MACOSX" && "$(CPU)" == "P" && "$(COM)" == "GCC"
60# There appears to be a GCC 4.0.1 optimization error causing _file:good() to
61# report true right before the call to writeOut at HelpLinker.cxx:1.12 l. 954
62# but out.good() to report false right at the start of writeOut at
63# HelpLinker.cxx:1.12 l. 537:
64NOOPTFILES=\
65        $(OBJ)$/HelpLinker.obj \
66        $(SLO)$/HelpLinker.obj
67.ENDIF
68
69APP1TARGET= $(TARGET)
70APP1OBJS=\
71      $(OBJ)$/HelpLinker.obj \
72      $(OBJ)$/HelpCompiler.obj
73
74APP1STDLIBS+=$(SALLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
75
76SHL1TARGET	=$(LIBBASENAME)$(DLLPOSTFIX)
77SHL1LIBS=	$(SLB)$/$(TARGET).lib
78SHL1IMPLIB	=i$(LIBBASENAME)
79SHL1DEF		=$(MISC)$/$(SHL1TARGET).def
80SHL1STDLIBS =$(SALLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
81SHL1USE_EXPORTS	=ordinal
82
83DEF1NAME	=$(SHL1TARGET)
84DEFLIB1NAME	=$(TARGET)
85
86JAVAFILES = \
87	HelpIndexerTool.java			        \
88	HelpFileDocument.java
89
90
91JAVACLASSFILES = \
92	$(CLASSDIR)$/$(PACKAGE)$/HelpIndexerTool.class			        \
93	$(CLASSDIR)$/$(PACKAGE)$/HelpFileDocument.class
94
95.IF "$(SYSTEM_LUCENE)" == "YES"
96EXTRAJARFILES += $(LUCENE_CORE_JAR) $(LUCENE_ANALYZERS_JAR)
97.ELSE
98JARFILES += lucene-core-2.3.jar lucene-analyzers-2.3.jar
99.ENDIF
100JAVAFILES = $(subst,$(CLASSDIR)$/$(PACKAGE)$/, $(subst,.class,.java $(JAVACLASSFILES)))
101
102JARCLASSDIRS	   = $(PACKAGE)/*
103JARTARGET	       = HelpIndexerTool.jar
104JARCOMPRESS        = TRUE
105
106# --- Targets ------------------------------------------------------
107
108.INCLUDE :  target.mk
109