xref: /AOO41X/main/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/makefile.mk (revision 2407af082dace66c1b57237797ea1e24af5fe607)
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  = hyphen_lib
28ENABLE_EXCEPTIONS=TRUE
29USE_DEFFILE=TRUE
30
31.IF "$(GUI)"=="OS2"
32HNJLIB=hyphen.lib
33.ELIF "$(GUI)"=="UNX" || "$(COM)"=="GCC"
34HNJLIB=-lhyphen
35.ELSE
36HNJLIB=hyphen.lib
37.ENDIF
38
39#----- Settings ---------------------------------------------------------
40
41.INCLUDE : settings.mk
42
43# --- Files --------------------------------------------------------
44
45.IF "$(ENABLE_HYPHEN)" == "YES"
46
47
48CFLAGS += -I..$/..$/..$/lingutil
49
50EXCEPTIONSFILES=    \
51        $(SLO)$/hyphenimp.obj
52
53SLOFILES=   \
54        $(SLO)$/hreg.obj\
55        $(SLO)$/hyphenimp.obj
56
57REALNAME:=hyphen.uno
58SHL1TARGET= $(REALNAME)$(DLLPOSTFIX)
59
60SHL1STDLIBS= \
61        $(CPPULIB)   \
62        $(CPPUHELPERLIB)     \
63        $(I18NISOLANGLIB)   \
64        $(TOOLSLIB)     \
65        $(SVLLIB)       \
66        $(SALLIB)       \
67        $(UNOTOOLSLIB)  \
68        $(LNGLIB) \
69        $(HNJLIB) \
70        $(ULINGULIB)
71
72# build DLL
73SHL1LIBS=       $(SLB)$/$(TARGET).lib $(SLB)$/libulingu.lib
74SHL1IMPLIB=     i$(REALNAME)
75SHL1DEPN=       $(SHL1LIBS)
76SHL1DEF=        $(MISC)$/$(SHL1TARGET).def
77
78SHL1VERSIONMAP=$(SOLARENV)/src/component.map
79
80# build DEF file
81DEF1NAME     =$(SHL1TARGET)
82DEF1EXPORTFILE= exports.dxp
83
84# --- Targets ------------------------------------------------------
85
86.INCLUDE : target.mk
87
88
89ALLTAR : $(MISC)/hyphen.component
90
91$(MISC)/hyphen.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
92        hyphen.component
93    $(XSLTPROC) --nonet --stringparam uri \
94        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
95        $(SOLARENV)/bin/createcomponent.xslt hyphen.component
96
97.ELSE
98all:
99    @echo "hyphen disabled"
100
101.ENDIF
102