1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.6.4.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
37 # --- Settings -----------------------------------------------------
39 .INCLUDE
: settings.mk
41 # --- Files --------------------------------------------------------
43 TARFILE_NAME
=hunspell-1.2
.8
44 TARFILE_ROOTDIR
=hunspell-1.2
.8
46 #ADDITIONAL_FILES += src/hunspell/makefile.mk
49 hunspell-1.2
.8.patch \
50 hunspell-consts-1.2
.8.patch
# hunspell#2064983
53 #CONFIGURE_DIR=$(BUILD_DIR)
55 #relative to CONFIGURE_DIR
56 CONFIGURE_ACTION
=$(AUGMENT_LIBRARY_PATH
) configure
57 CONFIGURE_FLAGS
= --disable-shared
--with-pic
58 .IF
"$(COMNAME)"=="sunpro5"
59 CONFIGURE_FLAGS
+= CFLAGS
=-xc99
=none
60 .ENDIF
# "$(COMNAME)"=="sunpro5"
63 .IF
"$(EXTRA_CFLAGS)"!=""
64 CONFIGURE_FLAGS
+= CFLAGS
="$(EXTRA_CFLAGS)" CXXFLAGS
="$(EXTRA_CFLAGS)"
65 .ENDIF
# "$(EXTRA_CFLAGS)"!=""
66 .ELIF
"$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
67 CONFIGURE_FLAGS
+=CPPFLAGS
="$(EXTRA_CDEFS)"
70 BUILD_ACTION
=make
&& make
check
72 OUT2LIB
=$(BUILD_DIR
)$/src
$/hunspell
$/.libs
$/libhunspell-1.2.a
74 .ENDIF
# "$(GUI)"=="UNX"
79 CONFIGURE_ACTION
=configure
80 CONFIGURE_FLAGS
= --disable-shared
--with-pic
82 OUT2LIB
=$(BUILD_DIR
)$/src
$/hunspell
$/.libs
$/libhunspell-1.2.a
84 BUILD_ACTION
=cd src
/hunspell
&& dmake
86 .ENDIF
# "$(GUI)"=="WNT"
89 BUILD_ACTION
=cd src
/hunspell
&& dmake
90 .ENDIF
# "$(GUI)"=="OS2"
93 $(BUILD_DIR
)$/src
$/hunspell
$/*.hxx
95 # --- Targets ------------------------------------------------------