adapt hwpfilter unittests to separate RdbTarget makefile requirement
[LibreOffice.git] / mythes / makefile.mk
blobc66307769602dcb472879a3c80b2a14362caed7b
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.0
40 TARFILE_MD5=067201ea8b126597670b5eff72e1f66c
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.1-rhbz675806.patch \
48 mythes-1.2.0-android.patch
50 .IF "$(GUI)"=="UNX"
51 CONFIGURE_DIR=$(BUILD_DIR)
53 .IF "$(SYSTEM_MYTHES)" != "YES"
55 .IF "$(SYSTEM_HUNSPELL)" != "YES"
56 HUNSPELL_CFLAGS +:= -I$(SOLARINCDIR)$/hunspell
57 HUNSPELL_LIBS +:= -L$(SOLARLIBDIR) -lhunspell-1.3
58 .ENDIF
60 #relative to CONFIGURE_DIR
61 # still needed also in system-mythes case as it creates the makefile
62 CONFIGURE_ACTION=configure
63 CONFIGURE_FLAGS= --disable-shared --with-pic
65 .IF "$(COM)"=="C52" && "$(CPU)"=="U"
66 LCL_CONFIGURE_CFLAGS+=-m64
67 .ELIF "$(OS)"=="AIX"
68 LCL_CONFIGURE_CFLAG+=-D_LINUX_SOURCE_COMPAT
69 .ENDIF
71 .IF "$(SYSBASE)"!=""
72 .IF "$(EXTRA_CFLAGS)"!=""
73 LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
74 CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
75 .ENDIF # "$(EXTRA_CFLAGS)"!=""
76 .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
77 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
78 .ENDIF
80 .IF "$(LCL_CONFIGURE_CFLAGS)"!=""
81 CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
82 .ENDIF
84 .IF "$(CROSS_COMPILING)"=="YES"
85 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no
86 .ENDIF
88 BUILD_ACTION=make
89 OUT2INC += mythes.hxx
90 .ENDIF
91 .ENDIF # "$(GUI)"=="UNX"
94 .IF "$(GUI)"=="WNT"
95 .IF "$(COM)"=="GCC"
96 .IF "$(SYSTEM_MYTHES)" != "YES"
97 CONFIGURE_ACTION=configure
98 CONFIGURE_FLAGS= --disable-shared --with-pic \
99 HUNSPELL_CFLAGS=-I$(SOLARINCDIR)$/hunspell \
100 HUNSPELL_LIBS="-L$(SOLARLIBDIR) -lhunspell-1.3"
102 .IF "$(CROSS_COMPILING)"=="YES"
103 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no
104 .ENDIF
106 BUILD_ACTION=make
108 .ENDIF
109 .ELSE
110 BUILD_ACTION=dmake
111 .ENDIF # "$(COM)"=="GCC"
112 OUT2INC += mythes.hxx
113 .ENDIF # "$(GUI)"=="WNT"
115 # --- Targets ------------------------------------------------------
117 .INCLUDE : set_ext.mk
118 .INCLUDE : target.mk
119 .INCLUDE : tg_ext.mk
121 .IF "$(SYSTEM_HUNSPELL)" != "YES"
122 .EXPORT: HUNSPELL_LIBS HUNSPELL_CFLAGS
123 .ENDIF