Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / mythes / makefile.mk
blob44f8ba9d6582b1050efdaba5612639df2a1c4ebf
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=mythes
31 TARGET=mythes
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME=mythes-1.2.2
40 TARFILE_MD5=e1e255dc43dbcbb34cb19e8a0eba90ae
42 ADDITIONAL_FILES += makefile.mk
44 PATCH_FILES=\
45 mythes-1.2.0-vanilla-th-gen-idx.patch \
46 mythes-1.2.0-makefile-mk.diff \
47 mythes-1.2.0-android.patch
49 .IF "$(COM)"=="GCC"
50 .IF "$(SYSTEM_HUNSPELL)" != "YES"
51 HUNSPELL_CFLAGS +:= -I$(SOLARINCDIR)$/hunspell
52 HUNSPELL_LIBS +:= -L$(SOLARLIBDIR) -lhunspell-1.3
53 .ENDIF
54 .ENDIF
56 .IF "$(GUI)"=="UNX"
57 CONFIGURE_DIR=$(BUILD_DIR)
59 #relative to CONFIGURE_DIR
60 # still needed also in system-mythes case as it creates the makefile
61 CONFIGURE_ACTION=configure
62 CONFIGURE_FLAGS= --disable-shared --with-pic
64 .IF "$(COM)"=="C52" && "$(CPU)"=="U"
65 LCL_CONFIGURE_CFLAGS+=-m64
66 .ELIF "$(OS)"=="AIX"
67 LCL_CONFIGURE_CFLAG+=-D_LINUX_SOURCE_COMPAT
68 .ENDIF
70 .IF "$(SYSBASE)"!=""
71 .IF "$(EXTRA_CFLAGS)"!=""
72 LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
73 CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
74 .ENDIF # "$(EXTRA_CFLAGS)"!=""
75 .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
76 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
77 .ENDIF
79 .IF "$(LCL_CONFIGURE_CFLAGS)"!=""
80 CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
81 .ENDIF
83 .IF "$(CROSS_COMPILING)"=="YES"
84 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no LIBS="$(STDLIBCUIMT)"
85 .ENDIF
87 BUILD_ACTION=make
88 OUT2INC += mythes.hxx
89 .ENDIF # "$(GUI)"=="UNX"
92 .IF "$(GUI)"=="WNT"
93 .IF "$(COM)"=="GCC"
94 CONFIGURE_ACTION=configure
95 CONFIGURE_FLAGS= --disable-shared --with-pic \
96 HUNSPELL_CFLAGS="$(HUNSPELL_CFLAGS)" \
97 HUNSPELL_LIBS="$(HUNSPELL_LIBS)"
99 .IF "$(CROSS_COMPILING)"=="YES"
100 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no
101 .ENDIF
103 BUILD_ACTION=make
105 .ELSE
106 BUILD_ACTION=dmake
107 .ENDIF # "$(COM)"=="GCC"
108 OUT2INC += mythes.hxx
109 .ENDIF # "$(GUI)"=="WNT"
111 # --- Targets ------------------------------------------------------
113 .INCLUDE : set_ext.mk
114 .INCLUDE : target.mk
115 .INCLUDE : tg_ext.mk
117 .IF "$(SYSTEM_HUNSPELL)" != "YES"
118 .EXPORT: HUNSPELL_LIBS HUNSPELL_CFLAGS
119 .ENDIF