xref: /aoo4110/main/linguistic/source/makefile.mk (revision b1cdbd2c)
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=linguistic
27TARGET=lng
28ENABLE_EXCEPTIONS=sal_True
29
30#----- Settings ---------------------------------------------------------
31
32.INCLUDE : settings.mk
33
34# --- Files --------------------------------------------------------
35
36SLOFILES = \
37        $(SLO)$/convdiclist.obj\
38        $(SLO)$/convdic.obj\
39        $(SLO)$/convdicxml.obj\
40		$(SLO)$/dicimp.obj\
41		$(SLO)$/dlistimp.obj\
42        $(SLO)$/hhconvdic.obj\
43		$(SLO)$/hyphdsp.obj\
44		$(SLO)$/hyphdta.obj\
45		$(SLO)$/iprcache.obj\
46		$(SLO)$/lngopt.obj\
47        $(SLO)$/lngprophelp.obj\
48		$(SLO)$/lngreg.obj\
49		$(SLO)$/lngsvcmgr.obj\
50		$(SLO)$/misc.obj\
51        $(SLO)$/misc2.obj\
52		$(SLO)$/spelldsp.obj\
53		$(SLO)$/spelldta.obj\
54		$(SLO)$/thesdsp.obj\
55        $(SLO)$/thesdta.obj\
56        $(SLO)$/gciterator.obj
57
58SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
59
60SHL1STDLIBS= \
61		$(CPPULIB) 	 \
62		$(CPPUHELPERLIB) 	 \
63		$(COMPHELPERLIB)   \
64		$(VOSLIB)		\
65		$(TOOLSLIB)		\
66		$(I18NISOLANGLIB) \
67		$(SVLLIB)	\
68		$(SALLIB)		\
69        $(XMLOFFLIB)    \
70		$(UCBHELPERLIB)	\
71        $(UNOTOOLSLIB)  \
72        $(ICUUCLIB)
73
74# build DLL
75SHL1LIBS=		$(SLB)$/$(TARGET).lib
76SHL1DEPN=		$(SLB)$/$(TARGET).lib
77SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
78#SHL1VERSIONMAP= $(TARGET).map
79SHL1IMPLIB= ilng
80
81# build DEF file
82DEF1NAME	=$(SHL1TARGET)
83DEF1DEPN    =$(MISC)$/$(SHL1TARGET).flt
84DEFLIB1NAME =$(TARGET)
85DEF1DES     =Linguistic main DLL
86#DEF1EXPORTFILE=	exports.dxp
87
88
89.IF "$(GUI)"=="WNT"
90DEF1EXPORT1 = component_getFactory
91DEF1EXPORT2 = component_getImplementationEnvironment
92.ENDIF
93
94# --- Targets ------------------------------------------------------
95
96
97.INCLUDE : target.mk
98
99
100$(MISC)$/$(SHL1TARGET).flt: makefile.mk
101    @echo ------------------------------
102    @echo Making: $@
103    @echo lcl > $@
104    @echo component >> $@
105    @echo __CT >> $@
106
107
108ALLTAR : $(MISC)/lng.component
109
110$(MISC)/lng.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
111        lng.component
112    $(XSLTPROC) --nonet --stringparam uri \
113        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
114        $(SOLARENV)/bin/createcomponent.xslt lng.component
115