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