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
65.IF "$(GUI)"=="OS2"
66REALNAME:=$(TARGET)
67.ELSE
68REALNAME:=$(TARGET).uno
69.ENDIF
70SHL1TARGET= $(REALNAME)$(DLLPOSTFIX)
71
72SHL1STDLIBS= \
73		$(CPPULIB) 	 \
74		$(CPPUHELPERLIB) 	 \
75		$(TOOLSLIB)		\
76        $(I18NISOLANGLIB)   \
77		$(SVLLIB)		\
78		$(SALLIB)		\
79		$(UNOTOOLSLIB)	\
80		$(LNGLIB) \
81                $(ULINGULIB) \
82		$(MYTHESLIB)
83
84# build DLL
85SHL1LIBS=       $(SLB)$/$(TARGET).lib $(SLB)$/libulingu.lib
86SHL1IMPLIB=		i$(REALNAME)
87SHL1DEPN=		$(SHL1LIBS)
88SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
89
90SHL1VERSIONMAP=$(SOLARENV)/src/component.map
91
92# build DEF file
93DEF1NAME	 =$(SHL1TARGET)
94DEF1EXPORTFILE=	exports.dxp
95
96# --- Targets ------------------------------------------------------
97
98.INCLUDE : target.mk
99
100
101ALLTAR : $(MISC)/lnth.component
102
103$(MISC)/lnth.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
104        lnth.component
105    $(XSLTPROC) --nonet --stringparam uri \
106        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
107        $(SOLARENV)/bin/createcomponent.xslt lnth.component
108