xref: /aoo41x/main/libtextcat/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28PRJ=.
29
30PRJNAME=libtextcat
31TARGET=libtextcat
32
33.IF "$(SYSTEM_LIBTEXTCAT)" == "YES"
34all:
35        @echo "An already available installation of libtextcat should exist on your system."
36        @echo "Therefore the version provided here does not need to be built in addition."
37.ENDIF
38
39# --- Settings -----------------------------------------------------
40
41.INCLUDE :	settings.mk
42
43# --- Files --------------------------------------------------------
44
45TARFILE_NAME=libtextcat-2.2
46TARFILE_MD5=128cfc86ed5953e57fe0f5ae98b62c2e
47TARFILE_ROOTDIR=libtextcat-2.2
48
49PATCH_FILES=libtextcat-2.2.patch
50
51
52ADDITIONAL_FILES= \
53                src$/utf8misc.h \
54                src$/utf8misc.c \
55				src$/win32_config.h \
56				src$/makefile.mk \
57				src$/libtextcat.map
58
59.IF "$(GUI)"=="UNX"
60#CONFIGURE_DIR=$(BUILD_DIR)
61
62#relative to CONFIGURE_DIR
63CONFIGURE_ACTION=configure CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)"
64CONFIGURE_FLAGS=$(eq,$(OS),MACOSX CPPFLAGS="$(EXTRA_CDEFS)" $(NULL))
65
66BUILD_ACTION=make
67
68OUT2LIB=$(BUILD_DIR)$/src$/.libs$/libtextcat*$(DLLPOST)
69
70.ENDIF # "$(GUI)"=="UNX"
71
72
73.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
74BUILD_ACTION=cd src && dmake $(MAKEMACROS)
75.ENDIF # "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
76
77
78OUT2INC= \
79	$(BUILD_DIR)$/src$/config.h \
80	$(BUILD_DIR)$/src$/common.h \
81	$(BUILD_DIR)$/src$/fingerprint.h \
82	$(BUILD_DIR)$/src$/textcat.h \
83    $(BUILD_DIR)$/src$/wg_mempool.h
84
85
86# --- Targets ------------------------------------------------------
87
88.INCLUDE : set_ext.mk
89.INCLUDE : target.mk
90.INCLUDE : tg_ext.mk
91
92