Update ooo320-m1
[ooovba.git] / hunspell / makefile.mk
blobf7e17c9dad0c0d0413147a11ff485b48d714bcd0
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 # "$(EXTRA_CFLAGS)"!=""
66 .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
67 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
68 .ENDIF
70 BUILD_ACTION=make && make check
72 OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
74 .ENDIF # "$(GUI)"=="UNX"
77 .IF "$(GUI)"=="WNT"
78 .IF "$(COM)"=="GCC"
79 CONFIGURE_ACTION=configure
80 CONFIGURE_FLAGS= --disable-shared --with-pic
81 BUILD_ACTION=make
82 OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
83 .ELSE
84 BUILD_ACTION=cd src/hunspell && dmake
85 .ENDIF
86 .ENDIF # "$(GUI)"=="WNT"
88 .IF "$(GUI)"=="OS2"
89 BUILD_ACTION=cd src/hunspell && dmake
90 .ENDIF # "$(GUI)"=="OS2"
92 OUT2INC= \
93 $(BUILD_DIR)$/src$/hunspell$/*.hxx
95 # --- Targets ------------------------------------------------------
97 .INCLUDE : set_ext.mk
98 .INCLUDE : target.mk
99 .INCLUDE : tg_ext.mk