update dev300-m58
[ooovba.git] / hunspell / makefile.mk
blobdb667cc038d2e2e5a54e187c04fedc6804d3e46c
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
32 PRJ=.
34 PRJNAME=hunspell
35 TARGET=hunspell
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
48 PATCH_FILES=\
49 hunspell-1.2.8.patch \
50 hunspell-consts-1.2.8.patch # hunspell#2064983
52 .IF "$(GUI)"=="UNX"
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"
62 .IF "$(SYSBASE)"!=""
63 .IF "$(EXTRA_CFLAGS)"!=""
64 CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
65 .ENDIF # "$(SYSBASE)"!=""
66 .ENDIF # "$(EXTRA_CFLAGS)"!=""
68 BUILD_ACTION=make && make check
70 OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
72 .ENDIF # "$(GUI)"=="UNX"
75 .IF "$(GUI)"=="WNT"
76 .IF "$(COM)"=="GCC"
77 CONFIGURE_ACTION=configure
78 CONFIGURE_FLAGS= --disable-shared --with-pic
79 BUILD_ACTION=make
80 OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
81 .ELSE
82 BUILD_ACTION=cd src/hunspell && dmake
83 .ENDIF
84 .ENDIF # "$(GUI)"=="WNT"
86 .IF "$(GUI)"=="OS2"
87 BUILD_ACTION=cd src/hunspell && dmake
88 .ENDIF # "$(GUI)"=="OS2"
90 OUT2INC= \
91 $(BUILD_DIR)$/src$/hunspell$/*.hxx
93 # --- Targets ------------------------------------------------------
95 .INCLUDE : set_ext.mk
96 .INCLUDE : target.mk
97 .INCLUDE : tg_ext.mk