Bump for 3.6-28
[LibreOffice.git] / hyphen / makefile.mk
blobf44953f7e077baadafa28d971b26142d172deae3
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=.
30 PRJNAME=hyphen
31 TARGET=hyphen
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME=hyphen-2.8.3
40 TARFILE_MD5=86261f06c097d3e425a2f6d0b0635380
42 ADDITIONAL_FILES += makefile.mk
44 PATCH_FILES= \
45 hyphen-build.patch \
46 hyphen-android.patch \
47 hyphen-fdo43931.patch
49 .IF "$(GUI)"=="UNX"
50 CONFIGURE_DIR=$(BUILD_DIR)
52 #relative to CONFIGURE_DIR
53 # still needed also in system-hyphen case as it creates the makefile
54 CONFIGURE_ACTION=configure
55 CONFIGURE_FLAGS=--disable-shared
57 .IF "$(OS)"!="IOS"
58 CONFIGURE_FLAGS+= --with-pic
59 .ENDIF
61 .IF "$(COM)"=="C52" && "$(CPU)"=="U"
62 LCL_CONFIGURE_CFLAGS+=-m64
63 .ENDIF
65 .IF "$(SYSBASE)"!=""
66 .IF "$(EXTRA_CFLAGS)"!=""
67 LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
68 CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
69 .ENDIF # "$(EXTRA_CFLAGS)"!=""
70 .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
71 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
72 .ENDIF
74 .IF "$(LCL_CONFIGURE_CFLAGS)"!=""
75 CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
76 .ENDIF
78 .IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES"
79 BUILD_ACTION=make hyph_en_US.dic
80 .ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES"
81 @all:
82 echo "Nothing to do here."
83 .ELSE
84 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
85 OUT2INC += hyphen.h
86 .ENDIF
88 .ENDIF # "$(GUI)"=="UNX"
90 .IF "$(GUI)"=="WNT"
91 .IF "$(COM)"=="GCC"
92 CONFIGURE_ACTION=configure
93 CONFIGURE_FLAGS= --disable-shared --with-pic
95 BUILD_ACTION=make
97 .ELSE
98 BUILD_ACTION=dmake
99 .ENDIF # "$(COM)"=="GCC"
100 OUT2INC += hyphen.h
101 .ENDIF # "$(GUI)"=="WNT"
103 .IF "$(CROSS_COMPILING)"=="YES"
104 CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
105 .ENDIF
107 # --- Targets ------------------------------------------------------
109 .INCLUDE : set_ext.mk
110 .INCLUDE : target.mk
111 .INCLUDE : tg_ext.mk