xref: /trunk/main/mythes/makefile.mk (revision 0ea1a209)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28PRJ=.
29
30PRJNAME=mythes
31TARGET=mythes
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :	settings.mk
36
37# --- Files --------------------------------------------------------
38
39.IF "$(DISABLE_HUNSPELL)" == ""
40
41TARFILE_NAME=mythes-1.2.0
42TARFILE_MD5=067201ea8b126597670b5eff72e1f66c
43
44ADDITIONAL_FILES += makefile.mk
45
46PATCH_FILES=mythes-1.2.0-vanilla-th-gen-idx.patch \
47	mythes-1.2.0-makefile-mk.diff
48
49.IF "$(GUI)"=="UNX"
50CONFIGURE_DIR=$(BUILD_DIR)
51
52.IF "$(SYSTEM_MYTHES)" != "YES"
53
54.IF "$(SYSTEM_HUNSPELL)" != "YES"
55HUNSPELL_CFLAGS +:= -I$(SOLARINCDIR)$/hunspell
56HUNSPELL_LIBS +:= -L$(SOLARLIBDIR) -lhunspell-1.2
57.ENDIF
58
59#relative to CONFIGURE_DIR
60# still needed also in system-mythes case as it creates the makefile
61CONFIGURE_ACTION=configure
62CONFIGURE_FLAGS= --disable-shared --with-pic
63
64.IF "$(COM)"=="C52" && "$(CPU)"=="U"
65LCL_CONFIGURE_CFLAGS+=-m64
66.ENDIF
67
68.IF "$(SYSBASE)"!=""
69.IF "$(EXTRA_CFLAGS)"!=""
70LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
71CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
72.ENDIF # "$(EXTRA_CFLAGS)"!=""
73.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
74CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
75.ENDIF
76
77.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
78CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
79.ENDIF
80
81BUILD_ACTION=make
82OUT2INC += mythes.hxx
83.ENDIF
84.ENDIF # "$(GUI)"=="UNX"
85
86
87.IF "$(GUI)"=="WNT"
88.IF "$(COM)"=="GCC"
89CONFIGURE_ACTION=configure
90CONFIGURE_FLAGS= --disable-shared --with-pic \
91	HUNSPELL_CFLAGS=-I$(SOLARINCDIR)$/hunspell \
92	HUNSPELL_LIBS="-L$(SOLARLIBDIR) -lhunspell-1.2"
93
94BUILD_ACTION=make
95
96.ELSE
97BUILD_ACTION=dmake
98.ENDIF # "$(COM)"=="GCC"
99OUT2INC += mythes.hxx
100.ENDIF # "$(GUI)"=="WNT"
101
102.IF "$(GUI)"=="OS2"
103BUILD_ACTION=dmake
104OUT2INC += mythes.hxx
105.ENDIF # "$(GUI)"=="OS2"
106
107# --- Targets ------------------------------------------------------
108
109.INCLUDE : set_ext.mk
110.INCLUDE : target.mk
111.INCLUDE : tg_ext.mk
112
113.IF "$(SYSTEM_HUNSPELL)" != "YES"
114.EXPORT: HUNSPELL_LIBS HUNSPELL_CFLAGS
115.ENDIF
116
117.ELSE
118all:
119	@echo "hunspell disabled"
120.ENDIF
121