xref: /aoo42x/ext_libraries/hunspell/makefile.mk (revision 8794372b)
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=hunspell
31TARGET=hunspell
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :	settings.mk
36
37# --- Files --------------------------------------------------------
38
39.IF "$(DISABLE_HUNSPELL)" == ""
40
41TARFILE_NAME=hunspell-1.2.9
42TARFILE_MD5=68dd2e8253d9a7930e9fd50e2d7220d0
43ADDITIONAL_FILES+=config.h
44
45PATCH_FILES=\
46    hunspell-wntconfig.patch \
47    hunspell-solaris.patch \
48    hunspell-stacksmash.patch \
49    hunspell.patch
50
51.IF "$(GUI)"=="UNX"
52
53#relative to CONFIGURE_DIR
54CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
55CONFIGURE_FLAGS= --disable-shared --with-pic
56.IF "$(COMNAME)"=="sunpro5"
57CONFIGURE_FLAGS+= CFLAGS=-xc99=none
58.ENDIF                  # "$(COMNAME)"=="sunpro5"
59
60.IF "$(SYSBASE)"!=""
61.IF "$(EXTRA_CFLAGS)"!=""
62CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
63.ENDIF # "$(EXTRA_CFLAGS)"!=""
64.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
65CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
66.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!=""
67CONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)"
68.ENDIF
69
70BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
71
72OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
73
74.ENDIF # "$(GUI)"=="UNX"
75
76
77.IF "$(GUI)"=="WNT"
78.IF "$(COM)"=="GCC"
79PATCH_FILES=\
80    hunspell-mingw.patch
81
82CONFIGURE_ACTION=configure
83CONFIGURE_FLAGS= --disable-shared --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
84BUILD_ACTION=make
85OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
86.ELSE
87BUILD_ACTION=cd src/hunspell && dmake
88.ENDIF
89.ENDIF # "$(GUI)"=="WNT"
90
91.IF "$(GUI)"=="OS2"
92BUILD_ACTION=cd src/hunspell && dmake
93.ENDIF # "$(GUI)"=="OS2"
94
95OUT2INC= \
96	$(BUILD_DIR)$/src$/hunspell$/*.hxx
97
98# --- Targets ------------------------------------------------------
99
100.INCLUDE : set_ext.mk
101.INCLUDE : target.mk
102.INCLUDE : tg_ext.mk
103
104.ELSE
105all:
106	@echo "hunspell disabled"
107.ENDIF
108