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