enable l10n of Wiki Publisher display name and description
[LibreOffice.git] / hyphen / makefile.mk
blob80f5bbd74cac9012ee0a18f091014b4b3c5237bc
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.7.1
40 TARFILE_MD5=48a9f787f43a09c0a9b7b00cd1fddbbf
42 ADDITIONAL_FILES += makefile.mk
44 PATCH_FILES= \
45 hyphen-2.7.1.patch \
46 hyphen-2.7.1-read-charset.patch
48 .IF "$(GUI)"=="UNX"
49 CONFIGURE_DIR=$(BUILD_DIR)
51 #relative to CONFIGURE_DIR
52 # still needed also in system-hyphen case as it creates the makefile
53 CONFIGURE_ACTION=configure
54 CONFIGURE_FLAGS=--disable-shared
56 .IF "$(OS)"!="IOS"
57 CONFIGURE_FLAGS+= --with-pic
58 .ENDIF
60 .IF "$(COM)"=="C52" && "$(CPU)"=="U"
61 LCL_CONFIGURE_CFLAGS+=-m64
62 .ENDIF
64 .IF "$(SYSBASE)"!=""
65 .IF "$(EXTRA_CFLAGS)"!=""
66 LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
67 CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
68 .ENDIF # "$(EXTRA_CFLAGS)"!=""
69 .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
70 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
71 .ENDIF
73 .IF "$(LCL_CONFIGURE_CFLAGS)"!=""
74 CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
75 .ENDIF
77 .IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES"
78 BUILD_ACTION=make hyph_en_US.dic
79 .ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES"
80 @all:
81 echo "Nothing to do here."
82 .ELSE
83 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
84 OUT2INC += hyphen.h
85 .ENDIF
87 .ENDIF # "$(GUI)"=="UNX"
89 .IF "$(GUI)"=="WNT"
90 .IF "$(COM)"=="GCC"
91 CONFIGURE_ACTION=configure
92 CONFIGURE_FLAGS= --disable-shared --with-pic
94 BUILD_ACTION=make
96 .ELSE
97 BUILD_ACTION=dmake
98 .ENDIF # "$(COM)"=="GCC"
99 OUT2INC += hyphen.h
100 .ENDIF # "$(GUI)"=="WNT"
102 .IF "$(CROSS_COMPILING)"=="YES"
103 CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
104 .ENDIF
106 # --- Targets ------------------------------------------------------
108 .INCLUDE : set_ext.mk
109 .INCLUDE : target.mk
110 .INCLUDE : tg_ext.mk