xref: /aoo41x/main/hyphen/makefile.mk (revision 7871dc3e)
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=hyphen
27TARGET=hyphen
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :	settings.mk
32
33# --- Files --------------------------------------------------------
34
35.IF "$(ENABLE_HYPHEN)" != "YES"
36
37all:
38	@echo "hyphen is disabled"
39
40.ELSE
41
42TARFILE_NAME=hyphen-2.7.1
43TARFILE_MD5=48a9f787f43a09c0a9b7b00cd1fddbbf
44
45ADDITIONAL_FILES += makefile.mk
46
47PATCH_FILES= \
48	hyphen-2.7.1.patch \
49	hyphen-2.7.1-read-charset.patch
50
51.IF "$(GUI)"=="UNX"
52CONFIGURE_DIR=$(BUILD_DIR)
53
54#relative to CONFIGURE_DIR
55# still needed also in system-hyphen case as it creates the makefile
56CONFIGURE_ACTION=configure
57CONFIGURE_FLAGS= --disable-shared --with-pic
58
59.IF "$(COM)"=="C52" && "$(CPU)"=="U"
60LCL_CONFIGURE_CFLAGS+=-m64
61.ENDIF
62
63.IF "$(SYSBASE)"!=""
64.IF "$(EXTRA_CFLAGS)"!=""
65LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
66CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
67.ENDIF # "$(EXTRA_CFLAGS)"!=""
68.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
69CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
70.ENDIF
71
72.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
73CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
74.ENDIF
75
76.IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES"
77BUILD_ACTION=make hyph_en_US.dic
78.ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES"
79@all:
80	echo "Nothing to do here."
81.ELSE
82BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
83OUT2INC += hyphen.h
84.ENDIF
85
86.ENDIF # "$(GUI)"=="UNX"
87
88
89.IF "$(GUI)"=="WNT"
90.IF "$(COM)"=="GCC"
91CONFIGURE_ACTION=configure
92CONFIGURE_FLAGS= --disable-shared --with-pic
93
94BUILD_ACTION=make
95
96.ELSE
97BUILD_ACTION=dmake
98.ENDIF # "$(COM)"=="GCC"
99OUT2INC += hyphen.h
100.ENDIF # "$(GUI)"=="WNT"
101
102.IF "$(GUI)"=="OS2"
103BUILD_ACTION=dmake
104OUT2INC += hyphen.h
105.ENDIF # "$(GUI)"=="OS2"
106
107# --- Targets ------------------------------------------------------
108
109.INCLUDE : set_ext.mk
110.INCLUDE : target.mk
111.INCLUDE : tg_ext.mk
112
113.ENDIF # "$(ENABLE_HYPHEN)"
114