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