xref: /aoo41x/main/mythes/makefile.mk (revision cdf0e10c)
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
39TARFILE_NAME=mythes-1.2.0
40TARFILE_MD5=067201ea8b126597670b5eff72e1f66c
41
42ADDITIONAL_FILES += makefile.mk
43
44PATCH_FILES=mythes-1.2.0-vanilla-th-gen-idx.patch \
45	mythes-1.2.0-makefile-mk.diff
46
47.IF "$(GUI)"=="UNX"
48CONFIGURE_DIR=$(BUILD_DIR)
49
50.IF "$(SYSTEM_MYTHES)" != "YES"
51
52.IF "$(SYSTEM_HUNSPELL)" != "YES"
53HUNSPELL_CFLAGS +:= -I$(SOLARINCDIR)$/hunspell
54HUNSPELL_LIBS +:= -L$(SOLARLIBDIR) -lhunspell-1.2
55.ENDIF
56
57#relative to CONFIGURE_DIR
58# still needed also in system-mythes case as it creates the makefile
59CONFIGURE_ACTION=configure
60CONFIGURE_FLAGS= --disable-shared --with-pic
61
62.IF "$(COM)"=="C52" && "$(CPU)"=="U"
63LCL_CONFIGURE_CFLAGS+=-m64
64.ENDIF
65
66.IF "$(SYSBASE)"!=""
67.IF "$(EXTRA_CFLAGS)"!=""
68LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
69CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
70.ENDIF # "$(EXTRA_CFLAGS)"!=""
71.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
72CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
73.ENDIF
74
75.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
76CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
77.ENDIF
78
79BUILD_ACTION=make
80OUT2INC += mythes.hxx
81.ENDIF
82.ENDIF # "$(GUI)"=="UNX"
83
84
85.IF "$(GUI)"=="WNT"
86.IF "$(COM)"=="GCC"
87CONFIGURE_ACTION=configure
88CONFIGURE_FLAGS= --disable-shared --with-pic \
89	HUNSPELL_CFLAGS=-I$(SOLARINCDIR)$/hunspell \
90	HUNSPELL_LIBS="-L$(SOLARLIBDIR) -lhunspell-1.2"
91
92BUILD_ACTION=make
93
94.ELSE
95BUILD_ACTION=dmake
96.ENDIF # "$(COM)"=="GCC"
97OUT2INC += mythes.hxx
98.ENDIF # "$(GUI)"=="WNT"
99
100.IF "$(GUI)"=="OS2"
101BUILD_ACTION=dmake
102OUT2INC += mythes.hxx
103.ENDIF # "$(GUI)"=="OS2"
104
105# --- Targets ------------------------------------------------------
106
107.INCLUDE : set_ext.mk
108.INCLUDE : target.mk
109.INCLUDE : tg_ext.mk
110
111.IF "$(SYSTEM_HUNSPELL)" != "YES"
112.EXPORT: HUNSPELL_LIBS HUNSPELL_CFLAGS
113.ENDIF
114
115