xref: /aoo41x/main/hyphen/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=.
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=hyphen
27cdf0e10cSrcweirTARGET=hyphen
28cdf0e10cSrcweir
29cdf0e10cSrcweir# --- Settings -----------------------------------------------------
30cdf0e10cSrcweir
31cdf0e10cSrcweir.INCLUDE :	settings.mk
32cdf0e10cSrcweir
33cdf0e10cSrcweir# --- Files --------------------------------------------------------
34cdf0e10cSrcweir
359ef65f0eSAndre Fischer.IF "$(ENABLE_HYPHEN)" != "YES"
369ef65f0eSAndre Fischer
379ef65f0eSAndre Fischerall:
389ef65f0eSAndre Fischer	@echo "hyphen is disabled"
399ef65f0eSAndre Fischer
409ef65f0eSAndre Fischer.ELSE
410ea1a209SEike Rathke
42cdf0e10cSrcweirTARFILE_NAME=hyphen-2.7.1
43cdf0e10cSrcweirTARFILE_MD5=48a9f787f43a09c0a9b7b00cd1fddbbf
44cdf0e10cSrcweir
45cdf0e10cSrcweirADDITIONAL_FILES += makefile.mk
46cdf0e10cSrcweir
47cdf0e10cSrcweirPATCH_FILES= \
48cdf0e10cSrcweir	hyphen-2.7.1.patch \
49cdf0e10cSrcweir	hyphen-2.7.1-read-charset.patch
50cdf0e10cSrcweir
51cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
52cdf0e10cSrcweirCONFIGURE_DIR=$(BUILD_DIR)
53cdf0e10cSrcweir
54cdf0e10cSrcweir#relative to CONFIGURE_DIR
55cdf0e10cSrcweir# still needed also in system-hyphen case as it creates the makefile
56cdf0e10cSrcweirCONFIGURE_ACTION=configure
57cdf0e10cSrcweirCONFIGURE_FLAGS= --disable-shared --with-pic
58cdf0e10cSrcweir
59cdf0e10cSrcweir.IF "$(COM)"=="C52" && "$(CPU)"=="U"
60cdf0e10cSrcweirLCL_CONFIGURE_CFLAGS+=-m64
61cdf0e10cSrcweir.ENDIF
62cdf0e10cSrcweir
63cdf0e10cSrcweir.IF "$(SYSBASE)"!=""
64cdf0e10cSrcweir.IF "$(EXTRA_CFLAGS)"!=""
65cdf0e10cSrcweirLCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
66cdf0e10cSrcweirCONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
67cdf0e10cSrcweir.ENDIF # "$(EXTRA_CFLAGS)"!=""
68cdf0e10cSrcweir.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
69cdf0e10cSrcweirCONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
70cdf0e10cSrcweir.ENDIF
71cdf0e10cSrcweir
72cdf0e10cSrcweir.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
73cdf0e10cSrcweirCONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
74cdf0e10cSrcweir.ENDIF
75cdf0e10cSrcweir
76cdf0e10cSrcweir.IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES"
77cdf0e10cSrcweirBUILD_ACTION=make hyph_en_US.dic
78cdf0e10cSrcweir.ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES"
79cdf0e10cSrcweir@all:
80cdf0e10cSrcweir	echo "Nothing to do here."
81cdf0e10cSrcweir.ELSE
82cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
83cdf0e10cSrcweirOUT2INC += hyphen.h
84cdf0e10cSrcweir.ENDIF
85cdf0e10cSrcweir
86cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX"
87cdf0e10cSrcweir
88cdf0e10cSrcweir
89cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
90cdf0e10cSrcweir.IF "$(COM)"=="GCC"
91cdf0e10cSrcweirCONFIGURE_ACTION=configure
92cdf0e10cSrcweirCONFIGURE_FLAGS= --disable-shared --with-pic
93cdf0e10cSrcweir
94cdf0e10cSrcweirBUILD_ACTION=make
95cdf0e10cSrcweir
96cdf0e10cSrcweir.ELSE
97cdf0e10cSrcweirBUILD_ACTION=dmake
98cdf0e10cSrcweir.ENDIF # "$(COM)"=="GCC"
99cdf0e10cSrcweirOUT2INC += hyphen.h
100cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT"
101cdf0e10cSrcweir
102cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
103cdf0e10cSrcweirBUILD_ACTION=dmake
104cdf0e10cSrcweirOUT2INC += hyphen.h
105cdf0e10cSrcweir.ENDIF # "$(GUI)"=="OS2"
106cdf0e10cSrcweir
107cdf0e10cSrcweir# --- Targets ------------------------------------------------------
108cdf0e10cSrcweir
109cdf0e10cSrcweir.INCLUDE : set_ext.mk
110cdf0e10cSrcweir.INCLUDE : target.mk
111cdf0e10cSrcweir.INCLUDE : tg_ext.mk
112cdf0e10cSrcweir
1139ef65f0eSAndre Fischer.ENDIF # "$(ENABLE_HYPHEN)"
114