xref: /trunk/main/l10ntools/source/help/makefile.mk (revision 7fb4469b)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ		= ..$/..
25cdf0e10cSrcweirPRJNAME = l10ntools
26cdf0e10cSrcweirTARGET  = HelpLinker
27cdf0e10cSrcweirLIBBASENAME = helplinker
28cdf0e10cSrcweirPACKAGE = com$/sun$/star$/help
29cdf0e10cSrcweirTARGETTYPE=CUI
30cdf0e10cSrcweir
31cdf0e10cSrcweir# --- Settings -----------------------------------------------------
32cdf0e10cSrcweir
33cdf0e10cSrcweir.INCLUDE : settings.mk
34cdf0e10cSrcweir.INCLUDE : helplinker.pmk
35cdf0e10cSrcweir
36cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES"
37cdf0e10cSrcweirCFLAGS+= $(LIBXSLT_CFLAGS)
38cdf0e10cSrcweir.ELSE
39cdf0e10cSrcweirLIBXSLTINCDIR=external$/libxslt
40cdf0e10cSrcweirCFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
41cdf0e10cSrcweir.ENDIF
42cdf0e10cSrcweir
43cdf0e10cSrcweir.IF "$(SYSTEM_EXPAT)" == "YES"
44cdf0e10cSrcweirCFLAGS+=-DSYSTEM_EXPAT
45cdf0e10cSrcweir.ENDIF
46cdf0e10cSrcweir
47cdf0e10cSrcweirOBJFILES=\
48cdf0e10cSrcweir        $(OBJ)$/HelpLinker.obj \
49cdf0e10cSrcweir        $(OBJ)$/HelpCompiler.obj
50cdf0e10cSrcweirSLOFILES=\
51cdf0e10cSrcweir        $(SLO)$/HelpLinker.obj \
52cdf0e10cSrcweir        $(SLO)$/HelpCompiler.obj
53cdf0e10cSrcweir
54cdf0e10cSrcweirEXCEPTIONSFILES=\
55cdf0e10cSrcweir        $(OBJ)$/HelpLinker.obj \
56cdf0e10cSrcweir        $(OBJ)$/HelpCompiler.obj \
57cdf0e10cSrcweir        $(SLO)$/HelpLinker.obj \
58cdf0e10cSrcweir        $(SLO)$/HelpCompiler.obj
59cdf0e10cSrcweir.IF "$(OS)" == "MACOSX" && "$(CPU)" == "P" && "$(COM)" == "GCC"
60cdf0e10cSrcweir# There appears to be a GCC 4.0.1 optimization error causing _file:good() to
61cdf0e10cSrcweir# report true right before the call to writeOut at HelpLinker.cxx:1.12 l. 954
62cdf0e10cSrcweir# but out.good() to report false right at the start of writeOut at
63cdf0e10cSrcweir# HelpLinker.cxx:1.12 l. 537:
64cdf0e10cSrcweirNOOPTFILES=\
65cdf0e10cSrcweir        $(OBJ)$/HelpLinker.obj \
66cdf0e10cSrcweir        $(SLO)$/HelpLinker.obj
67cdf0e10cSrcweir.ENDIF
68cdf0e10cSrcweir
69cdf0e10cSrcweirAPP1TARGET= $(TARGET)
70cdf0e10cSrcweirAPP1OBJS=\
71cdf0e10cSrcweir      $(OBJ)$/HelpLinker.obj \
72cdf0e10cSrcweir      $(OBJ)$/HelpCompiler.obj
73cdf0e10cSrcweir
74c01398f2SHerbert DürrAPP1STDLIBS+=$(SALLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
75cdf0e10cSrcweir
76cdf0e10cSrcweirSHL1TARGET	=$(LIBBASENAME)$(DLLPOSTFIX)
77cdf0e10cSrcweirSHL1LIBS=	$(SLB)$/$(TARGET).lib
78cdf0e10cSrcweirSHL1IMPLIB	=i$(LIBBASENAME)
79cdf0e10cSrcweirSHL1DEF		=$(MISC)$/$(SHL1TARGET).def
80c01398f2SHerbert DürrSHL1STDLIBS =$(SALLIB) $(XSLTLIB) $(EXPATASCII3RDLIB)
81cdf0e10cSrcweirSHL1USE_EXPORTS	=ordinal
82cdf0e10cSrcweir
83cdf0e10cSrcweirDEF1NAME	=$(SHL1TARGET)
84cdf0e10cSrcweirDEFLIB1NAME	=$(TARGET)
85cdf0e10cSrcweir
86cdf0e10cSrcweirJAVAFILES = \
87cdf0e10cSrcweir	HelpIndexerTool.java			        \
88cdf0e10cSrcweir	HelpFileDocument.java
89cdf0e10cSrcweir
90cdf0e10cSrcweir
91cdf0e10cSrcweirJAVACLASSFILES = \
92cdf0e10cSrcweir	$(CLASSDIR)$/$(PACKAGE)$/HelpIndexerTool.class			        \
93cdf0e10cSrcweir	$(CLASSDIR)$/$(PACKAGE)$/HelpFileDocument.class
94cdf0e10cSrcweir
95cdf0e10cSrcweir.IF "$(SYSTEM_LUCENE)" == "YES"
96cdf0e10cSrcweirEXTRAJARFILES += $(LUCENE_CORE_JAR) $(LUCENE_ANALYZERS_JAR)
97cdf0e10cSrcweir.ELSE
98*7fb4469bSPedro GiffuniJARFILES += lucene-core-2.9.4-dev.jar lucene-analyzers-2.9.4-dev.jar
99cdf0e10cSrcweir.ENDIF
100cdf0e10cSrcweirJAVAFILES = $(subst,$(CLASSDIR)$/$(PACKAGE)$/, $(subst,.class,.java $(JAVACLASSFILES)))
101cdf0e10cSrcweir
102cdf0e10cSrcweirJARCLASSDIRS	   = $(PACKAGE)/*
103cdf0e10cSrcweirJARTARGET	       = HelpIndexerTool.jar
104cdf0e10cSrcweirJARCOMPRESS        = TRUE
105cdf0e10cSrcweir
106cdf0e10cSrcweir# --- Targets ------------------------------------------------------
107cdf0e10cSrcweir
108cdf0e10cSrcweir.INCLUDE :  target.mk
109