xref: /aoo42x/ext_libraries/hunspell/makefile.mk (revision 0aabba3a)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=.
25
26PRJNAME=hunspell
27TARGET=hunspell
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :	settings.mk
32
33# --- Files --------------------------------------------------------
34
35.IF "$(ENABLE_HUNSPELL)" != "YES"
36
37all:
38	@echo "hunspell is disabled"
39
40.ELSE
41
42TARFILE_NAME=hunspell-1.3.2
43TARFILE_MD5=3121aaf3e13e5d88dfff13fb4a5f1ab8
44
45PATCH_FILES=					\
46    hunspell-solaris.patch		\
47    hunspell-bash.patch
48
49.IF "$(GUI)"=="UNX"
50
51#relative to CONFIGURE_DIR
52CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
53CONFIGURE_FLAGS= --disable-shared --with-pic
54.IF "$(COMNAME)"=="sunpro5"
55CONFIGURE_FLAGS+= CFLAGS=-xc99=none
56.ENDIF                  # "$(COMNAME)"=="sunpro5"
57
58.IF "$(SYSBASE)"!=""
59.IF "$(EXTRA_CFLAGS)"!=""
60CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
61.ENDIF # "$(EXTRA_CFLAGS)"!=""
62.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
63CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
64.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!=""
65CONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)"
66.ENDIF
67
68BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
69
70OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
71
72.ENDIF # "$(GUI)"=="UNX"
73
74
75.IF "$(GUI)"=="WNT"
76.IF "$(COM)"=="GCC"
77PATCH_FILES=\
78    hunspell-mingw.patch
79
80CONFIGURE_ACTION=configure
81CONFIGURE_FLAGS= --disable-shared --with-pic
82# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
83BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
84OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
85.ELSE # GCC
86BUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake
87.ENDIF # GCC
88.ENDIF # "$(GUI)"=="WNT"
89
90.IF "$(GUI)"=="OS2"
91BUILD_ACTION=cd src/hunspell && dmake
92.ENDIF # "$(GUI)"=="OS2"
93
94OUT2INC=									\
95	$(BUILD_DIR)$/src$/hunspell$/*.hxx		\
96	$(BUILD_DIR)$/src$/hunspell$/hunvisapi.h
97
98# --- Targets ------------------------------------------------------
99
100.INCLUDE : set_ext.mk
101.INCLUDE : target.mk
102.INCLUDE : tg_ext.mk
103.ENDIF
104