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 = ..$/..$/.. 25 26PRJNAME = lingucomponent 27TARGET = spell 28ENABLE_EXCEPTIONS=TRUE 29USE_DEFFILE=TRUE 30 31.IF "$(SYSTEM_HUNSPELL)" != "YES" 32HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell 33.ENDIF 34 35#----- Settings --------------------------------------------------------- 36 37.INCLUDE : settings.mk 38 39# --- Files -------------------------------------------------------- 40 41.IF "$(ENABLE_HUNSPELL)" == "YES" 42 43CXXFLAGS += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS) 44CFLAGSCXX += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS) 45CFLAGSCC += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS) 46 47EXCEPTIONSFILES= \ 48 $(SLO)$/sspellimp.obj 49 50SLOFILES= \ 51 $(SLO)$/sreg.obj\ 52 $(SLO)$/sspellimp.obj 53 54.IF "$(GUI)" == "OS2" 55REALNAME:=$(TARGET) 56.ELSE 57REALNAME:=$(TARGET).uno 58.ENDIF 59SHL1TARGET= $(REALNAME)$(DLLPOSTFIX) 60 61SHL1STDLIBS= \ 62 $(CPPULIB) \ 63 $(CPPUHELPERLIB) \ 64 $(I18NISOLANGLIB) \ 65 $(TOOLSLIB) \ 66 $(UNOTOOLSLIB) \ 67 $(SVLLIB) \ 68 $(SALLIB) \ 69 $(LNGLIB) \ 70 $(ULINGULIB) \ 71 $(ICUUCLIB) \ 72 $(HUNSPELLLIB) 73 74# build DLL 75SHL1LIBS= $(SLB)$/$(TARGET).lib $(SLB)$/libulingu.lib 76SHL1IMPLIB= i$(REALNAME) 77SHL1DEPN= $(SHL1LIBS) 78SHL1DEF= $(MISC)$/$(SHL1TARGET).def 79 80# Hunspell is a static library. Avoid the definition 81# LIBHUNSPELL_DLL_EXPORTED __declspec(dllimport) 82# 83CDEFS+=-DHUNSPELL_STATIC 84 85SHL1VERSIONMAP=$(SOLARENV)/src/component.map 86 87# build DEF file 88DEF1NAME =$(SHL1TARGET) 89DEF1EXPORTFILE= exports.dxp 90 91# --- Targets ------------------------------------------------------ 92 93.INCLUDE : target.mk 94 95 96ALLTAR : $(MISC)/spell.component 97 98$(MISC)/spell.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 99 spell.component 100 $(XSLTPROC) --nonet --stringparam uri \ 101 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 102 $(SOLARENV)/bin/createcomponent.xslt spell.component 103 104.ELSE 105all: 106 @echo "hunspell disabled" 107.ENDIF 108