xref: /trunk/ext_libraries/hunspell/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=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
50.IF "$(GUI)"=="UNX"
51
52#relative to CONFIGURE_DIR
53CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
54CONFIGURE_FLAGS= --disable-shared --with-pic
55.IF "$(COMNAME)"=="sunpro5"
56CONFIGURE_FLAGS+= CFLAGS=-xc99=none
57.ENDIF                  # "$(COMNAME)"=="sunpro5"
58
59.IF "$(SYSBASE)"!=""
60.IF "$(EXTRA_CFLAGS)"!=""
61CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
62.ENDIF # "$(EXTRA_CFLAGS)"!=""
63.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
64CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
65.ENDIF
66
67BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
68
69OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
70
71.ENDIF # "$(GUI)"=="UNX"
72
73
74.IF "$(GUI)"=="WNT"
75.IF "$(COM)"=="GCC"
76PATCH_FILES=\
77    hunspell-mingw.patch
78
79CONFIGURE_ACTION=configure
80CONFIGURE_FLAGS= --disable-shared --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
81BUILD_ACTION=make
82OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
83.ELSE
84BUILD_ACTION=cd src/hunspell && dmake
85.ENDIF
86.ENDIF # "$(GUI)"=="WNT"
87
88.IF "$(GUI)"=="OS2"
89BUILD_ACTION=cd src/hunspell && dmake
90.ENDIF # "$(GUI)"=="OS2"
91
92OUT2INC= \
93	$(BUILD_DIR)$/src$/hunspell$/*.hxx
94
95# --- Targets ------------------------------------------------------
96
97.INCLUDE : set_ext.mk
98.INCLUDE : target.mk
99.INCLUDE : tg_ext.mk
100
101.ELSE
102all:
103	@echo "hunspell disabled"
104.ENDIF
105