Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / hunspell / makefile.mk
blobc4377a631b567a94e848385b94750b9d7b08ccf7
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=.
30 PRJNAME=hunspell
31 TARGET=hunspell
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME=hunspell-1.3.2
40 TARFILE_MD5=3121aaf3e13e5d88dfff13fb4a5f1ab8
41 ADDITIONAL_FILES+=config.h
43 PATCH_FILES=\
44 hunspell-twoaffixcompound.patch \
45 hunspell-static.patch \
46 hunspell-wntconfig.patch \
47 hunspell-solaris.patch \
48 hunspell-android.patch
50 .IF "$(GUI)"=="UNX"
52 #relative to CONFIGURE_DIR
53 CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
54 CONFIGURE_FLAGS= --disable-shared --disable-nls --with-pic
55 .IF "$(COMNAME)"=="sunpro5"
56 CONFIGURE_FLAGS+= CFLAGS=-xc99=none
57 .ENDIF # "$(COMNAME)"=="sunpro5"
59 .IF "$(OS)"=="AIX"
60 CONFIGURE_FLAGS+= CFLAGS=-D_LINUX_SOURCE_COMPAT
61 .ELIF "$(OS)" == "MACOSX"
62 CONFIGURE_FLAGS += \
63 --prefix=/@.__________________________________________________$(EXTRPATH)
64 .END
66 .IF "$(SYSBASE)"!=""
67 .IF "$(EXTRA_CFLAGS)"!=""
68 CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
69 .ENDIF # "$(EXTRA_CFLAGS)"!=""
70 .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
71 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
72 .ENDIF
74 .IF "$(CROSS_COMPILING)"=="YES"
75 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) LIBS="$(STDLIBCUIMT)"
76 .ENDIF
78 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
80 OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
82 .ENDIF # "$(GUI)"=="UNX"
85 .IF "$(GUI)"=="WNT"
86 .IF "$(COM)"=="GCC"
87 CONFIGURE_ACTION=configure
89 CONFIGURE_FLAGS= --disable-shared --disable-nls --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
91 .IF "$(CROSS_COMPILING)"=="YES"
92 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
93 .ENDIF
95 BUILD_ACTION=make
96 OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
97 .ELSE
98 BUILD_ACTION=cd src/hunspell && dmake
99 .ENDIF
100 .ENDIF # "$(GUI)"=="WNT"
102 OUT2INC= \
103 $(BUILD_DIR)$/src$/hunspell$/*.hxx \
104 $(BUILD_DIR)$/src$/hunspell$/*.h
106 # --- Targets ------------------------------------------------------
108 .INCLUDE : set_ext.mk
109 .INCLUDE : target.mk
110 .INCLUDE : tg_ext.mk