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