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 = ..$/..$/.. 29 30PRJNAME = lingucomponent 31TARGET = lnth 32ENABLE_EXCEPTIONS=TRUE 33USE_DEFFILE=TRUE 34 35 36.IF "$(MYTHESLIB)"=="" 37.IF "$(GUI)"=="UNX" 38MYTHESLIB=-lmythes 39.ENDIF # unx 40.IF "$(GUI)"=="OS2" 41MYTHESLIB=$(SLB)\libmythes.lib 42.ENDIF # os2 43.IF "$(GUI)"=="WNT" 44MYTHESLIB=libmythes.lib 45.ENDIF # wnt 46.ENDIF 47 48#----- Settings --------------------------------------------------------- 49 50.INCLUDE : settings.mk 51 52# --- Files -------------------------------------------------------- 53 54.IF "$(DISABLE_HUNSPELL)" == "" 55 56.IF "$(SYSTEM_HUNSPELL)" != "YES" 57HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell 58.ENDIF 59 60.IF "$(SYSTEM_MYTHES)" != "YES" 61CXXFLAGS += -I..$/mythes 62CFLAGSCXX += -I..$/mythes 63CFLAGSCC += -I..$/mythes 64.ENDIF 65CXXFLAGS += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS) 66CFLAGSCXX += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS) 67CFLAGSCC += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS) 68 69EXCEPTIONSFILES= \ 70 $(SLO)$/nthesimp.obj \ 71 $(SLO)$/nthesdta.obj 72 73SLOFILES= \ 74 $(SLO)$/nthesdta.obj\ 75 $(SLO)$/ntreg.obj\ 76 $(SLO)$/nthesimp.obj 77 78 79SHL1TARGET= $(TARGET)$(DLLPOSTFIX) 80 81SHL1STDLIBS= \ 82 $(CPPULIB) \ 83 $(CPPUHELPERLIB) \ 84 $(TOOLSLIB) \ 85 $(I18NISOLANGLIB) \ 86 $(SVLLIB) \ 87 $(SALLIB) \ 88 $(UNOTOOLSLIB) \ 89 $(LNGLIB) \ 90 $(ULINGULIB) \ 91 $(MYTHESLIB) \ 92 $(HUNSPELLLIB) 93 94# build DLL 95SHL1LIBS= $(SLB)$/$(TARGET).lib $(SLB)$/libulingu.lib 96SHL1IMPLIB= i$(TARGET) 97SHL1DEPN= $(SHL1LIBS) 98SHL1DEF= $(MISC)$/$(SHL1TARGET).def 99 100SHL1VERSIONMAP=$(SOLARENV)/src/component.map 101 102# build DEF file 103DEF1NAME =$(SHL1TARGET) 104DEF1EXPORTFILE= exports.dxp 105 106# --- Targets ------------------------------------------------------ 107 108.INCLUDE : target.mk 109 110 111ALLTAR : $(MISC)/lnth.component 112 113$(MISC)/lnth.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 114 lnth.component 115 $(XSLTPROC) --nonet --stringparam uri \ 116 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 117 $(SOLARENV)/bin/createcomponent.xslt lnth.component 118 119.ELSE 120all: 121 @echo "hunspell disabled" 122.ENDIF 123