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