LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / external / hunspell / ExternalProject_hunspell.mk
blobf45e2834f869cc4cbefed31fda349cf9182dcae5
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_ExternalProject_ExternalProject,hunspell))
12 $(eval $(call gb_ExternalProject_register_targets,hunspell,\
13 build \
16 hunspell_CPPCLAGS=$(CPPFLAGS)
18 hunspell_CPPFLAGS+=$(gb_COMPILERDEFS_STDLIB_DEBUG)
20 hunspell_CXXFLAGS:=$(CXXFLAGS) $(gb_LTOFLAGS) \
21 $(gb_EMSCRIPTEN_CPPFLAGS) \
22 $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
23 $(if $(debug),$(gb_DEBUGINFO_FLAGS))
25 hunspell_LDFLAGS:=$(gb_LTOFLAGS)
27 $(call gb_ExternalProject_get_state_target,hunspell,build):
28 $(call gb_Trace_StartRange,hunspell,EXTERNAL)
29 $(call gb_ExternalProject_run,build,\
30 $(gb_RUN_CONFIGURE) ./configure --disable-shared --disable-nls --with-pic \
31 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\
32 $(if $(filter AIX,$(OS)),CFLAGS="-D_LINUX_SOURCE_COMPAT") \
33 $(if $(hunspell_CPPFLAGS),CPPFLAGS='$(hunspell_CPPFLAGS)') \
34 $(if $(hunspell_CXXFLAGS),CXXFLAGS='$(hunspell_CXXFLAGS)') \
35 $(if $(hunspell_LDFLAGS),LDFLAGS='$(hunspell_LDFLAGS)') \
36 && cd src/hunspell && $(MAKE) \
38 $(call gb_Trace_EndRange,hunspell,EXTERNAL)
40 # vim: set noet sw=4 ts=4: