xref: /aoo41x/ext_libraries/hunspell/makefile.mk (revision 5f295263)
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    hunspell-1.3.2-overflow.patch
49
50.IF "$(GUI)"=="UNX"
51
52#relative to CONFIGURE_DIR
53CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
54CONFIGURE_FLAGS= --disable-shared --with-pic
55.IF "$(COMNAME)"=="sunpro5"
56CONFIGURE_FLAGS+= CFLAGS=-xc99=none
57.ENDIF                  # "$(COMNAME)"=="sunpro5"
58
59.IF "$(SYSBASE)"!=""
60.IF "$(EXTRA_CFLAGS)"!=""
61CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
62.ENDIF # "$(EXTRA_CFLAGS)"!=""
63.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
64CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
65.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!=""
66CONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)"
67.ENDIF
68
69BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
70
71OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
72
73.ENDIF # "$(GUI)"=="UNX"
74
75
76.IF "$(GUI)"=="WNT"
77.IF "$(COM)"=="GCC"
78PATCH_FILES=\
79    hunspell-mingw.patch
80
81CONFIGURE_ACTION=configure
82CONFIGURE_FLAGS= --disable-shared --with-pic
83# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
84BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
85OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
86.ELSE # GCC
87BUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake
88.ENDIF # GCC
89.ENDIF # "$(GUI)"=="WNT"
90
91.IF "$(GUI)"=="OS2"
92BUILD_ACTION=cd src/hunspell && dmake
93.ENDIF # "$(GUI)"=="OS2"
94
95OUT2INC=									\
96	$(BUILD_DIR)$/src$/hunspell$/*.hxx		\
97	$(BUILD_DIR)$/src$/hunspell$/hunvisapi.h
98
99# --- Targets ------------------------------------------------------
100
101.INCLUDE : set_ext.mk
102.INCLUDE : target.mk
103.INCLUDE : tg_ext.mk
104.ENDIF
105