dr78: #i26822# remove draw shell if selected object is removed by undo
[LibreOffice.git] / libexttextcat / makefile.mk
blobf4f5383c8713fa1fefff7c07cd2d767309c02a09
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=libexttextcat
31 TARGET=libexttextcat
33 .IF "$(SYSTEM_LIBEXTTEXTCAT)" == "YES"
34 all:
35 @echo "An already available installation of libexttextcat should exist on your system."
36 @echo "Therefore the version provided here does not need to be built in addition."
37 .ENDIF
39 # --- Settings -----------------------------------------------------
41 .INCLUDE : settings.mk
43 # --- Files --------------------------------------------------------
45 # See http://cgit.freedesktop.org/libreoffice/libexttextcat/ for upstream
46 # sources, far better to commit your changes in there
47 TARFILE_NAME=libexttextcat-3.2.0
48 TARFILE_MD5=e1c178b18f130b40494561f02bc1a948
49 TARFILE_ROOTDIR=libexttextcat-3.2.0
50 PATCH_FILES=libexttextcat-3.2.0-visibility.patch android.patch
52 .IF "$(GUI)"=="UNX"
53 .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
54 EXTRA_CFLAGS+=-fvisibility=hidden
55 .ENDIF
56 #relative to CONFIGURE_DIR
57 CONFIGURE_ACTION=configure --disable-shared --with-pic CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)"
58 CONFIGURE_FLAGS=$(eq,$(OS),MACOSX CPPFLAGS="$(EXTRA_CDEFS)" $(NULL))
59 .IF "$(OS)"=="AIX"
60 CONFIGURE_FLAGS+= CFLAGS=-D_LINUX_SOURCE_COMPAT
61 .ENDIF
62 .IF "$(CROSS_COMPILING)"=="YES"
63 CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
64 .ENDIF
66 BUILD_ACTION=make $(eq,$(VERBOSE),TRUE V=1)
68 OUT2LIB=$(BUILD_DIR)$/src$/.libs$/libexttextcat.a
70 .ENDIF # "$(GUI)"=="UNX"
73 .IF "$(GUI)"=="WNT"
74 BUILD_ACTION=cd src && dmake $(MAKEMACROS)
75 .ENDIF # "$(GUI)"=="WNT"
77 ALLTAR: $(BIN)/fingerprint.zip
79 # --- Targets ------------------------------------------------------
81 .INCLUDE : set_ext.mk
82 .INCLUDE : tg_ext.mk
83 .INCLUDE : target.mk
85 $(BIN)/fingerprint.zip: $(PACKAGE_DIR)/$(PREDELIVER_FLAG_FILE)
86 @-rm -f $@
87 @echo creating ../../../../../$@
88 $(COMMAND_ECHO)zip -j $(ZIP_VERBOSITY) $@ $(MISC)/build$/$(TARFILE_ROOTDIR)$/langclass$/fpdb.conf
89 $(COMMAND_ECHO)find $(MISC)/build$/$(TARFILE_ROOTDIR)$/langclass$/LM \
90 -name "*.lm" -print0 | \
91 xargs -0 zip -j $(ZIP_VERBOSITY) $@